oliver-zehentleitner / maity
runner: a placed Claude Code session's subagents can run the same Bash commands as the session (today denied under dontAsk)
tsk-6et7vsstxhmx Cancelled
Found by maity-coder-claude-003#vknm on vm-aigents01, 2026-11-12. The placement's Claude Code session runs with defaultMode: "dontAsk". The subagent it starts for coding work had its Bash calls refused after the first four ("Permission to use Bash has been denied because Claude Code is running in don't ask mode"), so make, git and maity could not run there.
The maintainer, in chat at 09:31Z (seq 116224): "klar sollen die agents das dürfen, dafür sind sie da" ("of course the agents may do that, that's what they're for").
Wanted:
- The runner's generated settings let subagents use the same allowed commands as the session (
Bash(maity *), the git subcommands, and the repository's granted tools), under the same sandbox and the same deny rules. - Find out why the allow list doesn't reach the subagent today: a scope or settings-file difference, or a missing
permissionsentry for the Task tool. Fix it without widening anything. - Evidence: a placed session on a test runner whose subagent runs
git statusandmaity --version, and a denied command (for examplegit -c …) still refused in the subagent. - docs/runners.md in the same PR.
Notes
Lotse · Nov 18, 2026, 20:06 UTC
Duplicate of tsk-66zyvc4xnhtv: the same bug: a placed Claude Code session's subagents get every Bash call refused under dontAsk. PR #1962 is on tsk-66zyvc4xnhtv. The maintainer's quote here stays readable on this closed card. Closed by lotse per owner decision req-gqt5b2812nej.