claude-code - 💡(How to fix) Fix [BUG] Teammate agent crashes in tmux with error <Box> can't be nested inside <Text> component [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#53152Fetched 2026-04-26 05:23:04
View on GitHub
Comments
0
Participants
1
Timeline
8
Reactions
0
Participants
Timeline (top)
labeled ×6cross-referenced ×2

Error Message

The pane displays the error: `<Box>` can't be nested inside `<Text>` component.

Error Messages/Logs

  1. In the teammate pane: the error message appears and the pane crashes.

Code Example

<Box> can't be nested inside <Text> component
  at createInstance (/$bunfs/root/src/entrypoints/cli.js:502:249)
  at Jv (/$bunfs/root/src/entrypoints/cli.js:484:58456)
  at VOH (/$bunfs/root/src/entrypoints/cli.js:484:88642)
  at oTH (/$bunfs/root/src/entrypoints/cli.js:484:87842)
  at PD8 (/$bunfs/root/src/entrypoints/cli.js:484:86738)
  at rTH (/$bunfs/root/src/entrypoints/cli.js:484:86558)
  at jJ$ (/$bunfs/root/src/entrypoints/cli.js:484:83272)
  at aH  (/$bunfs/root/src/entrypoints/cli.js:484:6552)
  at vH  (/$bunfs/root/src/entrypoints/cli.js:484:5006)
  at UH  (/$bunfs/root/src/entrypoints/cli.js:484:5318)

---

{
  "verbose": true,
  "teammateMode": "auto",
  "tui": "fullscreen",
  "theme": "light",
  "showThinkingSummaries": true
}
RAW_BUFFERClick to expand / collapse

What's Wrong?

Teammate pane crashes in tmux when a permission prompt appears (e.g., a request to read the parent directory ..).

The pane displays the error: `<Box>` can't be nested inside `<Text>` component.

What Should Happen?

The permission prompt should render correctly in the teammate pane without crashing it.

Error Messages/Logs

<Box> can't be nested inside <Text> component
  at createInstance (/$bunfs/root/src/entrypoints/cli.js:502:249)
  at Jv (/$bunfs/root/src/entrypoints/cli.js:484:58456)
  at VOH (/$bunfs/root/src/entrypoints/cli.js:484:88642)
  at oTH (/$bunfs/root/src/entrypoints/cli.js:484:87842)
  at PD8 (/$bunfs/root/src/entrypoints/cli.js:484:86738)
  at rTH (/$bunfs/root/src/entrypoints/cli.js:484:86558)
  at jJ$ (/$bunfs/root/src/entrypoints/cli.js:484:83272)
  at aH  (/$bunfs/root/src/entrypoints/cli.js:484:6552)
  at vH  (/$bunfs/root/src/entrypoints/cli.js:484:5006)
  at UH  (/$bunfs/root/src/entrypoints/cli.js:484:5318)

Steps to Reproduce

Prerequisites: WSL, tmux, Claude Code version 2.1.117 or newer.

Relevant settings in ~/.claude/settings.json:

{
  "verbose": true,
  "teammateMode": "auto",
  "tui": "fullscreen",
  "theme": "light",
  "showThinkingSummaries": true
}
  1. Ask the teamlead (orchestrator) to create a team and a teammate.
  2. Ask the teamlead (or the teammate directly) to read the parent directory (..).
  3. In the teamlead pane: a permission request appears.
  4. In the teammate pane: the error message appears and the pane crashes.

Last Working Version

2.1.116

Additional Information

Version 2.1.116 does not have this bug. The crash reproduces consistently on 2.1.117, 2.1.118, and 2.1.119.

extent analysis

TL;DR

Downgrade to version 2.1.116 to avoid the teammate pane crash when a permission prompt appears.

Guidance

  • The error message suggests a rendering issue with the <Box> and <Text> components, which may be related to changes introduced in version 2.1.117.
  • Verify that the issue is resolved by downgrading to version 2.1.116 and reproducing the steps to reproduce.
  • Check the ~/.claude/settings.json file to ensure that the settings are not contributing to the issue, although the provided settings do not seem to be directly related to the rendering issue.
  • If downgrading is not feasible, consider reaching out to the development team for a patch or fix for the rendering issue in versions 2.1.117 and later.

Example

No code snippet is provided as the issue seems to be related to a specific version of the software rather than a code error.

Notes

The fix is based on the information provided that version 2.1.116 does not have this bug, and the issue reproduces consistently on versions 2.1.117 and later. However, this may not be a long-term solution, and a proper fix for the rendering issue should be investigated.

Recommendation

Apply workaround: Downgrade to version 2.1.116. This is because the issue is consistently reproducible on versions 2.1.117 and later, and downgrading to 2.1.116 has been confirmed to resolve the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Teammate agent crashes in tmux with error <Box> can't be nested inside <Text> component [1 participants]