claude-code - 💡(How to fix) Fix [Bug] Crash on subagent start: Box component nesting error in Ink renderer [3 comments, 4 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#52266Fetched 2026-04-24 06:11:44
View on GitHub
Comments
3
Participants
4
Timeline
12
Reactions
3
Timeline (top)
labeled ×5commented ×3subscribed ×2closed ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/{user}/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n at ai_ (/$bunfs/root/src/entrypoints/cli.js:2756:2177)\n at IK8 (/$bunfs/root/src/entrypoints/cli.js:2756:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T05:54:52.057Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/{user}/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n    at ai_ (/$bunfs/root/src/entrypoints/cli.js:2756:2177)\n    at IK8 (/$bunfs/root/src/entrypoints/cli.js:2756:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T05:54:52.057Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description

Crash on subagent start: <Box> can't be nested inside <Text> component thrown from createInstance in Ink renderer. Reproducible 100% when team subagent (spawned via Agent tool with team_name) connects via claude --agent-id ... --agent-name ... --team-name ... --agent-type developer --model sonnet. Version 2.1.118, macOS Darwin 25.3.0. Stack: createInstance (cli.js:496:249) → jS → E$H → WRH → nFH → lFH → Rp → tH → NH → oH.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.118
  • Feedback ID: a5e928c9-75fd-45b7-9ad4-250f1f706dec

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/{user}/.local/share/claude/versions/2.1.118 (expected in multi-process scenarios)\n    at ai_ (/$bunfs/root/src/entrypoints/cli.js:2756:2177)\n    at IK8 (/$bunfs/root/src/entrypoints/cli.js:2756:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T05:54:52.057Z"}]

extent analysis

TL;DR

The crash on subagent start is likely due to a rendering issue with the Ink renderer, where a <Box> component is being nested inside a <Text> component, and a workaround may involve modifying the component structure or updating the renderer.

Guidance

  • Verify that the component structure is correct and that <Box> is not being nested inside <Text> unnecessarily.
  • Check the Ink renderer documentation for any known issues or limitations related to component nesting.
  • Consider updating the Ink renderer to a newer version, if available, to see if the issue is resolved.
  • Review the error log to ensure that the Lock acquisition failure is not related to the crash, as it is marked as NON-FATAL.

Example

No code snippet is provided as the issue does not contain sufficient information about the component structure or the Ink renderer implementation.

Notes

The issue may be specific to the macOS Darwin 25.3.0 environment or the Version 2.1.118 of the software, and further investigation may be required to determine the root cause.

Recommendation

Apply workaround: Modify the component structure to avoid nesting <Box> inside <Text>, as this is the most likely cause of the crash, and updating the renderer may not be feasible or available.

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] Crash on subagent start: Box component nesting error in Ink renderer [3 comments, 4 participants]