Skip to content

gallery: Chief inspector stage mounts with its first screen's answers in (flaky load shift) - #33915

Merged
teamleaderleo merged 1 commit into
feat-cmux-nextfrom
base-red-chief-inspector-load-shift
Nov 3, 2026
Merged

teamleaderleo merged 1 commit into
feat-cmux-nextfrom
base-red-chief-inspector-load-shift

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

What was red. gallery health on pushes to feat-cmux-next: pages.chief-inspector#prompt scored a load shift of 0.0159 against its 0 baseline in one of the two jobs that render it (run 41643573386 at 5505bbd). The other job scored 0, so the state was flaky. On a push, a flaky red still fails the run.

Cause. The gallery entry's ApiStore answers from an async fixture fetcher. useSyncExternalStore subscribes in a passive effect, and that effect can run after the first paint. So in some renders the first frame showed "Loading…" and no summary line, and the prompt then drew over it. The gate that catches this is the load-shift gate from #30250. The fixture dates from Lawrence's "chief-inspector page ... has a gallery entry (fixture-backed App, page:cmux.chief-inspector)" (53e28d0). It never warmed its store, and that only began to count when the shift gate landed.

Fix (gallery fixture only). The entry's load now builds one store per fixture (reachable and unreachable) and awaits the URLs the Prompt and Timeline tabs read before the component mounts (/api/status, /api/turns, /api/turn?key=now). The first frame is then the final one. No shipped code changes. The baseline stays at 0.

Risk. Gallery only, in webviews/src/pages/chief-inspector/chief-inspector.gallery.tsx. That path is Chief code, so it gets its own PR. Area owner by git log: @lawrencecchen, who is requested for awareness. This is not a wait gate.

Split from the rest of the gallery flake fixes, which are in a sibling PR.

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

Fixes a flaky load shift in the Chief Inspector gallery entry so the first frame is now the final one.

Some renders showed "Loading…" on first paint because the fixture fetcher's answers settled a tick later, causing a 0.0159 load shift. The entry's load now warms one store per fixture (reachable and unreachable) with the URLs the Prompt and Timeline tabs read (/api/status, /api/turns, /api/turn?key=now). Gallery fixture only; no shipped code changes.

Written for commit 3d0f85a. Summary will update on new commits.

View guided diff Turn on auto-fix

…wers in

pages.chief-inspector#prompt scored a 0.0159 load shift in one of the two jobs that
render it: the fixture fetcher's replies settled after the first paint in some renders,
so the summary line and the prompt drew under a frame of "Loading…". The entry's load
now warms one store per fixture (reachable, unreachable) with the URLs the Prompt and
Timeline tabs read, so the first frame is the final one. Gallery fixture only.

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 3d0f85a: 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=pr33915 -f ref=base-red-chief-inspector-load-shift -f platform=macos -f backend_mode=local

Gallery before/after for 3d0f85a: 3 states rendered, 0 images differ. 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 41649411779 -R manaflow-ai/cmux -n gallery-advisory-33915-3d0f85a1c4c3219a3bec489e9c4f580699fe9b37 (then read gallery-review.json)

States
State Theme Status Diff Picked by
pages.chief-inspector/prompt Apple System Colors Light unchanged 0% own chief-inspector.gallery.tsx
pages.chief-inspector/prompt Apple System Colors unchanged 0% own chief-inspector.gallery.tsx
pages.chief-inspector/timeline Apple System Colors Light unchanged 0% own chief-inspector.gallery.tsx
pages.chief-inspector/timeline Apple System Colors unchanged 0% own chief-inspector.gallery.tsx
pages.chief-inspector/unreachable Apple System Colors Light unchanged 0% own chief-inspector.gallery.tsx
pages.chief-inspector/unreachable Apple System Colors unchanged 0% own chief-inspector.gallery.tsx

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

red: cmux-next checks (god files, concurrency, crash safety, l10n); no finished base run on 84eac87 to compare; do not merge until green; see lane-rules

Shipped in:

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Owned by an agent session · session

@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=20261103T140619Z): SHIP at 3d0f85a

SHIP at 3d0f85a
Visual verdict: unchanged by this diff

Reviewed store initialization, error handling, mount ordering, and all six screenshot pairs; no actionable findings. Build/tests were unavailable because dependencies are absent.

Follow-ups: none

@blacksmith-sh

blacksmith-sh Bot commented Nov 3, 2026

Copy link
Copy Markdown

Found 10 test failures on Blacksmith runners:

Failures

Test View Logs
/tmp/tmp4zd1aj3q/summary-fail.json (live):/summary-fail.json (live): View Logs
/tmp/tmpf__l9s1f/summary-missing.json (live):/summary-missing.json (live): View Logs
[new_workspaces] debug.new_workspace timed 0 of 50 new workspace rows/
[new_workspaces] debug.new_workspace timed 0 of 50 new workspace rows
View Logs
[new_workspaces] the window draws no frames/[new_workspaces] the window draws no frames View Logs
[tabs] debug.tab_switch timed 0 of 40 switches/
[tabs] debug.tab_switch timed 0 of 40 switches
View Logs
[tabs] the window draws no frames/[tabs] the window draws no frames View Logs
test_every_routed_input_triggers_the_workflow (main.PullRequestTiers.test_every_rou
ted_input_triggers_the_workflow) (path='skills/cmux-customization/SKILL.md')
View Logs
test_every_routed_input_triggers_the_workflow (main.PullRequestTiers.test_every_rou
ted_input_triggers_the_workflow) (path='skills/cmux-customization/references/
examples.md')
View Logs
test_every_routed_input_triggers_the_workflow (main.PullRequestTiers.test_every_rou
ted_input_triggers_the_workflow) (path='skills/cmux-customization/references/
local-app-views.md')
View Logs
test_every_routed_input_triggers_the_workflow (main.PullRequestTiers.test_every_rou
ted_input_triggers_the_workflow) (path='skills/cmux-customization/references/
viewer-types.md')
View Logs

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

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Awareness for @lawrencecchen (most recent author on webviews/src/pages/chief-inspector/): this PR changes only the Chief inspector gallery fixture (chief-inspector.gallery.tsx), so the pages.chief-inspector#prompt gallery state stops shifting on load in the gallery health run. No shipped Chief code changes. Review requested; not a wait gate.

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Fresh-home launch of 3d0f85a1c4c3 on a fleet capture Mac (empty HOME, CFFIXED_USER_HOME, TMPDIR and defaults): PASS

Verdict PASS
Build fleet job 4d91d807e0a934f6eaa5dcaf of 3d0f85a1c4c3
Validator scripts/ci/fresh_home_launch_smoke.py from feat-cmux-next at 0b16baa9fc64
Home rendered 7.2s after launch
Up 30s
first_window_frame_committed 5045 ms
Crash reports / uncaught exceptions 0 / 0

fresh-home launch

cmux-ci fresh-home --job 4d91d807e0a934f6eaa5dcaf --pr N (commit status cmux-ci/fresh-home on 3d0f85a1c4c3)

@teamleaderleo
teamleaderleo merged commit 03b4a57 into feat-cmux-next Nov 3, 2026
196 of 210 checks passed
@teamleaderleo
teamleaderleo deleted the base-red-chief-inspector-load-shift branch November 3, 2026 15:14

This branch was previously deployed

1 inactive deployment
ci-routing-agent — 3d0f85a1 Deployed Nov 3, 2026 by teamleaderleo via wait for same-key tree publisher #106361
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