fix: prevent progress spinner from cluttering error output#116
fix: prevent progress spinner from cluttering error output#116ManjunathByadagi wants to merge 1 commit into
Conversation
|
Caution Review failedFailed to post review comments 📝 WalkthroughWalkthroughThe change refactors spinner management in the interactive chat session flow by extracting cleanup logic into a dedicated helper function, improving type safety with explicit interval typing, and ensuring consistent cleanup in both success and error paths. ChangesThinking Spinner Cleanup
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi! Just following up on the PR. Please let me know if any additional changes or improvements are needed. Thanks! |
|
Hi @ManjunathByadagi,
Also, please change the target branch to Thanks |
|
Hi @shriyanss, I checked the PR page, but GitHub isn't showing me the option to change the base branch from Could you please retarget the PR to I'll upload the requested screenshots shortly. Thanks! |
What Changed
Cleared the MCP thinking spinner before printing both success and error output so terminal messages render on clean lines without colliding with the active spinner.
Also centralized spinner cleanup logic to ensure consistent behavior across success, failure, and abort flows.
Root Cause
The spinner interval continued running while error messages were printed, causing the terminal to redraw the animated spinner on the same line as the error output.
How It Was Tested
Rebuilt the project using
npm run cleanupRan multiple failing MCP chat attempts using an invalid API key
Verified that:
Summary by CodeRabbit