When plan-phase invokes discuss-phase as a nested Skill call, AskUserQuestion calls auto-resolve with empty answers — the user never sees the question UI. This is a Claude Code runtime bug with nested subcontexts. Made the 'Run discuss-phase first' path explicitly exit the workflow with a display message instead of risking nested invocation: - Added explicit warning: do NOT invoke as nested Skill/Task - Show the command for user to run as top-level - Exit the plan-phase workflow immediately Fixes #1009
This commit is contained in:
@@ -170,7 +170,16 @@ Use AskUserQuestion:
|
|||||||
- "Run discuss-phase first" — Capture design decisions before planning
|
- "Run discuss-phase first" — Capture design decisions before planning
|
||||||
|
|
||||||
If "Continue without context": Proceed to step 5.
|
If "Continue without context": Proceed to step 5.
|
||||||
If "Run discuss-phase first": Display `/gsd:discuss-phase {X}` and exit workflow.
|
If "Run discuss-phase first":
|
||||||
|
**IMPORTANT:** Do NOT invoke discuss-phase as a nested Skill/Task call — AskUserQuestion
|
||||||
|
does not work correctly in nested subcontexts (#1009). Instead, display the command
|
||||||
|
and exit so the user runs it as a top-level command:
|
||||||
|
```
|
||||||
|
Run this command first, then re-run /gsd:plan-phase {X}:
|
||||||
|
|
||||||
|
/gsd:discuss-phase {X}
|
||||||
|
```
|
||||||
|
**Exit the plan-phase workflow. Do not continue.**
|
||||||
|
|
||||||
## 5. Handle Research
|
## 5. Handle Research
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user