Registry Mirror
Skip to content

Conversation

@saphid

@saphid saphid commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Problem

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/update tool_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).

@macroscopeapp

macroscopeapp Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 49ef109

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.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

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 ;.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Suggested labels: bugfix

Merge Risk: Minimal · previous review 49ef1

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between a19b918 and 49ef109.

Files selected for processing: 2

  • packages/client-runtime/src/work-log/commandLabel.test.ts
  • packages/client-runtime/src/work-log/commandLabel.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Dec 2, 2026
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Dec 2, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

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.

Scenario: Trailing shell separators stay outside wrapper scripts

Proven: the scenario fails on base 128759b072 and passes on head 84c43411bd.

Base 128759b072 Head 84c43411bd
Result ❌ failed
ASSERTION_FAILED: expect.toBeVisible failed
locator: getByText("bash -c 'echo hi'&")
expected: visible
observed: no node (match count 0)
✅ passed
trailing separators Base 128759b072: trailing separators Head 84c43411bd: trailing separators
failure Base 128759b072: failure

Scenario and replay fixture driver

Before recording · After recording

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Dec 2, 2026
@juliusmarminge
juliusmarminge merged commit 754d558 into pingdotgg:main Dec 2, 2026
59 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants