Repository navigation
fix(desktop-terminal): keep a fast command's output when its start and end markers share a read - #10504
Merged
Conversation
…d end markers share a read The session applied every shell marker in a PTY chunk before looking at the chunk's text. When a quick command's start marker, output and end marker arrived in one read, the command finished before its text was examined, so terminal_run returned completed with empty output. Marker offsets now place each piece of text before or after the markers around it.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
[Medium impact] The latest changes appear safe to merge. SummaryKeeps command output between its start and finish markers, even when both arrive in one read.
Reviews (3) · Last reviewed commit: "fix(desktop-terminal): judge a full-scre..." · Reviewed by Greptile |
This comment has been minimized.
This comment has been minimized.
…le read is applied A program that opened and closed the alternate screen and finished within one read was resolved as interactive before its finish marker ran. Interactive resolution now waits until every marker in the read is applied and requires the alternate screen to still be held.
Collaborator
Author
Collaborator
Author
|
@cubic-dev-ai review this PR |
Contributor
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Contributor
There was a problem hiding this comment.
No issues found across 3 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack
Turn on auto-fix | Re-trigger cubic
This branch was previously deployed
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
terminal_runreturnedcompletedwith empty output (and text before a start marker could be captured as output)Type of Change
Testing
New session.test.ts case feeds one chunk carrying echo, start marker, output, cwd, end marker and prompt; it fails on the old code (output "") and passes now. All 141 terminal unit tests pass; desktop type-check, biome,
check:test-patterns,check:comment-hygiene. desktop-e2e runs in CI.Checklist
test-auditauthoring gate)