Repository navigation
fix(prompts): overwrite active line on carriage-return updates in taskLog - #656
Open
a2499123744-del wants to merge 1 commit into
Open
a2499123744-del wants to merge 1 commit into
a2499123744-del wants to merge 1 commit into
Conversation
🦋 Changeset detectedLatest commit: d4b0fe4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
Automation signals@a2499123744-del Activity patterns show signs of automation. Classification:
Analyzed 53 public events via @unveil/identity |
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.
What does this PR do?
Fixes
taskLoghandling of carriage-return (\r) spinner and progress updates so intermediate frames overwrite the active line in place rather than accumulating in the buffer and corrupting line-erase height calculations:lines,full,lineOpen,pendingCR) inpackages/prompts/src/task-log.tsinstead of concatenating raw strings into a singlevaluestring with a shared closure-levellastMessageWasRawflag.\r(both leading\rframeand trailingframe\r), standard\r\n, and chunk-split'\r'+'\n'sequences without dropping preceding lines or leaking overwritten frames intoerror()/success()/retainLogoutput.fast-string-width) and current terminal columns (getColumns(output)) so ANSI SGR codes and overwritten frames never inflateerase.lines(...).\r,\r\n, chunk-split CRLF, non-rawcarriage returns, wrapped frame overwrites,limit+retainLog, and multi-groupstate isolation.Closes #510
Type of change
Checklist
pnpm testpasses (or targeted tests for my change)pnpm formathas been runAI-generated code disclosure