[Bug] Context Auto-Compact Triggered Unexpectedly on Model Switch
Resolved 💬 3 comments Opened Oct 13, 2025 by julianj Closed Oct 17, 2025
Bug Description
if you're switching from a session of claude-sonnet-4-5-20250929[1m] to something with lower context. As soon as you switch, your context will be ready to auto-compact, and you might loose all or a big chunk of your context. You might even see an error like this:
/compact
⎿ Error: Error during compaction: Error: Conversation too long. Press esc twice to go up a few messages and try again.
It'd be great to get a message before switching. or the ability to compact the context before switching
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.0.14
- Feedback ID: c1b53f73-1370-4dfc-8bed-ca92f3a2c4fa
Errors
[{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:482: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-10-11T01:20:02.745Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗