Skip to content

gallery health: chat inspector Subagents rows follow the section order - #33900

Merged
teamleaderleo merged 1 commit into
feat-cmux-nextfrom
base-red-gallery-chat-inspector-subagents
Nov 3, 2026
Merged

teamleaderleo merged 1 commit into
feat-cmux-nextfrom
base-red-gallery-chat-inspector-subagents

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Part of fixing the gallery health base red on feat-cmux-next (latest base run 41643573386 at 5505bbd): the two Session Info (chat-inspector) Subagents states that #33773 left.

What was red, and why

  • agent-pane.chat-inspector#subagents-open: shift 0.0542 vs a row of 0, on the click of the "40 done · 1 failed" row.
  • agent-pane.chat-inspector#subagents-busy-more: shift 0.0785 vs a row of 0.00791, on the click of "Show 12 more".

Both scores are the same in every theme and attempt of both base runs, and the box tracker scores 0 for both. The score comes from the browser's layout-shift entries. Their sources in the run's results.json are [dx dy dw dh], and each one is exactly minus its previous rect. So each node's current rect is empty: Chromium reports that for a node pushed fully out of the viewport.

  • subagents-open: section.acpmux-session-info-section at y 633 (Background tasks) and at y 813 (Sources), plus a text node at y 801. All of them sit below the opened Subagents list and are pushed past the 900px viewport.
  • subagents-busy-more: the clicked "Show 12 more" fold itself (y 593, it becomes Show less under the opened list), the "94 done · 1 failed" summary row under it (y 621), and the Background tasks and Sources sections (y 661, 841). All are pushed past the viewport.

Nothing above the list moves, and nothing moves up or sideways. The before and after captures show the head, Context, Usage and the first rows in place, and the list growing down. Only the rows after the control move down, which the box tracker (shift.ts) exempts on purpose ("a box after the target in document order that moves straight down: the expansion pushes it").

Culprit: #32850, "Session Info: the machine, Context, what it runs, then Sources by default". It follows Leo's order: "1. Machines showing up so I know if it's cloud or not 2. context 3. Subagents/background tasks running 4. Sources". Before it, Subagents sat in the last block, with Changes, Sources and Outputs above it. So when the rows were seeded (#30256), little or nothing visible sat under the Subagents list. Now Background tasks and Sources sit directly under it, inside the viewport, so opening the list pushes them. That is a deliberate layout change, so the old rows were wrong for the new layout.

Fix

This follows #33753, which did the same for the sibling states #tasks-finished, #workflow-finished and #workflow-agent-failed. It raises the two shift-baseline rows to the measured scores (0.05424, 0.07845) and changes no component.

I did not do the runner change #33753 suggested (dropping browser entries for rows after the target that move straight down). Here every source moves out of the viewport, and Chromium then reports an empty current rect, which can't tell down from up. So the runner change would need a DOM read per source plus a whole-gallery comparison, which is more than this base-red fix.

Risk

Gallery-only: two rows in scripts/gallery-matrix/shift-baseline.json, no shipped code. A real regression in these two states would have to more than add to this push-down to fail them now.

Agent session: agent session

🤖 Generated with Claude Code


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


Summary by cubic

Updates two chat-inspector Subagents layout-shift baseline rows for the new section order.

Opening the Subagents list now pushes Background tasks and Sources past the viewport, since #32850 moved Subagents above them. The baseline rows were seeded when those sections sat below the list, so they no longer match. Raises #subagents-open and #subagents-busy-more to the measured scores, as #33753 did for the sibling states. Gallery-only change; no shipped code.

Written for commit 092f271. Summary will update on new commits.

View guided diff Turn on auto-fix

#subagents-open and #subagents-busy-more open the Subagents list, which pushes
Background tasks, Sources and the list's own fold rows straight down past the
viewport. The box tracker exempts that; the browser's layout-shift entries do
not. Since #32850 put Subagents above Background tasks and Sources, those rows
sit inside the viewport, so the old rows (seeded in #30256) were wrong for the
new layout. Raise them to the measured scores, as #33753 did for the sibling
states.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Session: https://cmux.com/deeplink/agent?id=aid-3bab30503f0b9a7059e5
@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

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

Review 092f271: 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=pr33900 -f ref=base-red-gallery-chat-inspector-subagents -f platform=macos -f backend_mode=local

Gallery before/after for 092f271: 16 states rendered, 8 images differ, 3292 more touched states not rendered. Images are in the run's artifact, not on this public PR; the independent review of this head reads them on its own, so the PR needs no hand-made screenshots of these states.

gh run download 41647484707 -R manaflow-ai/cmux -n gallery-advisory-33900-092f271726d5862019944018990e2fd6ac9abb7e (then read gallery-review.json)

States
State Theme Status Diff Picked by
agent-pane.access-offer/turn-no-credits Apple System Colors Light unchanged 0% everything shift-baseline.json
agent-pane.access-offer/turn-no-credits Apple System Colors unchanged 0% everything shift-baseline.json
agent-pane.access-offer/turn-low-credits Apple System Colors Light unchanged 0% everything shift-baseline.json
agent-pane.access-offer/turn-low-credits Apple System Colors unchanged 0% everything shift-baseline.json
agent-pane.access-offer/turn-no-offer Apple System Colors Light unchanged 0% everything shift-baseline.json
agent-pane.access-offer/turn-no-offer Apple System Colors unchanged 0% everything shift-baseline.json
agent-pane.acpmux-batch-send/batches Apple System Colors Light changed 0% everything shift-baseline.json
agent-pane.acpmux-batch-send/batches Apple System Colors changed 0% everything shift-baseline.json
agent-pane.acpmux-batch-send/batch-raw Apple System Colors Light changed 0% everything shift-baseline.json
agent-pane.acpmux-batch-send/batch-raw Apple System Colors changed 0% everything shift-baseline.json
agent-pane.acpmux-batch-send/batch-sending Apple System Colors Light unchanged 0% everything shift-baseline.json
agent-pane.acpmux-batch-send/batch-sending Apple System Colors unchanged 0% everything shift-baseline.json
agent-pane.activity-line-looks/none Apple System Colors Light unchanged 0% everything shift-baseline.json
agent-pane.activity-line-looks/none Apple System Colors unchanged 0% everything shift-baseline.json
agent-pane.activity-line-looks/spinner Apple System Colors Light changed 0.0509% everything shift-baseline.json
agent-pane.activity-line-looks/spinner Apple System Colors changed 0.0489% everything shift-baseline.json
agent-pane.activity-line-looks/kind Apple System Colors Light changed 0.0341% everything shift-baseline.json
agent-pane.activity-line-looks/kind Apple System Colors changed 0.0235% everything shift-baseline.json
agent-pane.activity-line-looks/aligned Apple System Colors Light unchanged 0% everything shift-baseline.json
agent-pane.activity-line-looks/aligned Apple System Colors unchanged 0% everything shift-baseline.json
agent-pane.add-account/subscription Apple System Colors Light unchanged 0% everything shift-baseline.json
agent-pane.add-account/subscription Apple System Colors unchanged 0% everything shift-baseline.json
agent-pane.add-account/api-key Apple System Colors Light unchanged 0% everything shift-baseline.json
agent-pane.add-account/api-key Apple System Colors unchanged 0% everything shift-baseline.json
agent-pane.add-account/unavailable Apple System Colors Light unchanged 0% everything shift-baseline.json
agent-pane.add-account/unavailable Apple System Colors unchanged 0% everything shift-baseline.json
agent-pane.add-project-panel/environment Apple System Colors Light unchanged 0% everything shift-baseline.json
agent-pane.add-project-panel/environment Apple System Colors unchanged 0% everything shift-baseline.json
agent-pane.add-project-panel/sources Apple System Colors Light unchanged 0% everything shift-baseline.json
agent-pane.add-project-panel/sources Apple System Colors unchanged 0% everything shift-baseline.json
agent-pane.add-project-panel/directory Apple System Colors Light unchanged 0% everything shift-baseline.json
agent-pane.add-project-panel/directory Apple System Colors unchanged 0% everything shift-baseline.json

Pick other states with a Gallery: entry.id, entry.id/variant line in the PR body.

Shipped in:

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Owned by an agent session · session

@github-actions github-actions Bot added the risk:normal Risk tier (docs/ci/risk-tiers.md) label Nov 3, 2026

@teamleaderleo teamleaderleo left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review (codex gpt-6-astra high, next-review, since=20261103T140023Z): SHIP at 092f271

SHIP at 092f271
Visual verdict: unchanged by this diff; supplied renders differ only in spinner animation phases.

Checked JSON validity, state keys, and baseline comparison logic; no correctness findings. Tests could not run because Bun is unavailable.

Follow-ups: none

@teamleaderleo
teamleaderleo merged commit 6df9da4 into feat-cmux-next Nov 3, 2026
134 of 146 checks passed
@teamleaderleo
teamleaderleo deleted the base-red-gallery-chat-inspector-subagents branch November 3, 2026 14:09

This branch was previously deployed

1 inactive deployment
ci-routing-agent — 092f2717 Deployed Nov 3, 2026 by teamleaderleo via wait for same-key tree publisher #106316
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant