From 7d109fde0f44a37dbd0abc84265abbdbff6e40a8 Mon Sep 17 00:00:00 2001 From: Lex Christopherson Date: Tue, 13 Jan 2026 12:11:07 -0600 Subject: [PATCH] fix(debug): inline listing for multiple active sessions - Shows table of all active debug sessions with status/hypothesis/next action - Reply with number to resume, or describe new issue - No AskUserQuestion for session selection - inline flow Co-Authored-By: Claude Opus 4.5 --- get-shit-done/workflows/debug.md | 50 ++++++++++++++++++++++---------- 1 file changed, 35 insertions(+), 15 deletions(-) diff --git a/get-shit-done/workflows/debug.md b/get-shit-done/workflows/debug.md index 0f13ae193..840aee102 100644 --- a/get-shit-done/workflows/debug.md +++ b/get-shit-done/workflows/debug.md @@ -42,26 +42,46 @@ Ask about experience. Investigate the cause yourself. ls .planning/debug/*.md 2>/dev/null | grep -v resolved ``` -**If active sessions exist:** +**If active sessions exist AND no $ARGUMENTS provided:** -Read each file's frontmatter to check status. +Read each file's frontmatter (status, trigger) and Current Focus (hypothesis, next_action). -If status is NOT "resolved": +Display inline: -Use AskUserQuestion: -- header: "Resume?" -- question: "Active debug session found. Continue or start new?" -- options: - - "Resume [slug]" - Continue where we left off - - "Start new" - This is a different issue - - "Show status" - Show me current state first +``` +## Active Debug Sessions -If "Resume": Load file, go to `resume_from_file` -If "Start new": Continue to `create_debug_file` -If "Show status": Display Current Focus and Symptoms, ask again +| # | Slug | Status | Hypothesis | Next Action | +|---|------|--------|------------|-------------| +| 1 | auth-logout | investigating | Token refresh not called | Check console output | +| 2 | api-timeout | gathering | - | Gather symptoms | +| 3 | cart-bug | fixing | Null reference in context | Apply fix | -**If no active sessions:** -Continue to `create_debug_file` +Reply with a number to resume, or describe a new issue to start fresh. +``` + +Wait for user response. + +- If user replies with number (1, 2, 3) → Load that file, go to `resume_from_file` +- If user replies with text → Treat as new issue trigger, go to `create_debug_file` + +**If active sessions exist AND $ARGUMENTS provided:** + +User wants to start a new debug session. Continue to `create_debug_file`. + +**If no active sessions AND no $ARGUMENTS:** + +``` +No active debug sessions. + +Describe the issue to start debugging. +``` + +Wait for user to describe the issue, then use their response as the trigger. + +**If no active sessions AND $ARGUMENTS provided:** + +Continue to `create_debug_file` with $ARGUMENTS as trigger.