claude-code - 💡(How to fix) Fix [Feature Request] AskUserQuestion usage declining with system prompts [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49024Fetched 2026-04-17 08:52:58
View on GitHub
Comments
1
Participants
1
Timeline
4
Reactions
1
Author
Participants
Timeline (top)
labeled ×3commented ×1

Code Example

## コミュニケーションルール

### AskUserQuestion 使用原則
- **選択肢として構造化できる質問はすべて AskUserQuestion を使用すること**。テキスト応答で「どう思いますか?」「ご意見をお聞かせください」等と返すのは禁止
- **承認系の確認**(「この内容でよいですか?」「コミットしてよいですか?」等の Yes/No 確認)も AskUserQuestion の対象とする。テキスト応答で承認を求めることは禁止
- テキスト応答での質問は、完全に自由形式の情報収集(例:「プロジェクトの概要を教えてください」)に限定する
- 設計・要件定義・実装方針・スコープ確認・技術選定など、判断を伴う場面では必ず AskUserQuestion を使用すること
- 複数の論点がある場合は、1回の AskUserQuestion で最大4つの質問をまとめて提示すること(1問ずつ分けない)
- 推測で進めるよりも質問して確認することを優先すること

### AskUserQuestion 選択肢構成ルール
- **推奨案がある場合**: 先頭に「(推奨)」マーク付きで配置する
- **「Claudeに任せる」**: 最後の選択肢として必ず含める。description で Claude がどのような判断基準で選ぶかを説明する
  -: `{"label": "Claudeに任せる", "description": "コードベースの既存パターンと要件を分析して最適な方法を選択します"}`
- **自由入力の案内**: question テキスト内に「(選択肢以外の入力も可能です)」と明記する(自動 Other が表示されない場合の保険)
- 選択肢は 24 個(「Claudeに任せる」を含む)で、各選択肢の description にはトレードオフや判断材料を記載する

### 禁止パターン
- テキスト応答末尾に「これらについてどう思いますか?」「どの方針がよいですか?」等と書いて返すこと → 代わりに AskUserQuestion を使う
- 大まかな提案を箇条書きで並べてテキスト応答で終わること → 代わりに提案を AskUserQuestion の選択肢として構造化する
RAW_BUFFERClick to expand / collapse

Bug Description Declining Usage of AskUserQuestion I specified in the user-global CLAUDE.md to utilize AskUserQuestion, and it worked well for a while, but its usage seems to have dropped sharply in the last few days. It's cumbersome to be asked for free-form input when in structured confirmation scenes, all that was needed was to confirm "OK, proceed with the default flow" by pressing Enter twice.

## コミュニケーションルール

### AskUserQuestion 使用原則
- **選択肢として構造化できる質問はすべて AskUserQuestion を使用すること**。テキスト応答で「どう思いますか?」「ご意見をお聞かせください」等と返すのは禁止
- **承認系の確認**(「この内容でよいですか?」「コミットしてよいですか?」等の Yes/No 確認)も AskUserQuestion の対象とする。テキスト応答で承認を求めることは禁止
- テキスト応答での質問は、完全に自由形式の情報収集(例:「プロジェクトの概要を教えてください」)に限定する
- 設計・要件定義・実装方針・スコープ確認・技術選定など、判断を伴う場面では必ず AskUserQuestion を使用すること
- 複数の論点がある場合は、1回の AskUserQuestion で最大4つの質問をまとめて提示すること(1問ずつ分けない)
- 推測で進めるよりも質問して確認することを優先すること

### AskUserQuestion 選択肢構成ルール
- **推奨案がある場合**: 先頭に「(推奨)」マーク付きで配置する
- **「Claudeに任せる」**: 最後の選択肢として必ず含める。description で Claude がどのような判断基準で選ぶかを説明する
  - 例: `{"label": "Claudeに任せる", "description": "コードベースの既存パターンと要件を分析して最適な方法を選択します"}`
- **自由入力の案内**: question テキスト内に「(選択肢以外の入力も可能です)」と明記する(自動 Other が表示されない場合の保険)
- 選択肢は 2〜4 個(「Claudeに任せる」を含む)で、各選択肢の description にはトレードオフや判断材料を記載する

### 禁止パターン
- テキスト応答末尾に「これらについてどう思いますか?」「どの方針がよいですか?」等と書いて返すこと → 代わりに AskUserQuestion を使う
- 大まかな提案を箇条書きで並べてテキスト応答で終わること → 代わりに提案を AskUserQuestion の選択肢として構造化する

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.110
  • Feedback ID: be7b864c-db1c-47fe-a7c7-2321e8ec5c59

extent analysis

TL;DR

Review and update the AskUserQuestion configuration in the CLAUDE.md file to ensure it aligns with the specified rules and guidelines for structured confirmation scenes.

Guidance

  • Verify that the AskUserQuestion usage drop is not due to changes in user behavior or external factors by analyzing usage patterns and user feedback.
  • Check the CLAUDE.md file for any recent changes or updates that might have affected AskUserQuestion usage, such as changes to question structures or selection options.
  • Ensure that the AskUserQuestion configuration follows the specified rules, including using structured questions for confirmations and providing clear selection options with descriptions.
  • Test the AskUserQuestion feature with different scenarios to identify any potential issues or areas for improvement.

Notes

The issue lacks specific technical details about the implementation of AskUserQuestion, so it's difficult to provide a more detailed solution. However, reviewing and updating the configuration according to the specified rules and guidelines should help resolve the issue.

Recommendation

Apply workaround: Review and update the AskUserQuestion configuration to ensure it aligns with the specified rules and guidelines. This should help resolve the issue and improve the overall user experience.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Feature Request] AskUserQuestion usage declining with system prompts [1 comments, 1 participants]