You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Claude Code harness: AskUserQuestion and plan approval never reach the user #4766
On a claude-code harness agent, Claude Code cannot ask the user anything mid-turn. The harness runs the CLI with --print, where AskUserQuestion, EnterPlanMode and ExitPlanMode are disabled: Claude Code asks in plain text and ends the turn.
CLI arguments (Claude Code 2.1.312)
AskUserQuestion available
Result
harness arguments today
no
question asked in plain text
plus --permission-prompt-tool mcp__<server>__<tool>
yes
question sent to the permission tool, answer accepted
Proposed solution
Serve a permission prompt tool from a loopback MCP server for each turn (--mcp-config, --permission-prompt-tool). Only AskUserQuestion and ExitPlanMode reach it; other tools still run without asking.
Turn them into elicitation forms, and keep plain text questions when nobody can answer.
TUI: support multi-select enums (type: array) and titled choices (oneOf), MCP spec shapes the ACP bridge already accepts.
A fix is ready; a PR can follow if the approach suits.
Activity