You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A trailing unspaced & or ; belongs to the outer shell command, but the work-log label drops the bash -c wrapper and appends the separator to the inner script instead.
Deterministic repro on origin/main (9e0de5137bb93e2463baeb611fa88194082ffbed): Call commandDisplayText("bash -c 'echo hi'&") and commandDisplayText("bash -c 'echo hi';"). For the real-app repro, use the command-output model of Replay (dev). In apps/server/scripts/dev-replay/command_output_transcript.ndjson, keep the session/updatetool_call frame with kind: "execute" and set both title and rawInput.command to bash -c 'echo hi'&. Start the Replay turn and expand Worked for. The ACP adapter projects rawInput.command into command_execution.input; the work-log row uses that input as its command label.
Observed: echo hi& in the work-log row, and echo hi; for the semicolon parser case.
Expected: bash -c 'echo hi'& and bash -c 'echo hi'; respectively, preserving the wrapper and its outer separator.
Change
Keep the original wrapper when the shell splitter detects a top-level separator, even if no command follows it. The fix is in the shared display helper used by web, Electron desktop, and mobile; command execution and output are unchanged.
Scope
Small fix for an obvious bug; no issue needed under CONTRIBUTING.md.
Verification
Both focused parser cases failed on base and passed with the guard. vp run check:changed exited 0: formatting, lint, Knip, typecheck, and all 194 tests in commandLabel.test.ts passed.
The isolated web Replay scenario reached the actual work-log row on both sides: its label assertion failed on base and passed with the fix. The evidence gist includes the parser transcript, downloadable before/after screenshot HTML, scenario, and fixture patch.
Not shown: Native iOS or Android runs, a separate Electron run, or a browser capture of the semicolon case (covered by the parser test and transcript).
Authored by GPT-6.2 Sol (Codex); reviewed by Gemini 4 Neon (Antigravity).
Macroscope's review found this PR approvable — Commands with trailing shell separators now retain their full wrapper in activity labels. This is a presentation-only correction; command execution remains unchanged.
You can add or adjust custom eligibility rules. Learn more.
Reviewing files that changed from the base of the PR and between 49ef109 and 84c4341.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The change updates shell wrapper handling so command display text retains trimmed input when a separator remains, even if no command follows. Tests cover inputs ending in & or ;.
Changes: Command display
Layer / File(s)
Summary
Preserve commands with trailing separators packages/client-runtime/src/work-log/commandLabel.ts, packages/client-runtime/src/work-log/commandLabel.test.ts
withoutShellWrapper retains the trimmed input when a separator is present. Tests verify that commandDisplayText preserves inputs ending in & or ;.
Command labels now keep the outer bash -c wrapper when the command ends in an unspaced & or ;. Only the displayed label changes, and no merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the actual change: trailing shell separators are kept outside unwrapped shell wrapper scripts in the client-runtime command label. It follows the conventional commit format and matches…
Description check
The description follows the template well. It has Problem, Change, Scope, and Verification sections. The Problem section gives a sentence of context and a deterministic repro with expected and observe…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the actual change: trailing shell separators are kept outside unwrapped shell wrapper scripts in the client-runtime command label. It follows the conventional commit format and matches the raw summary, which says the splitter now preserves the trimmed command when it reports a remaining command or a separator.
Full details: Description check
Explanation
The description follows the template well. It has Problem, Change, Scope, and Verification sections. The Problem section gives a sentence of context and a deterministic repro with expected and observed behavior. The Change section explains the fix and its shared-helper scope. Scope explains why no issue is needed. Verification lists the focused parser tests, the full check run, and the web Replay scenario, and it states what was not checked on iOS, Android, and Electron. The template's agent-model line is present (Authored by GPT-6.2 Sol, reviewed by Gemini 4 Neon). The description is complete and specific.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Steps: replay both trailing-separator commands in a fresh project, open the completed turn, expand Worked for 1.2s → Ran 2 commands. Chromium, 1280×800, light theme on both commits.
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
size:XS0-9 changed lines (additions + deletions).vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.
2 participants
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.
Problem
A trailing unspaced
∨belongs to the outer shell command, but the work-log label drops thebash -cwrapper and appends the separator to the inner script instead.Deterministic repro on
origin/main(9e0de5137bb93e2463baeb611fa88194082ffbed): CallcommandDisplayText("bash -c 'echo hi'&")andcommandDisplayText("bash -c 'echo hi';"). For the real-app repro, use thecommand-outputmodel of Replay (dev). Inapps/server/scripts/dev-replay/command_output_transcript.ndjson, keep thesession/updatetool_callframe withkind: "execute"and set bothtitleandrawInput.commandtobash -c 'echo hi'&. Start the Replay turn and expand Worked for. The ACP adapter projectsrawInput.commandintocommand_execution.input; the work-log row uses that input as its command label.echo hi&in the work-log row, andecho hi;for the semicolon parser case.bash -c 'echo hi'&andbash -c 'echo hi';respectively, preserving the wrapper and its outer separator.Change
Keep the original wrapper when the shell splitter detects a top-level separator, even if no command follows it. The fix is in the shared display helper used by web, Electron desktop, and mobile; command execution and output are unchanged.
Scope
Small fix for an obvious bug; no issue needed under CONTRIBUTING.md.
Verification
vp run check:changedexited 0: formatting, lint, Knip, typecheck, and all 194 tests incommandLabel.test.tspassed.Not shown: Native iOS or Android runs, a separate Electron run, or a browser capture of the semicolon case (covered by the parser test and transcript).
Authored by GPT-6.2 Sol (Codex); reviewed by Gemini 4 Neon (Antigravity).