claude-code - 💡(How to fix) Fix [BUG] web search is failing because adaptive thinking is not supported on opus 4.7

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…

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/f/.local/share/claude/versions/2.1.114 (expected in multi-process scenarios)\n at sd_ (/$bunfs/root/src/entrypoints/cli.js:2751:2177)\n at WH8 (/$bunfs/root/src/entrypoints/cli.js:2751:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T15:34:49.601Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"adaptive thinking is not supported on this model"},"request_id":"req_011CaFGXsNoDZYCLtoB6sgYw"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T15:35:07.835Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier "API"\n at <parse> (:0)\n at parse (unknown)\n at um8 (/$bunfs/root/src/entrypoints/cli.js:168:10030)\n at O (/$bunfs/root/src/entrypoints/cli.js:130:19438)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:170:1186)\n at KHH (/$bunfs/root/src/entrypoints/cli.js:6240:476)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T15:35:07.837Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"adaptive thinking is not supported on this model"},"request_id":"req_011CaFKn7mTvAoDkA9YMUcs1"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:17:41.168Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier "API"\n at <parse> (:0)\n at parse (unknown)\n at um8 (/$bunfs/root/src/entrypoints/cli.js:168:10030)\n at O (/$bunfs/root/src/entrypoints/cli.js:130:19438)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:170:1186)\n at KHH (/$bunfs/root/src/entrypoints/cli.js:6240:476)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:17:41.169Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"adaptive thinking is not supported on this model"},"request_id":"req_011CaFL5cBEn42g2sbnwRYJF"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:21:38.416Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier "API"\n at <parse> (:0)\n at parse (unknown)\n at um8 (/$bunfs/root/src/entrypoints/cli.js:168:10030)\n at O (/$bunfs/root/src/entrypoints/cli.js:130:19438)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:170:1186)\n at KHH (/$bunfs/root/src/entrypoints/cli.js:6240:476)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:21:38.417Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Thinking may not be enabled when tool_choice forces tool use."},"request_id":"req_011CaFL6KjJgDWV9axTfC4WT"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:21:48.172Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Thinking may not be enabled when tool_choice forces tool use."},"request_id":"req_011CaFL6MMXsQotk3g5mMUxA"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:21:48.492Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Thinking may not be enabled when tool_choice forces tool use."},"request_id":"req_011CaFL6R4HPeQBBKoJuEP7w"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:21:49.430Z"},{"error":"Error: 400 {"type":"error","error":{"type":\…

Root Cause

Bug Description web search is failing because adaptive thinking is not supported on opus 4.7

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/f/.local/share/claude/versions/2.1.114 (expected in multi-process scenarios)\n    at sd_ (/$bunfs/root/src/entrypoints/cli.js:2751:2177)\n    at WH8 (/$bunfs/root/src/entrypoints/cli.js:2751:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T15:34:49.601Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"adaptive thinking is not supported on this model\"},\"request_id\":\"req_011CaFGXsNoDZYCLtoB6sgYw\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T15:35:07.835Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier \"API\"\n    at <parse> (:0)\n    at parse (unknown)\n    at um8 (/$bunfs/root/src/entrypoints/cli.js:168:10030)\n    at O (/$bunfs/root/src/entrypoints/cli.js:130:19438)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:170:1186)\n    at KHH (/$bunfs/root/src/entrypoints/cli.js:6240:476)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T15:35:07.837Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"adaptive thinking is not supported on this model\"},\"request_id\":\"req_011CaFKn7mTvAoDkA9YMUcs1\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:17:41.168Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier \"API\"\n    at <parse> (:0)\n    at parse (unknown)\n    at um8 (/$bunfs/root/src/entrypoints/cli.js:168:10030)\n    at O (/$bunfs/root/src/entrypoints/cli.js:130:19438)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:170:1186)\n    at KHH (/$bunfs/root/src/entrypoints/cli.js:6240:476)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:17:41.169Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"adaptive thinking is not supported on this model\"},\"request_id\":\"req_011CaFL5cBEn42g2sbnwRYJF\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:21:38.416Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier \"API\"\n    at <parse> (:0)\n    at parse (unknown)\n    at um8 (/$bunfs/root/src/entrypoints/cli.js:168:10030)\n    at O (/$bunfs/root/src/entrypoints/cli.js:130:19438)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:170:1186)\n    at KHH (/$bunfs/root/src/entrypoints/cli.js:6240:476)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:21:38.417Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Thinking may not be enabled when tool_choice forces tool use.\"},\"request_id\":\"req_011CaFL6KjJgDWV9axTfC4WT\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:21:48.172Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Thinking may not be enabled when tool_choice forces tool use.\"},\"request_id\":\"req_011CaFL6MMXsQotk3g5mMUxA\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:21:48.492Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Thinking may not be enabled when tool_choice forces tool use.\"},\"request_id\":\"req_011CaFL6R4HPeQBBKoJuEP7w\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:21:49.430Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\…
RAW_BUFFERClick to expand / collapse

Bug Description web search is failing because adaptive thinking is not supported on opus 4.7

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.114
  • Feedback ID: 7ba11d49-4c9e-477b-a1d6-2d1c2858c7ee

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/f/.local/share/claude/versions/2.1.114 (expected in multi-process scenarios)\n    at sd_ (/$bunfs/root/src/entrypoints/cli.js:2751:2177)\n    at WH8 (/$bunfs/root/src/entrypoints/cli.js:2751:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T15:34:49.601Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"adaptive thinking is not supported on this model\"},\"request_id\":\"req_011CaFGXsNoDZYCLtoB6sgYw\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T15:35:07.835Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier \"API\"\n    at <parse> (:0)\n    at parse (unknown)\n    at um8 (/$bunfs/root/src/entrypoints/cli.js:168:10030)\n    at O (/$bunfs/root/src/entrypoints/cli.js:130:19438)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:170:1186)\n    at KHH (/$bunfs/root/src/entrypoints/cli.js:6240:476)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T15:35:07.837Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"adaptive thinking is not supported on this model\"},\"request_id\":\"req_011CaFKn7mTvAoDkA9YMUcs1\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:17:41.168Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier \"API\"\n    at <parse> (:0)\n    at parse (unknown)\n    at um8 (/$bunfs/root/src/entrypoints/cli.js:168:10030)\n    at O (/$bunfs/root/src/entrypoints/cli.js:130:19438)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:170:1186)\n    at KHH (/$bunfs/root/src/entrypoints/cli.js:6240:476)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:17:41.169Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"adaptive thinking is not supported on this model\"},\"request_id\":\"req_011CaFL5cBEn42g2sbnwRYJF\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:21:38.416Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier \"API\"\n    at <parse> (:0)\n    at parse (unknown)\n    at um8 (/$bunfs/root/src/entrypoints/cli.js:168:10030)\n    at O (/$bunfs/root/src/entrypoints/cli.js:130:19438)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:170:1186)\n    at KHH (/$bunfs/root/src/entrypoints/cli.js:6240:476)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:21:38.417Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Thinking may not be enabled when tool_choice forces tool use.\"},\"request_id\":\"req_011CaFL6KjJgDWV9axTfC4WT\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:21:48.172Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Thinking may not be enabled when tool_choice forces tool use.\"},\"request_id\":\"req_011CaFL6MMXsQotk3g5mMUxA\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:21:48.492Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Thinking may not be enabled when tool_choice forces tool use.\"},\"request_id\":\"req_011CaFL6R4HPeQBBKoJuEP7w\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:53158)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T16:21:49.430Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\…

Note: Content was truncated.

extent analysis

TL;DR

The most likely fix is to disable adaptive thinking or use a different model that supports it, as the current model (opus 4.7) does not support adaptive thinking.

Guidance

  • Check the documentation for the opus model version 4.7 to confirm that adaptive thinking is not supported.
  • Consider using a different model version that supports adaptive thinking, if available.
  • If adaptive thinking is not essential for the current task, disable it to avoid the error.
  • Review the request parameters to ensure that tool_choice is not forcing tool use, as this may also cause errors with thinking enabled.

Example

No code example is provided as the issue is related to model compatibility and configuration rather than code syntax.

Notes

The provided error messages and environment information suggest that the issue is related to the opus model version and its compatibility with adaptive thinking. However, the content was truncated, which may limit the ability to provide a comprehensive solution.

Recommendation

Apply workaround: Disable adaptive thinking or use a different model that supports it, as the error messages clearly indicate that the current model (opus 4.7) does not support adaptive thinking.

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