[BUG] Long session produces broken outputs that repeat itself partially for half a dozen times and then complete.
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Claude also demonstrated the similar weird pattern in which it breaks itself
midway displaying a long result and repeating the already-displayed parts over
and over again until it repeats a dozen times and then finish the rest.
What Should Happen?
Claude should just display all the outputs and stop at the next prompt.
Error Messages/Logs
Steps to Reproduce
Very hard to reproduce. It usually happens after a longer session involves debugging such as these messages:
Connecting to MongoDB...
❌ Error: MongooseError: The uri parameter to openUri() must be a string, got
"undefined". Make sure the first parameter to mongoose.connect() or
mongoose.createConnection() is a string.
at Connection.openUri
(/usr/src/app/node_modules/mongoose/lib/connection.js:694:11)
at /usr/src/app/node_modules/mongoose/lib/index.js:351:10
at /usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5
at new Promise (<anonymous>)
at promiseOrCallback
(/usr/src/app/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10)
at Mongoose._promiseOrCallback
(/usr/src/app/node_modules/mongoose/lib/index.js:1149:10)
at Mongoose.connect (/usr/src/app/node_modules/mongoose/lib/index.js:350:20)
at analyzeSessions (/usr/src/app/scripts/analyze-sessions.js:24:18)
at Object.<anonymous> (/usr/src/app/scripts/analyze-sessions.js:149:1)
at Module._compile (node:internal/modules/cjs/loader:1521:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
at Module.load (node:internal/modules/cjs/loader:1266:32)
at Module._load (node:internal/modules/cjs/loader:1091:12)
at Function.executeUserEntryPoint [as runMain]
(node:internal/modules/run_main:164:12)
at node:internal/main/run_main_module:28:49
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.119 (Claude Code)
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗