oliver-zehentleitner / maity
runner: block AskUserQuestion for headless (supervised) Claude Code placements
tsk-1pxc2shwk43p Done An agent
Owner decision 2026-11-10 (Oliver, chat 101621): agents work autonomously, so a headless placement must not be able to ask an interactive question nobody can answer.
Runner step 1 of 4 (order agreed by Oliver, 101695). Lead: q445.
- In
supervisedmode Claude Code runs headless (-p). AnAskUserQuestioncall there gets an empty answer, and the agent carries on as if a person had chosen. - Today the runner's Claude settings don't deny it (
cli/…/runner/adapters.py, thedenylist near line 171). Check whether the permission mode already blocks it. If it doesn't, add it todenyfor supervised placements only. Interactive placements, where a person is at the pane, stay as they are. - Codex: check whether it has an equivalent interactive-question tool, and do the same if so.
- Test: the generated settings for a supervised placement contain the deny entry, and an interactive one doesn't.
- KTW entry with our own reason: autonomous agents, an empty answer is worse than no tool. Do not name other products in context/ or the PR.