claude-code - 💡(How to fix) Fix [Bug] Claude Code process exits with code 1 in Cowork environment [1 comments, 2 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#49438Fetched 2026-04-17 08:41:12
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
1
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"Error: ensureToolResultPairing: repaired missing tool_result blocks (3 -> 3 messages). Message structure: [0] user; [1] assistant(id=msg_01LkVHMQxsEhnvQy5b7qLdxq, tool_uses=[toolu_0182pg9issT8QeETRg2wBQt6,toolu_01Ao7igAbjja6HAFPZ2Wc57T]); [2] user\n at LM7 (/$bunfs/root/src/entrypoints/cli.js:4948:9747)\n at Yg7 (/$bunfs/root/src/entrypoints/cli.js:7893:12002)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T19:23:18.781Z"},{"error":"Error: Request was aborted.\n at qb_ (/$bunfs/root/src/entrypoints/cli.js:1287:12508)\n at next (native:1:11)\n at Ag7 (/$bunfs/root/src/entrypoints/cli.js:7893:9167)\n at next (native:1:11)\n at Yg7 (/$bunfs/root/src/entrypoints/cli.js:7898:12433)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T19:36:25.808Z"},{"error":"Error: Tool mcp__figma__authenticate not found\n at fH7 (/$bunfs/root/src/entrypoints/cli.js:2402:30087)\n at gP (/$bunfs/root/src/entrypoints/cli.js:473:21019)\n at K1 (/$bunfs/root/src/entrypoints/cli.js:473:39569)\n at qV (/$bunfs/root/src/entrypoints/cli.js:473:50281)\n at j2H (/$bunfs/root/src/entrypoints/cli.js:473:86972)\n at $pH (/$bunfs/root/src/entrypoints/cli.js:473:85934)\n at qi (/$bunfs/root/src/entrypoints/cli.js:473:85755)\n at lHH (/$bunfs/root/src/entrypoints/cli.js:473:82113)\n at VH (/$bunfs/root/src/entrypoints/cli.js:473:6496)\n at FH (/$bunfs/root/src/entrypoints/cli.js:473:4980)","timestamp":"2026-04-16T19:36:51.479Z"}]

Code Example

[{"error":"Error: ensureToolResultPairing: repaired missing tool_result blocks (3 -> 3 messages). Message structure: [0] user; [1] assistant(id=msg_01LkVHMQxsEhnvQy5b7qLdxq, tool_uses=[toolu_0182pg9issT8QeETRg2wBQt6,toolu_01Ao7igAbjja6HAFPZ2Wc57T]); [2] user\n    at LM7 (/$bunfs/root/src/entrypoints/cli.js:4948:9747)\n    at Yg7 (/$bunfs/root/src/entrypoints/cli.js:7893:12002)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T19:23:18.781Z"},{"error":"Error: Request was aborted.\n    at qb_ (/$bunfs/root/src/entrypoints/cli.js:1287:12508)\n    at next (native:1:11)\n    at Ag7 (/$bunfs/root/src/entrypoints/cli.js:7893:9167)\n    at next (native:1:11)\n    at Yg7 (/$bunfs/root/src/entrypoints/cli.js:7898:12433)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T19:36:25.808Z"},{"error":"Error: Tool mcp__figma__authenticate not found\n    at fH7 (/$bunfs/root/src/entrypoints/cli.js:2402:30087)\n    at gP (/$bunfs/root/src/entrypoints/cli.js:473:21019)\n    at K1 (/$bunfs/root/src/entrypoints/cli.js:473:39569)\n    at qV (/$bunfs/root/src/entrypoints/cli.js:473:50281)\n    at j2H (/$bunfs/root/src/entrypoints/cli.js:473:86972)\n    at $pH (/$bunfs/root/src/entrypoints/cli.js:473:85934)\n    at qi (/$bunfs/root/src/entrypoints/cli.js:473:85755)\n    at lHH (/$bunfs/root/src/entrypoints/cli.js:473:82113)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:473:6496)\n    at FH (/$bunfs/root/src/entrypoints/cli.js:473:4980)","timestamp":"2026-04-16T19:36:51.479Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description in Cowork I get this message consistently 'Claude Code process exited with code 1'

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.105
  • Feedback ID: 3e93d798-2825-4a0d-b459-b56cfcdf7afc

Errors

[{"error":"Error: ensureToolResultPairing: repaired missing tool_result blocks (3 -> 3 messages). Message structure: [0] user; [1] assistant(id=msg_01LkVHMQxsEhnvQy5b7qLdxq, tool_uses=[toolu_0182pg9issT8QeETRg2wBQt6,toolu_01Ao7igAbjja6HAFPZ2Wc57T]); [2] user\n    at LM7 (/$bunfs/root/src/entrypoints/cli.js:4948:9747)\n    at Yg7 (/$bunfs/root/src/entrypoints/cli.js:7893:12002)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T19:23:18.781Z"},{"error":"Error: Request was aborted.\n    at qb_ (/$bunfs/root/src/entrypoints/cli.js:1287:12508)\n    at next (native:1:11)\n    at Ag7 (/$bunfs/root/src/entrypoints/cli.js:7893:9167)\n    at next (native:1:11)\n    at Yg7 (/$bunfs/root/src/entrypoints/cli.js:7898:12433)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T19:36:25.808Z"},{"error":"Error: Tool mcp__figma__authenticate not found\n    at fH7 (/$bunfs/root/src/entrypoints/cli.js:2402:30087)\n    at gP (/$bunfs/root/src/entrypoints/cli.js:473:21019)\n    at K1 (/$bunfs/root/src/entrypoints/cli.js:473:39569)\n    at qV (/$bunfs/root/src/entrypoints/cli.js:473:50281)\n    at j2H (/$bunfs/root/src/entrypoints/cli.js:473:86972)\n    at $pH (/$bunfs/root/src/entrypoints/cli.js:473:85934)\n    at qi (/$bunfs/root/src/entrypoints/cli.js:473:85755)\n    at lHH (/$bunfs/root/src/entrypoints/cli.js:473:82113)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:473:6496)\n    at FH (/$bunfs/root/src/entrypoints/cli.js:473:4980)","timestamp":"2026-04-16T19:36:51.479Z"}]

extent analysis

TL;DR

The issue might be resolved by checking the tool configuration and ensuring that the mcp__figma__authenticate tool is properly installed and configured.

Guidance

  • Verify that the mcp__figma__authenticate tool is installed and configured correctly, as the error message suggests it was not found.
  • Check the tool usage in the message structure, specifically the tool_uses array, to ensure it matches the expected configuration.
  • Review the error messages for any patterns or common causes, such as aborted requests or missing tool result blocks.
  • Consider checking the version and compatibility of the tools and dependencies used in the project.

Notes

The provided error messages suggest a potential issue with tool configuration or installation, but without more information about the project setup and dependencies, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Check and configure the mcp__figma__authenticate tool to ensure it's properly installed and set up, as this seems to be the most likely cause of 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