[Bug] Cells added in reverse order when creating Python notebooks

Resolved 💬 4 comments Opened Sep 9, 2025 by findEthics Closed Jan 8, 2026

Bug Description
While creating python notebooks (*.ipynb files), claude adds the cells to the notebooks in reverse order
the creation of cells happen in the logically correct order, but while adding them to the notebook the contents are added as the first cell instead of the cell's appropriate location
the possible reason could be not specifying the cell id while creating the cell, and this as a default behaviour adds as the first cell

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 1.0.109
  • Feedback ID:

Errors

[{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:484:14)\n    at Socket.emit (node:events:507:28)\n    at Socket.emit (node:domain:489:12)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-09-09T11:35:35.378Z"},{"error":"Error: 400 {\"error\":{\"message\":\"{\\\"message\\\":\\\"tools.0: Input tag 'web_search_20250305' found using 'type' does not match any of the expected tags: 'bash_20250124', 'custom', 'text_editor_20250124', 'text_editor_20250429'\\\"}. Received Model Group=bedrock/anthropic.claude-sonnet-4-20250514-v1:0\\nAvailable Model Group Fallbacks=None\",\"type\":\"None\",\"param\":\"None\",\"code\":\"400\"}}\n    at X4.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:963:2412)\n    at RT.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:980:2131)\n    at RT.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:980:5344)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async N7B.zY1.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1879:29389)\n    at async zY1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1879:17996)\n    at async N7B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1879:29216)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1879:24065\n    at async BE0 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1879:4265)\n    at async a11 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1879:24035)","timestamp":"2025-09-09T11:37:40.601Z"},{"error":"DomainBlockedError: Claude Code is unable to fetch from www.reddit.com\n    at KiB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3071:5535)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3071:11343)\n    at async ob5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3546:11432)\n    at async WaB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3546:7645)\n    at async pAB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1750:3411)\n    at async m7B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1928:1443)\n    at async rb5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3546:6838)\n    at async nb5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3546:5779)\n    at async l$ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3546:3161)","timestamp":"2025-09-09T11:39:36.818Z"},{"error":"DomainBlockedError: Claude Code is unable to fetch from www.reddit.com\n    at KiB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3071:5535)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3071:11343)\n    at async ob5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3546:11432)\n    at async WaB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3546:7645)\n    at async pAB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1750:3411)\n    at async m7B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1928:1443)\n    at async rb5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3546:6838)\n    at async nb5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3546:5779)\n    at async l$ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3546:3161)","timestamp":"2025-09-09T11:39:36.818Z"},{"error":"Error: getaddrinfo ENOTFOUND community.anthropic.com\n    at Bp.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:713:39831)\n    at ClientR

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗