[BUG] When using experimental agent teams in 2.1.112 parent agent crashes upon receiving approval prompt

Resolved 💬 2 comments Opened Apr 17, 2026 by ihsaner-legion Closed Apr 17, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When using experimental agent teams in 2.1.112 parent agent crashes upon receiving approval prompt with a JS exception:

ERROR H.toolUseContext.getAppState is not a
function. (In 'H.toolUseContext.getAppState()',
'H.toolUseContext.getAppState' is undefined)

/$bunfs/root/src/entrypoints/cli.js:8231:15642

This also causes the team members to become zombie processes, requiring a forced cleanup.

What Should Happen?

Like on previous versions I should be able to see the approval surface on the parent agent instead of it crashing.

Error Messages/Logs

ERROR H.toolUseContext.getAppState is not a
         function. (In 'H.toolUseContext.getAppState()',
          'H.toolUseContext.getAppState' is undefined)


   /$bunfs/root/src/entrypoints/cli.js:8231:15642

Steps to Reproduce

Run claude inside tmux terminal
Have experimental agent teams feature enabled
Ask claude to create a single team member who will ask for a permission (a bash action is sufficient) attaching it to the tmux terminal
Upon receiving bash permission prompt on the parent agent, the parent agent crashes immediately. Consistent reproduction

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.111

Claude Code Version

2.1.112

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗