Repository navigation
fix(run): prevent output truncation during phase streaming - #290
Merged
admarble merged 1 commit intoFeb 18, 2026
Merged
Conversation
The verbose mode was pausing and resuming the spinner for every streaming chunk, which caused ora's stop() method to clear the terminal line. When chunks arrived in rapid succession, the previous chunk's output would be erased before it was fully rendered. Root cause: ora's stop() calls clear(), which uses cursorTo(0) and clearLine(1) to erase the current line. In a tight pause/write/resume loop, this caused text to be truncated. Fix: Pause the spinner once at the start of streaming and resume it only after all chunks have been processed. This eliminates the repeated line-clearing that caused truncation. Closes #283
3 tasks
admarble
deleted the
feature/283-claude-output-truncation-during-phase-streaming
branch
February 18, 2026 05:56
This was referenced Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
stop()method clears the current terminal line, causing text loss when pause/resume is called for every chunk in rapid successionRoot Cause Analysis
When running
sequant run --verbose, each streaming chunk triggered:spinner.pause()→ callsora.stop()→ clears current lineprocess.stdout.write(textContent)→ writes new contentspinner.resume()→ restarts spinnerWhen chunks arrived rapidly, the previous chunk's text was cleared before rendering completed.
Changes
verboseStreamingActiveflag to track streaming stateTest Plan
npm run buildpassesnpm run lintpassesnpm testpasses (1218 tests)npx sequant run <issue> --verboseshows complete outputCloses #283
🤖 Generated with Claude Code