[Bug] PermissionRequest hook not fired for agent-teams teammates outside tmux
Bug Description
tldr; teammates in agent-teams do not fire PermissionRequest hook because ask about it to Orchestrator instead of a human (actually expected, but answer to this still will do a human). This problem exists only when team of agents run outside of tmux.
Steps to reproduce:
- Start
claude --dangerously-skip-permissionswith turned onagent-teamsOUTSIDE of tmux - Ask a prompt:
I want you do only next steps:
- Create a team of agents (your task will be set later, dont ask/research for now)
- Enter plan mode
- Spawn a teammate and ask him for
curl https://anthropic.com
Dont do anything else. Follow a plan step by step.
Expected behavior:
No questions to Orchestrator OR PermissionRequest hook fired properly with acceptance the answer via stdin.
Outside of tmux:
<img width="1840" height="1137" alt="Image" src="https://github.com/user-attachments/assets/c562d2d9-3772-4784-a5b6-64176715193e" />
Inside tmux:
<img width="1840" height="1137" alt="Image" src="https://github.com/user-attachments/assets/527ed3bd-7c40-47d0-9eac-2177adafcda0" />
Environment Info
- Platform: darwin
- Terminal: tmux
- Version: 2.1.66
- Feedback ID: f3d552d1-71d7-420e-b5d2-b2686484cd43
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗