Skip to content

Agent chat tests: a held edit's run checks its tool rows, not the mid-turn card (fixes #24443's red) - #24505

Merged
teamleaderleo merged 1 commit into
feat-cmux-nextfrom
tp/edit-card-pending-fix
Oct 23, 2026
Merged

teamleaderleo merged 1 commit into
feat-cmux-nextfrom
tp/edit-card-pending-fix

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes a red that #24443 added to react-apps-check (3): test/agent-pane-edit-awaiting-permission.test.ts > "when the first edit runs, only its file reads as Edited". It passes at 755c1d6 (#24443's parent) and fails at 3360fb0 on huge-blue.

Context: #24443 builds Leo's ask (Leo, 2026-10-22: "this is pretty good ui: … the collapsing i mean"). It keeps a run whose file change still waits for its permission in tool rows, so the held call stays in sight. codexRuns sets foldRun: false on that run, and isEditRow skips shaped runs; #24443's transcript-collapsed-tool-runs test "an edit waiting for its permission next to finished edits keeps its row" locks that in. The older browser check still looked for the mid-turn edited-files card.

What the page draws for that fixture at feat-cmux-next: the edit that ran reads Edited install.sh +1-0, and the held one reads Edit install_test.sh. So what the test protects still holds (only the edit that ran reads as Edited). This PR makes the test check it on the tool rows instead of the card. No product code changes. The card still comes once the edit runs (the "once allowed and run" test in the same file, which passes).

Tests (huge-blue, Chromium, at c7e203d plus this change): agent-pane-edit-awaiting-permission 5 pass, 0 fail.

No capture: test-only change.

Agent session: cosmic-gray

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Fixes the red agent-pane-edit-awaiting-permission test (the "first edit runs" check) that #24443 introduced. Since a held edit's run now keeps its tool rows instead of the edited-files card, the check asserts on the tool rows: the ran edit reads "Edited install.sh +1-0" and the held one reads "Edit install_test.sh". Test-only change; no product behavior changes.

Written for commit 7ed03c0. Summary will update on new commits.

View guided diff Turn on auto-fix

…bels, not the card

#24443 keeps a run whose change still waits for its permission in tool rows
(codexRuns sets foldRun false; isEditRow skips shaped runs), so the held call
stays in sight. The FIRST_RAN check still looked for the mid-turn edited-files
card and failed. It now checks the same thing on the rows: the edit that ran
reads "Edited install.sh +1 -0", the held one reads "Edit install_test.sh".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Session: https://cmux.com/deeplink/agent?harness=claude&session=01a16030-bf28-7072-b1f6-b83bbd0beacc&host=cosmic-gray
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

cmux status (one comment, edited in place; each line is updated by the job that owns it)

Review 7ed03c0: HQ feed card · gallery before/after runs · checks

App of this head (app.zip, kept 1 day)

gh workflow run reload-build.yml -R manaflow-ai/cmux --ref feat-cmux-next -f tag=pr24505 -f ref=tp/edit-card-pending-fix -f platform=macos -f backend_mode=local

Probably yours: agent-pane-older-rows-fade.test.ts fails here but not on main's latest full suite. Seen on other PRs too (likely flaky): incomingMessage.test.ts, claimPaint.test.tsx, claimPaint.test.tsx and 3 more.

CI failed on 7ed03c03d8 (run 39927365228 attempt 1): 1 code, 1 unknown.

Job Verdict Why
web / react-apps-check (3) code a web test failed
web / react-apps-check unknown no known signature; failed step: Check webview test shards

Failures:

  • seen on other PRs incomingMessage.test.ts a message addressed sender first is that agent's when it names this chat or a listed sender: failed (job)
  • seen on other PRs claimPaint.test.tsx a pooled Settings page claimed by the host reports its paint once its first screen is in: failed (job)
  • seen on other PRs claimPaint.test.tsx a Settings page loaded fresh reports its first paint once its first screen is in: failed (job)
  • seen on other PRs agent-pane-older-rows-fade.test.ts rows of an older page fade in once as they come into view; opened and live rows do not: failed (job)
  • new in this PR agent-pane-older-rows-fade.test.ts Reduce Motion draws rows of an older page in full ink at once: failed (job)
  • seen on other PRs popup-escape.test.ts a 600x400 window sends the commands list past its edge, keyboard and pick intact: failed (job)
  • seen on other PRs transcript-range-content.test.tsx button range copy includes a finished answer once: failed (job)
Matched log lines
web / react-apps-check (3): (fail) a message addressed sender first is that agent's when it names this chat or a listed sender [0.40ms]

Not re-run automatically: web / react-apps-check (3), web / react-apps-check are not machine failures.

Written by scripts/ci/classify_failures.py (ci-failure-attribution.yml); signatures are its SIGNATURES table. A machine verdict is the runner's fault, not this PR's; yours means the failing file is one this PR changes, also red on main that main's latest full suite fails the same way, seen on other PRs that it failed on another pull request's run lately.

red: web / Web status; NEW: green on the base e80d1f6; do not merge until green; see lane-rules
red: web / react-apps-check; no finished base run on e80d1f6 to compare; do not merge until green; see lane-rules
red: web / react-apps-check (3); no finished base run on e80d1f6 to compare; do not merge until green; see lane-rules

Tour of 7ed03c03d8 (run): no media. The tour did not run: only webview code changed (1 path(s)), which the gallery advisory run checks in Linux Chromium on the pull request (its artifact holds any captures); add the media-tour-mac label, then re-add media-tour, to tour it on a Mac.

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Owned by transcript-parity on cosmic-gray · session

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Bead cx-xbvk0 created for this PR by the cmux coordinator.

@github-actions github-actions Bot added the risk:low Risk tier (docs/ci/risk-tiers.md) label Oct 23, 2026
@blacksmith-sh

blacksmith-sh Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Found 21 test failures on Blacksmith runners:

Failures

Test View Logs
---/--- View Logs
---/--- View Logs
---/--- View Logs
---/--- View Logs
---/--- View Logs
src/agent-session/acpmux/conversation/incomingMessage.test.ts/incomingMessage.test View Logs
src/agent-session/acpmux/conversation/incomingMessage.test.ts/incomingMessage.test View Logs
src/agent-session/acpmux/conversation/incomingMessage.test.ts/incomingMessage.test View Logs
src/pages/settings/claimPaint.test.tsx/claimPaint.test.tsx View Logs
src/pages/settings/claimPaint.test.tsx/claimPaint.test.tsx View Logs

...and 11 more test failures. View all on Blacksmith: run 39927365228, run 39927365111

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

rust workspaces / plan (changed Cargo workspaces) is red on 15 of 15 fresh feat-cmux-next PR heads in the last 2:00:00, so it is most likely a base red, not this PR's. The base-reds lane has it; a base merge picks up the fix once it lands.

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Review (Codex xhigh via codex exec on cmux16, different model, correctness first): SHIP at 7ed03c0. The test change matches #24443's design (a run with a held edit stays in tool rows); the locator is scoped to the activity row, labels are deterministic, and the held edit is checked not to read as Edited. No other findings.

@teamleaderleo
teamleaderleo merged commit 7cbeed7 into feat-cmux-next Oct 23, 2026
113 of 124 checks passed
@teamleaderleo
teamleaderleo deleted the tp/edit-card-pending-fix branch October 23, 2026 09:06
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:low Risk tier (docs/ci/risk-tiers.md)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant