fix: add empty-answer validation guards to discuss-phase (closes #912) (#1048)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
TÂCHES
2026-03-14 21:23:14 -06:00
committed by GitHub
parent 8313cd27b2
commit 9b904da046

View File

@@ -105,6 +105,13 @@ Phase: "API documentation"
- Scope (roadmap defines this)
</gray_area_identification>
<answer_validation>
**IMPORTANT: Answer validation** — After every AskUserQuestion call, check if the response is empty or whitespace-only. If so:
1. Retry the question once with the same parameters
2. If still empty, present the options as a plain-text numbered list and ask the user to type their choice number
Never proceed with an empty answer.
</answer_validation>
<process>
**Express path available:** If you already have a PRD or acceptance criteria document, use `/gsd:plan-phase {phase} --prd path/to/prd.md` to skip this discussion and go straight to planning.