[Bug] Anthropic API Error: Cannot modify thinking blocks in assistant messages
Resolved 💬 2 comments Opened May 29, 2026 by marttinm Closed Jun 2, 2026
Bug Description
I got this message API Error: 400 messages.19.content.118: thinking or redacted_thinking blocks in the latest assistant message cannot be modified. These blocks must remain as they were in the original response.
Environment Info
- Platform: win32
- Terminal: WezTerm
- Version: 2.1.136
- Feedback ID: de6f8f44-afb7-4626-997a-0544cbd72515
Errors
[{"error":"McpToolCallError: Project resolution failed: ambiguous project: multiple git repos found in cwd\n at jHA (B:/~BUN/root/src/entrypoints/cli.js:4974:63)\n at fr7 (B:/~BUN/root/src/entrypoints/cli.js:4974:1409)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-29T12:08:58.332Z"},{"error":"McpToolCallError: {\"available_projects\":[\"resources\",\"steamdesktopauthenticator\"],\"error_code\":\"ambiguous_project\",\"hint\":\"Use mem_current_project to inspect detection results, or cd into one of the listed repositories.\",\"message\":\"Cannot determine project: ambiguous project: multiple git repos found in cwd\"}\n at jHA (B:/~BUN/root/src/entrypoints/cli.js:4974:63)\n at fr7 (B:/~BUN/root/src/entrypoints/cli.js:4974:1409)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-29T12:11:58.899Z"},{"error":"McpToolCallError: {\"available_projects\":[\"resources\",\"steamdesktopauthenticator\"],\"error_code\":\"ambiguous_project\",\"hint\":\"Use mem_current_project to inspect detection results, or cd into one of the listed repositories.\",\"message\":\"Cannot determine project: ambiguous project: multiple git repos found in cwd\"}\n at jHA (B:/~BUN/root/src/entrypoints/cli.js:4974:63)\n at fr7 (B:/~BUN/root/src/entrypoints/cli.js:4974:1409)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-29T12:12:01.744Z"},{"error":"McpToolCallError: {\"available_projects\":[\"resources\",\"steamdesktopauthenticator\"],\"error_code\":\"ambiguous_project\",\"hint\":\"Use mem_current_project to inspect detection results, or cd into one of the listed repositories.\",\"message\":\"Cannot determine project: ambiguous project: multiple git repos found in cwd\"}\n at jHA (B:/~BUN/root/src/entrypoints/cli.js:4974:63)\n at fr7 (B:/~BUN/root/src/entrypoints/cli.js:4974:1409)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-29T13:17:52.046Z"},{"error":"McpToolCallError: Project resolution failed: ambiguous project: multiple git repos found in cwd\n at jHA (B:/~BUN/root/src/entrypoints/cli.js:4974:63)\n at fr7 (B:/~BUN/root/src/entrypoints/cli.js:4974:1409)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-29T15:23:34.983Z"},{"error":"McpToolCallError: {\"available_projects\":[\"resources\",\"steamdesktopauthenticator\"],\"error_code\":\"ambiguous_project\",\"hint\":\"Use mem_current_project to inspect detection results, or cd into one of the listed repositories.\",\"message\":\"Cannot determine project: ambiguous project: multiple git repos found in cwd\"}\n at jHA (B:/~BUN/root/src/entrypoints/cli.js:4974:63)\n at fr7 (B:/~BUN/root/src/entrypoints/cli.js:4974:1409)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-29T15:26:30.706Z"},{"error":"McpToolCallError: {\"available_projects\":[\"resources\",\"steamdesktopauthenticator\"],\"error_code\":\"ambiguous_project\",\"hint\":\"Use mem_current_project to inspect detection results, or cd into one of the listed repositories.\",\"message\":\"Cannot determine project: ambiguous project: multiple git repos found in cwd\"}\n at jHA (B:/~BUN/root/src/entrypoints/cli.js:4974:63)\n at fr7 (B:/~BUN/root/src/entrypoints/cli.js:4974:1409)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-29T15:26:45.189Z"},{"error":"McpToolCallError: {\"available_projects\":[\"resources\",\"steamdesktopauthenticator\"],\"error_code\":\"ambiguous_project\",\"hint\":\"Use mem_current_project to inspect detection results, or cd into one of the listed repositories.\",\"message\":\"Cannot determine project: ambiguous project: multiple git repos found in cwd\"}\n at jHA (B:/~BUN/root/src/entrypoints/cli.js:4974:63)\n at fr7 (B:/~BUN/root/src/entrypoints/cli.js:4974:1409)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-29T16:14:59.248Z"},{"error":"McpToolCallError: {\"available_projects\":[\"resources\",\"steamdesktopauthenticator\"],\"error_code\":\"ambiguous_project\",\"hint\":\"Use mem_current_project to inspect detection results, or cd into one of the listed repositories.\",\"message\":\"Cannot determine project: ambiguous project: multiple git repos found in cwd\"}\n at jHA (B:/~BUN/root/src/entrypoints/cli.js:4974:63)\n at fr7 (B:/~BUN/root/src/entrypoints/cli.js:…
Note: Content was truncated.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗