claude-code - 💡(How to fix) Fix [Bug] Agent enters infinite loop consuming tokens on repeated tasks [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#46686Fetched 2026-04-12 13:35:42
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/bhavenmurji/.local/share/claude/versions/2.1.98 (expected in multi-process scenarios)\n at BU_ (/$bunfs/root/src/entrypoints/cli.js:2810:2153)\n at Ht6 (/$bunfs/root/src/entrypoints/cli.js:2810:1233)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T00:26:05.822Z"},{"error":"Error: Tool mcp__claude-in-chrome__tabs_context_mcp not found\n at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n at wuH (/$bunfs/root/src/entrypoints/cli.js:472:86925)\n at AuH (/$bunfs/root/src/entrypoints/cli.js:472:85887)\n at C5H (/$bunfs/root/src/entrypoints/cli.js:472:85708)\n at SE (/$bunfs/root/src/entrypoints/cli.js:472:82066)\n at UH (/$bunfs/root/src/entrypoints/cli.js:472:6487)\n at VH (/$bunfs/root/src/entrypoints/cli.js:472:4972)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:286)","timestamp":"2026-04-10T00:26:09.398Z"},{"error":"Error: Tool mcp__claude-in-chrome__navigate not found\n at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n at wuH (/$bunfs/root/src/entrypoints/cli.js:472:86925)\n at AuH (/$bunfs/root/src/entrypoints/cli.js:472:85887)\n at C5H (/$bunfs/root/src/entrypoints/cli.js:472:85708)\n at SE (/$bunfs/root/src/entrypoints/cli.js:472:82066)\n at UH (/$bunfs/root/src/entrypoints/cli.js:472:6487)\n at VH (/$bunfs/root/src/entrypoints/cli.js:472:4972)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:286)","timestamp":"2026-04-10T00:26:09.399Z"},{"error":"Error: Tool mcp__claude-in-chrome__computer not found\n at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n at wuH (/$bunfs/root/src/entrypoints/cli.js:472:86925)\n at AuH (/$bunfs/root/src/entrypoints/cli.js:472:85887)\n at C5H (/$bunfs/root/src/entrypoints/cli.js:472:85708)\n at SE (/$bunfs/root/src/entrypoints/cli.js:472:82066)\n at UH (/$bunfs/root/src/entrypoints/cli.js:472:6487)\n at VH (/$bunfs/root/src/entrypoints/cli.js:472:4972)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:286)","timestamp":"2026-04-10T00:26:09.399Z"},{"error":"Error: Tool mcp__claude-in-chrome__computer not found\n at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n at wuH (/$bunfs/root/src/entrypoints/cli.js:472:86925)\n at AuH (/$bunfs/root/src/entrypoints/cli.js:472:85887)\n at C5H (/$bunfs/root/src/entrypoints/cli.js:472:85708)\n at SE (/$bunfs/root/src/entrypoints/cli.js:472:82066)\n at UH (/$bunfs/root/src/entrypoints/cli.js:472:6487)\n at VH (/$bunfs/root/src/entrypoints/cli.js:472:4972)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:286)","timestamp":"2026-04-10T00:26:09.404Z"},{"error":"Error: Tool mcp__claude-in-chrome__tabs_context_mcp not found\n at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n at wuH (/$bunfs/root/src/entrypoints/cli.js:472:86925)\n at AuH (/$bunfs/root/src/entrypoints/cli.js:472:85887)\n at C5H (/$bunfs/root/src/entrypoints/cli.js:472:85708)\n at SE (/$bunfs/root/src/entrypoints/cli.js:472:82066)\n at UH (/$bunfs/root/src/entrypoints/cli.js:472:6487)\n at VH (/$bunfs/root/src/entrypoints/cli.js:472:4972)","timestamp":"2026-04-10T00:26:35.846Z"},{"error":"Error: Tool mcp__claude-in-chrome__navigate not found\n at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n at wuH (/$bunfs/root/src/entrypo…

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/bhavenmurji/.local/share/claude/versions/2.1.98 (expected in multi-process scenarios)\n    at BU_ (/$bunfs/root/src/entrypoints/cli.js:2810:2153)\n    at Ht6 (/$bunfs/root/src/entrypoints/cli.js:2810:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T00:26:05.822Z"},{"error":"Error: Tool mcp__claude-in-chrome__tabs_context_mcp not found\n    at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n    at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n    at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n    at wuH (/$bunfs/root/src/entrypoints/cli.js:472:86925)\n    at AuH (/$bunfs/root/src/entrypoints/cli.js:472:85887)\n    at C5H (/$bunfs/root/src/entrypoints/cli.js:472:85708)\n    at SE (/$bunfs/root/src/entrypoints/cli.js:472:82066)\n    at UH (/$bunfs/root/src/entrypoints/cli.js:472:6487)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:472:4972)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:286)","timestamp":"2026-04-10T00:26:09.398Z"},{"error":"Error: Tool mcp__claude-in-chrome__navigate not found\n    at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n    at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n    at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n    at wuH (/$bunfs/root/src/entrypoints/cli.js:472:86925)\n    at AuH (/$bunfs/root/src/entrypoints/cli.js:472:85887)\n    at C5H (/$bunfs/root/src/entrypoints/cli.js:472:85708)\n    at SE (/$bunfs/root/src/entrypoints/cli.js:472:82066)\n    at UH (/$bunfs/root/src/entrypoints/cli.js:472:6487)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:472:4972)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:286)","timestamp":"2026-04-10T00:26:09.399Z"},{"error":"Error: Tool mcp__claude-in-chrome__computer not found\n    at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n    at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n    at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n    at wuH (/$bunfs/root/src/entrypoints/cli.js:472:86925)\n    at AuH (/$bunfs/root/src/entrypoints/cli.js:472:85887)\n    at C5H (/$bunfs/root/src/entrypoints/cli.js:472:85708)\n    at SE (/$bunfs/root/src/entrypoints/cli.js:472:82066)\n    at UH (/$bunfs/root/src/entrypoints/cli.js:472:6487)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:472:4972)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:286)","timestamp":"2026-04-10T00:26:09.399Z"},{"error":"Error: Tool mcp__claude-in-chrome__computer not found\n    at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n    at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n    at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n    at wuH (/$bunfs/root/src/entrypoints/cli.js:472:86925)\n    at AuH (/$bunfs/root/src/entrypoints/cli.js:472:85887)\n    at C5H (/$bunfs/root/src/entrypoints/cli.js:472:85708)\n    at SE (/$bunfs/root/src/entrypoints/cli.js:472:82066)\n    at UH (/$bunfs/root/src/entrypoints/cli.js:472:6487)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:472:4972)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:286)","timestamp":"2026-04-10T00:26:09.404Z"},{"error":"Error: Tool mcp__claude-in-chrome__tabs_context_mcp not found\n    at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n    at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n    at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n    at wuH (/$bunfs/root/src/entrypoints/cli.js:472:86925)\n    at AuH (/$bunfs/root/src/entrypoints/cli.js:472:85887)\n    at C5H (/$bunfs/root/src/entrypoints/cli.js:472:85708)\n    at SE (/$bunfs/root/src/entrypoints/cli.js:472:82066)\n    at UH (/$bunfs/root/src/entrypoints/cli.js:472:6487)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:472:4972)","timestamp":"2026-04-10T00:26:35.846Z"},{"error":"Error: Tool mcp__claude-in-chrome__navigate not found\n    at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n    at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n    at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n    at wuH (/$bunfs/root/src/entrypo…
RAW_BUFFERClick to expand / collapse

Bug Description going in circles and burning tokens.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.98
  • Feedback ID: b8c0ab00-3200-464c-bba3-3c947ace67df

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/bhavenmurji/.local/share/claude/versions/2.1.98 (expected in multi-process scenarios)\n    at BU_ (/$bunfs/root/src/entrypoints/cli.js:2810:2153)\n    at Ht6 (/$bunfs/root/src/entrypoints/cli.js:2810:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T00:26:05.822Z"},{"error":"Error: Tool mcp__claude-in-chrome__tabs_context_mcp not found\n    at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n    at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n    at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n    at wuH (/$bunfs/root/src/entrypoints/cli.js:472:86925)\n    at AuH (/$bunfs/root/src/entrypoints/cli.js:472:85887)\n    at C5H (/$bunfs/root/src/entrypoints/cli.js:472:85708)\n    at SE (/$bunfs/root/src/entrypoints/cli.js:472:82066)\n    at UH (/$bunfs/root/src/entrypoints/cli.js:472:6487)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:472:4972)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:286)","timestamp":"2026-04-10T00:26:09.398Z"},{"error":"Error: Tool mcp__claude-in-chrome__navigate not found\n    at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n    at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n    at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n    at wuH (/$bunfs/root/src/entrypoints/cli.js:472:86925)\n    at AuH (/$bunfs/root/src/entrypoints/cli.js:472:85887)\n    at C5H (/$bunfs/root/src/entrypoints/cli.js:472:85708)\n    at SE (/$bunfs/root/src/entrypoints/cli.js:472:82066)\n    at UH (/$bunfs/root/src/entrypoints/cli.js:472:6487)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:472:4972)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:286)","timestamp":"2026-04-10T00:26:09.399Z"},{"error":"Error: Tool mcp__claude-in-chrome__computer not found\n    at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n    at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n    at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n    at wuH (/$bunfs/root/src/entrypoints/cli.js:472:86925)\n    at AuH (/$bunfs/root/src/entrypoints/cli.js:472:85887)\n    at C5H (/$bunfs/root/src/entrypoints/cli.js:472:85708)\n    at SE (/$bunfs/root/src/entrypoints/cli.js:472:82066)\n    at UH (/$bunfs/root/src/entrypoints/cli.js:472:6487)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:472:4972)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:286)","timestamp":"2026-04-10T00:26:09.399Z"},{"error":"Error: Tool mcp__claude-in-chrome__computer not found\n    at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n    at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n    at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n    at wuH (/$bunfs/root/src/entrypoints/cli.js:472:86925)\n    at AuH (/$bunfs/root/src/entrypoints/cli.js:472:85887)\n    at C5H (/$bunfs/root/src/entrypoints/cli.js:472:85708)\n    at SE (/$bunfs/root/src/entrypoints/cli.js:472:82066)\n    at UH (/$bunfs/root/src/entrypoints/cli.js:472:6487)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:472:4972)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:286)","timestamp":"2026-04-10T00:26:09.404Z"},{"error":"Error: Tool mcp__claude-in-chrome__tabs_context_mcp not found\n    at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n    at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n    at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n    at wuH (/$bunfs/root/src/entrypoints/cli.js:472:86925)\n    at AuH (/$bunfs/root/src/entrypoints/cli.js:472:85887)\n    at C5H (/$bunfs/root/src/entrypoints/cli.js:472:85708)\n    at SE (/$bunfs/root/src/entrypoints/cli.js:472:82066)\n    at UH (/$bunfs/root/src/entrypoints/cli.js:472:6487)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:472:4972)","timestamp":"2026-04-10T00:26:35.846Z"},{"error":"Error: Tool mcp__claude-in-chrome__navigate not found\n    at Q67 (/$bunfs/root/src/entrypoints/cli.js:2883:31046)\n    at rw (/$bunfs/root/src/entrypoints/cli.js:472:21006)\n    at Xz (/$bunfs/root/src/entrypoints/cli.js:472:39555)\n    at a0 (/$bunfs/root/src/entrypoints/cli.js:472:50253)\n    at wuH (/$bunfs/root/src/entrypo…

Note: Content was truncated.

extent analysis

TL;DR

The issue appears to be related to missing tools in the Claude environment, specifically mcp__claude-in-chrome__tabs_context_mcp, mcp__claude-in-chrome__navigate, and mcp__claude-in-chrome__computer, which are not found, suggesting a potential installation or configuration problem.

Guidance

  1. Verify Installation: Check if the necessary tools are installed and properly configured in the Claude environment.
  2. Check Dependencies: Ensure that all dependencies required by the tools are installed and up-to-date.
  3. Review Configuration Files: Look into the configuration files of the Claude environment to see if there are any misconfigurations that could lead to the tools not being recognized.
  4. Reinstall Tools: If the tools are not installed, attempt to install them according to the documentation provided for the Claude environment.
  5. Check for Version Compatibility: Ensure that the version of the tools and the Claude environment are compatible.

Example

No specific code example can be provided without more context on how the tools are supposed to be installed or configured. However, the process might involve running specific installation commands or modifying configuration files to include the missing tools.

Notes

The provided information does not specify how the tools should be installed or configured, which makes it difficult to provide a precise solution. The issue seems to be related to the environment setup rather than a code issue.

Recommendation

Apply a workaround by manually installing or configuring the missing tools (mcp__claude-in-chrome__tabs_context_mcp, mcp__claude-in-chrome__navigate, mcp__claude-in-chrome__computer) if possible, or seek further assistance from the Claude environment's support or documentation to correctly set up these tools.

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