[Bug] Anthropic API Error 400 when generating instructions from current session
Resolved 💬 2 comments Opened Jan 27, 2026 by geekifier Closed Jan 27, 2026
Bug Description
claude code returns API Error 400 when asked to generate instructions based on current session
Prompt
Generate efficient instructions so you can perform this task in the future without input, perhaps it can be used as a skill.
Output
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.5.content.149:thinkingorredacted_thinkingblocks in the latest assistant message cannot be modified. These blocks must remain as they were in the original response."},"request_id":"req_011CXYQH9pfypcNe2ExEAZXS"}
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.20
- Feedback ID: 7f938ced-69f7-4786-8b84-0f5e1ac60433
Errors
[{"error":"Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'\n at readdirSync (unknown)\n at <anonymous> (/$bunfs/root/claude:12:2063)\n at oW (/$bunfs/root/claude:11:35584)\n at readdirSync (/$bunfs/root/claude:12:2024)\n at MIR (/$bunfs/root/claude:1758:380)\n at MIR (/$bunfs/root/claude:1758:1350)\n at <anonymous> (/$bunfs/root/claude:1758:4670)\n at <anonymous> (/$bunfs/root/claude:1758:5401)\n at A (/$bunfs/root/claude:11:7259)\n at fw8 (/$bunfs/root/claude:4826:4342)","timestamp":"2026-01-27T18:16:34.635Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/Users/kamil/.claude/skills'\n at readdirSync (unknown)\n at <anonymous> (/$bunfs/root/claude:12:2063)\n at oW (/$bunfs/root/claude:11:35584)\n at readdirSync (/$bunfs/root/claude:12:2024)\n at MIR (/$bunfs/root/claude:1758:380)\n at MIR (/$bunfs/root/claude:1758:1350)\n at <anonymous> (/$bunfs/root/claude:1758:4713)\n at <anonymous> (/$bunfs/root/claude:1758:5401)\n at A (/$bunfs/root/claude:11:7259)\n at fw8 (/$bunfs/root/claude:4826:4342)","timestamp":"2026-01-27T18:16:34.635Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"output_config: Extra inputs are not permitted\"},\"request_id\":\"req_011CXYLsgvRhBpcEiqeT8gkZ\"}\n at generate (/$bunfs/root/claude:145:37631)\n at makeRequest (/$bunfs/root/claude:162:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-27T18:18:46.729Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier \"API\"\n at <parse> (:0)\n at parse (unknown)\n at <anonymous> (/$bunfs/root/claude:70:855)\n at A (/$bunfs/root/claude:11:7259)\n at Wt_ (/$bunfs/root/claude:1540:40110)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-27T18:18:46.729Z"},{"error":"TelemetrySafeError: Message with ID \"Non-stop from Chicago to San Diego (& vice versa) for only $157 roundtrip\" not found\n at me_ (/$bunfs/root/claude:1580:35198)\n at async call (/$bunfs/root/claude:1580:50020)\n at async GO8 (/$bunfs/root/claude:3034:12583)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-27T18:20:52.895Z"},{"error":"AbortError: The operation was aborted.\n at unknown\n at abortChildProcess (node:child_process:935:42)\n at onAbortListener2 (node:child_process:35:24)\n at abort (unknown)\n at <anonymous> (/$bunfs/root/claude:5165:2153)","timestamp":"2026-01-27T18:21:56.662Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'\n at readdirSync (unknown)\n at <anonymous> (/$bunfs/root/claude:12:2063)\n at oW (/$bunfs/root/claude:11:35584)\n at readdirSync (/$bunfs/root/claude:12:2024)\n at MIR (/$bunfs/root/claude:1758:380)\n at MIR (/$bunfs/root/claude:1758:1350)\n at <anonymous> (/$bunfs/root/claude:1758:4670)\n at <anonymous> (/$bunfs/root/claude:1758:5401)\n at A (/$bunfs/root/claude:11:7259)\n at fw8 (/$bunfs/root/claude:4826:4342)","timestamp":"2026-01-27T18:27:47.463Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/Users/kamil/.claude/skills'\n at readdirSync (unknown)\n at <anonymous> (/$bunfs/root/claude:12:2063)\n at oW (/$bunfs/root/claude:11:35584)\n at readdirSync (/$bunfs/root/claude:12:2024)\n at MIR (/$bunfs/root/claude:1758:380)\n at MIR (/$bunfs/root/claude:1758:1350)\n at <anonymous> (/$bunfs/root/claude:1758:4713)\n at <anonymous> (/$bunfs/root/claude:1758:5401)\n at A (/$bunfs/root/claude:11:7259)\n at fw8 (/$bunfs/root/claude:4826:4342)","timestamp":"2026-01-27T18:27:47.463Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"output_config: Extra inputs are not permitted\"},\"request_id\":\"req_011CXYMZZR6eAev1QC8Dmngk\"}\n at generate (/$bunfs/root/claude:145:37631)\n at makeRequest (/$bunfs/root/claude:162:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-27T18:27:47.560Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier \"API\"\n at <parse> (:0)\n at parse (unknown)\n at…
Note: Content was truncated.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗