claude-code - 💡(How to fix) Fix After compaction and subagent return, Main agent set's itself from Sonnet 4.6 to Opus 4.7 without user interaction [2 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#54984Fetched 2026-05-01 05:49:17
View on GitHub
Comments
2
Participants
2
Timeline
8
Reactions
0
Timeline (top)
labeled ×6commented ×2

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jason/.local/share/claude/versions/2.1.123 (expected in multi-process scenarios)\n at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n at Jw8 (/$bunfs/root/src/entrypoints/cli.js:2769:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:32:24.430Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n at emit (node:events:92:22)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n at async Qo6 (/$bunfs/root/src/entrypoints/cli.js:445:4271)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:32:44.448Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n at emit (node:events:92:22)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:48:26.558Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n at emit (node:events:92:22)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:49:07.876Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n at emit (node:events:92:22)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:49:25.753Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n at emit (node:events:92:22)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:50:00.179Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n at emit (node:events:92:22)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:50:15.320Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n at emit (node:events:92…

Fix Action

Fix / Workaround

----------------- IT DELEGATES---------- ⏺ Dispatching position tuning agent to continue from where the previous agent hit the rate limit. Current scores need to reach 99%+. ▐▛███▜▌ Claude Code v2.1.123 ▝▜█████▛▘ Sonnet 4.6 with high effort · Claude Max ▘▘ ▝▝ ~/Projects/MishiSell

⏺ Dispatching position tuning agent to continue from where the previous agent hit the rate limit. Current scores need to reach 99%+.

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jason/.local/share/claude/versions/2.1.123 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Jw8 (/$bunfs/root/src/entrypoints/cli.js:2769:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:32:24.430Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n    at async Qo6 (/$bunfs/root/src/entrypoints/cli.js:445:4271)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:32:44.448Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:48:26.558Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:49:07.876Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:49:25.753Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:50:00.179Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:50:15.320Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92
RAW_BUFFERClick to expand / collapse

Bug Description this conversation I switched to the opus/ sonnet model to avoid filling up my quota. Conversation history:

The agent flipped itself back to 4.7:
---------- RESUMED BUT RESET THE MODEL CHOICE TO SONNET 4.6 ------------------ ▐▛███▜▌ Claude Code v2.1.123 ▝▜█████▛▘ Sonnet 4.6 with high effort · Claude Max ▘▘ ▝▝ ~/Projects/MishiSell

✻ Conversation compacted (ctrl+o for history)

----------- CONVERSATION COMPACTED SO IT FITS SONNET MODEL----------

⎿ Read ../../.claude/projects/-Users-jason-Projects-MishiSell/memory/feedback_no_shortcuts.md (26 lines) ⎿ Read ../../../../private/tmp/claude-501/-Users-jason-Projects-MishiSell/1954c239-e54d-4da5-96ac-1e88ef46237c/tasks/bolsukf18.output (9 lines) ⎿ Plan file referenced (~/.claude/plans/using-the-vtuber-2d-rigging-agent-nested-grove.md) ⎿ Skills restored (delegate, vtuber-2d-rigging)

----------------- IT DELEGATES---------- ⏺ Dispatching position tuning agent to continue from where the previous agent hit the rate limit. Current scores need to reach 99%+. ▐▛███▜▌ Claude Code v2.1.123 ▝▜█████▛▘ Sonnet 4.6 with high effort · Claude Max ▘▘ ▝▝ ~/Projects/MishiSell

✻ Conversation compacted (ctrl+o for history)

⎿ Read ../../.claude/projects/-Users-jason-Projects-MishiSell/memory/feedback_no_shortcuts.md (26 lines) ⎿ Read ../../../../private/tmp/claude-501/-Users-jason-Projects-MishiSell/1954c239-e54d-4da5-96ac-1e88ef46237c/tasks/bolsukf18.output (9 lines) ⎿ Plan file referenced (~/.claude/plans/using-the-vtuber-2d-rigging-agent-nested-grove.md) ⎿ Skills restored (delegate, vtuber-2d-rigging)

⏺ Dispatching position tuning agent to continue from where the previous agent hit the rate limit. Current scores need to reach 99%+.

------------ AGENT NOW SETS ITSELF TO OPUS 4.7 ------------------ ⏺ Agent(Position tune to 99% browser SSIM) Opus 4.7 ⎿ Backgrounded agent (↓ to manage · ctrl+o to expand)

----- AND Usage is burned within a few minutes ---------------

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.123
  • Feedback ID: 3e39d3c5-5108-4e4d-b823-49f03ce7bcc4

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jason/.local/share/claude/versions/2.1.123 (expected in multi-process scenarios)\n    at x86 (/$bunfs/root/src/entrypoints/cli.js:2769:2177)\n    at Jw8 (/$bunfs/root/src/entrypoints/cli.js:2769:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:32:24.430Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n    at async Qo6 (/$bunfs/root/src/entrypoints/cli.js:445:4271)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:32:44.448Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:48:26.558Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:49:07.876Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:49:25.753Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:50:00.179Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:119:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:122:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T13:50:15.320Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:120:13313)\n    at emit (node:events:92

Note: Content was truncated.

extent analysis

TL;DR

The agent switches back to Opus 4.7 after being set to Sonnet 4.6, causing usage to be burned within a few minutes, suggesting a potential issue with model selection or quota management.

Guidance

  • The error messages indicate Axios timeouts, which could be related to network issues or server overload, but the primary concern is the agent's model switching behavior.
  • Verify if the issue persists when using a different model or adjusting the effort level.
  • Check the documentation for any known issues with model selection or quota management in version 2.1.123.
  • Consider reaching out to support with the provided Feedback ID (3e39d3c5-5108-4e4d-b823-49f03ce7bcc4) for further assistance.

Example

No code snippet is provided as the issue seems to be related to the agent's behavior and model selection rather than a specific code error.

Notes

The content was truncated, which might limit the ability to provide a comprehensive solution. The errors listed are primarily Axios timeouts, but the root cause appears to be related to the agent's model switching.

Recommendation

Apply workaround: Try adjusting the model selection or effort level to see if the issue persists, and reach out to support for further guidance.

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