Skip to content

fix(ui): stop the pull request list from re-announcing on every CI poll - #185555

Merged
obviyus merged 12 commits into
openclaw:mainfrom
Pick-cat:fix/ui-live-region-announcements
Nov 3, 2026
Merged

obviyus merged 12 commits into
openclaw:mainfrom
Pick-cat:fix/ui-live-region-announcements

Conversation

@Pick-cat

@Pick-cat Pick-cat commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Closes #185717.

What Problem This Solves

Fixes: the pull request list changes an entire interactive live region on unchanged CI polls, while earlier count-only summaries also suppressed genuine CI changes.

User Impact

User impact: unchanged polls and row reordering leave the announcement text untouched, while real per-PR status changes and pending check progress still update it. This includes two PRs swapping failing and passing states without changing the overall totals. Interactive PR rows and actions stay outside the live regions.

Why This Change Was Made

Keep two stable, noninteractive live regions: the PR count and a CI summary that includes each PR's identity, state and check totals. Stable URL ordering prevents row reordering from creating a new announcement; retaining per-PR facts avoids the information loss of aggregate status buckets.

Preserves @Pick-cat's original fix commits. The existing rendering test now guards the announcement boundary; the added 301-line route scaffold is replaced by observed built-route proof. Against the merge base: production +50/-1, tests +2/-2 (net 0), docs +1/-0. No API, config, stored-data, permission or threshold changes.

Evidence

Exact-head built-Gateway/Chromium DOM captures and results, candidate 398dc7cb75d2da8dfcfee81e8f13ea7084772989, Node 24.22.1 Linux Docker:

  • Main twice: every unchanged poll made 14 live-region mutations; the region contained the full list and 14 interactive controls.
  • Candidate twice: unchanged polls and row reordering made 0 live-region mutations; both region nodes remained stable with 0 interactive descendants.
  • Pending progress, running-to-failing, completion beside another failure, balanced failing/passing swaps, and recovery each changed the candidate CI region once per run.
  • Row removal updated count and CI regions once each.
  • The browser used the actual Gateway's authentication, handshake, profile, session/history and subscription paths. Only the selected session's CI feed was replaced on the network side; server sequence numbers and all other traffic were preserved.
  • Consolidated DOM-boundary regression: 1 expected failure on main; candidate owner test file 28/28 passed. Focused formatting/lint and keyless UI copy baseline generation passed.

The evidence measures actual live-region DOM text and mutations, not spoken utterances or a specific screen-reader engine. The CI feed is synthetic; GitHub API behavior is outside this UI-only change.

Merge danger: two-way door; reverting restores the former announcement behavior without a migration. Blast radius is screen-reader announcements in the session PR Details surface; visible PR status, actions and Gateway behavior are unchanged.

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@Pick-cat
Pick-cat force-pushed the fix/ui-live-region-announcements branch from c2bbe93 to be90397 Compare October 27, 2026 06:20
@Pick-cat Pick-cat changed the title fix(ui): stop live regions from re-announcing whole chat surfaces fix(ui): stop the pull request list from re-announcing on every CI poll Oct 27, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 27, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Moves pull request announcements into separate count and stable per-PR CI summaries outside interactive rows.

Example: Two PRs, synthetic/widget#101 and synthetic/widget#102, exchange failing and passing CI states.

  • Before: The entire interactive list occupies a live region and mutates even on unchanged polls.
  • After: The CI summary updates once for the exchange; unchanged polls and row reordering produce no live-region mutations.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused, worthwhile repair with exact-head shipped-entry-point proof, a discriminating base-failing regression, and no identified defects; required CI is still pending.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): obviyus’s exact-head built-Gateway Chromium traces exercise the shipped Control UI with a synthetic network-side CI feed and demonstrate silent unchanged polls/reordering, retained pending progress and balanced swaps, stable region nodes, and zero interactive descendants. This satisfies the previous rank-up request; it proves DOM announcement boundaries rather than a particular screen-reader engine.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Repeated CI refreshes mutate an accessibility live region containing the full interactive PR list.
Reason: The focused repair removes unchanged-poll noise while preserving meaningful CI updates, matching the direction established in collaborator discussion.

Merge readiness

✅ Ready for maintainer review

This PR fixes a current accessibility defect with a focused patch and no actionable findings; exact-head behavior proof resolves the previous blocker, while required CI remains pending.

Priority: P2
Reviewed head: 398dc7cb75d2da8dfcfee81e8f13ea7084772989

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway PR snapshots enter the Control UI session Details renderer, which produces interactive rows and localized accessibility announcements.

flowchart TD
  A[Gateway PR subscription] --> B[Session PR props]
  B --> C[Existing row projection]
  C --> D[Interactive PR rows]
  C --> E[Count announcement]
  C --> F[Stable per PR CI announcement]
Loading

Technical review

Best possible solution:

Land the existing renderer-level fix once its required checks pass.

Do we have a high-confidence way to reproduce the issue?

Current-main source encloses interactive PR rows in a polite live region, and supplied built-Gateway baseline traces demonstrate repeated mutations on unchanged snapshots; this review ran no target code.

Is this the best way to solve the issue?

The smallest complete fix keeps interactive rows outside live regions and derives stable text from the existing row owner; every hunk serves that invariant without new state, polling or test scaffolding.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3e3935a6b4ae.

Provenance checked

  • Interactive PR-list live region changes intended behavior with a stated reason (33b16c7: This commit carries the broad region into the compact Details renderer; its PR describes readable, accessible PR controls rather than an intentional requirement to announce every poll. Earliest origin remains unverified.)
  • Existing rendering regression keeps the original intent (6508e01: The original case protects absent diff values from becoming invented zeroes; later consolidation reduced redundant assertions, and this PR retains that contract while adding the live-region boundary guard.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 33b16c7 adds ui/src/pages/chat/components/chat-pull-requests-content.tsx:355 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 33b16c7ef875; files: ui/src/pages/chat/components/chat-pull-requests-content.tsx)
  • Peter Steinberger: Raw commit d003cdc adds ui/src/pages/chat/components/chat-pull-requests-content.tsx:111 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d003cdc1a14d; files: ui/src/pages/chat/components/chat-pull-requests-content.tsx)

PR surface

Source +49, Tests 0, Docs +1. Total +50 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 50 1 +49
Tests 1 2 2 0
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 53 3 +50

Review metrics

Metric Value Why it matters
Production versus test LOC Production +50/-1; tests +2/-2 The production growth implements localized, stable summaries in the existing renderer; the regression reuses an existing case without net test growth.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Repairs repeated accessibility announcements on a limited session Details surface without evidence of a blocked core workflow.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (12 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-27T08:42:03.374Z sha e98a13016eea6fa144bb8a26b39135b07d6c63bc :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-27T10:21:01.485Z sha 226fddc2d816ce9cd3448348477e82fbef5cabcc :: blocked before merge. :: none
  • reviewed 2026-10-27T11:04:40.142Z sha 4ac13c5a88fa8a8c579184679d410156f96eaa18 :: needs real behavior proof before merge. :: [P2] [P2] Announce CI completion instead of clearing the summary
  • reviewed 2026-10-27T11:25:57.588Z sha 3f96fffe03c056b04eeabb81b579e326b29671f6 :: needs real behavior proof before merge. :: [P2] Preserve CI transitions while another pull request remains failing
  • reviewed 2026-10-27T11:34:15.542Z sha 3f96fffe03c056b04eeabb81b579e326b29671f6 :: needs real behavior proof before merge. :: [P2] Preserve CI transitions while another pull request remains failing
  • reviewed 2026-10-27T12:37:15.163Z sha 8028fbd56f0f7b1a033fbce6eaf7f0149f4d370b :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-29T07:11:54.754Z sha 542bc2e :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-29T09:24:36.712Z sha 542bc2e :: needs real behavior proof before merge. :: none

Reviewed November 3, 2026, 3:14 AM ET / 08:14 UTC (Revision 13).

@Pick-cat

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The blocking item was real behavior proof. Head bf76775cadf now carries it.

Regression test added (chat-pull-requests-announcement.test.tsx) that mounts the real component and drives: initial paint → CI-only refresh with the same count → count change.

Red on origin/main:

× keeps CI churn out of the live region and announces only count changes
  AssertionError: expected 'openclaw/openclaw#103469claude/browse…' to be '2 pull requests'
× keeps the renderer's rows interactive while the region stays empty
  AssertionError: expected null to be 'true'
Tests  2 failed (2)

Green on this head: Tests 2 passed (2).

The first failure message is the defect itself — the region was announcing the row markup rather than a count.

I cannot produce a screen-reader recording (NVDA/VoiceOver) from this environment. The test asserts the live region's membership instead: the region holds the count and no interactive descendants, a CI refresh that leaves the count unchanged does not touch its content, and a count change updates it. If that substitution is not sufficient, please name what would be.

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 27, 2026
@Pick-cat
Pick-cat force-pushed the fix/ui-live-region-announcements branch from bf76775 to c575a48 Compare October 27, 2026 07:10
@Pick-cat

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

check-lint failed on the previous push (bf76775cadf) with:

chat-pull-requests-announcement.test.tsx:48:28: error:
Return statement should not be used in Promise executor. (eslint(no-promise-executor-return))

Head c575a48a0a3 replaces that sleep with the suite's waitForSolid helper. check-lint and check-lint-core-* are green on this head, the regression test still passes (2 passed), and format --check is clean.

The behavior proof from my previous comment is unchanged and still applies.

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the clawsweeper:intake:bug Preliminary submission classification; full source review pending. label Oct 27, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 27, 2026
@Pick-cat

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Screen reader users hear the entire CI card re-read every five seconds while
a session has pull requests with running checks.

`aria-live="polite"` sat on the `.chat-prs` container, and CI status polls on
a five-second timer, so each poll re-rendered the rows inside the region and
the reader announced the whole card: every reference, branch, and state.

Move the announcement to a dedicated `sr-only` status element that carries
only the row count, following the `AttachmentReadStatus` pattern already in
`chat-attachments.tsx`. Rows render exactly as before.

Measured in Chromium on the rendered markup: the announced payload drops from
75 characters with 2 interactive descendants to 15 characters with 0.
Covers the behavior the live region split is meant to guarantee: the region
carries the row count and nothing else, a CI-only refresh leaves it untouched,
and a count change updates it. Rows keep their links outside the region.

Red on origin/main:
  expected 'openclaw/openclaw#103469claude/browse...' to be '2 pull requests'
  expected null to be 'true'

Green on this head: 2 passed.
The reviewer asked for evidence on the shipped component rather than a markup
table. This runs the real ChatPullRequestsContent in the repo's Chromium browser
project and reads the live region directly.

Red on origin/main:
  expected 'openclaw/openclaw#103469claude/browse…' to be '2 pull requests'

The failure message is the defect: the region announced the row markup instead
of a count.

Green on this head: the region announces exactly "2 pull requests" with no
links or controls inside it, a CI-only refresh leaves that payload untouched,
and a count change updates it.
The previous browser case re-mounted the component for every purported refresh,
which cannot say anything about re-announcement: destroying and recreating the
region guarantees a fresh element. Review flagged this correctly.

Mount once, hold the rows in a signal, and drive genuine reactive updates. A
MutationObserver over the live region then records what the browser actually
mutated during a CI-only refresh.

Red on origin/main: expected 'openclaw/openclaw#103469claude/browse...' to be
'2 pull requests', for both cases.

Green here, and the assertions now carry the weight:
- rows re-render (the .chat-prs markup changes) while the live region records
  zero child/character-data mutations, keeps its element identity, and stays
  connected;
- a count change mutates the region and updates it in place.
The review asked for evidence through the shipped Control UI rather than a
component harness. This drives the real chat route: a mock Gateway session
publishes pull requests, then a CI-only update with the same row count, then a
count change.

It reads the polite region's text at each step and, through CDP
Accessibility.getFullAXTree on the top-level page, the names Chromium reports
for polite live regions - so the trace is accessibility data, not a source scan.

Asserts:
- the region announces '2 pull requests' and holds no links or buttons;
- after a CI-only refresh the .chat-prs markup changes but the announced text
  does not;
- a count change updates the announcement to '1 pull request'.
Main announced CI text only as a side effect of re-rendering the whole card, so
a genuine pending->failed transition arrived buried in the same noise as every
identical poll. Moving the list out of the live region removed both, which also
silenced real transitions.

Keep the count announcement, and add a second live region carrying a summary
derived from check states rather than row markup. An identical poll produces the
same string and therefore no DOM change and no announcement; a transition
changes it exactly once. It renders nothing while every check is settled, so
clearing it announces nothing either.

Removes the jsdom component test: the Chromium case drives the same component
with mutation-level assertions and fully subsumes it.
Taking a row from pending to passing zeroes both failing and running, so the
summary memo returned undefined and the region was cleared. A cleared live
region announces nothing, so the completion - and a failed-to-passing recovery -
still went unannounced. That kept part of the status-silencing regression this
change set out to remove.

Count settled checks and render a completion summary for them instead. The text
now moves running -> failing -> passed as the state changes, one announcement
per genuine transition, and identical polls still produce the same string and
therefore no announcement.

Checked against the reviewer's exact cases: pending -> passing and
failing -> passing both announce now, in the browser component test and in the
shipped-page e2e.
Review found the summary still dropped real changes: with one row failing and
another running the text was "1 failing", and when the running row finished the
failing count was unchanged, so the string was identical and neither region
mutated. Worse, completion had been expressed by clearing the region, and an
empty live region announces nothing.

Report every non-zero bucket instead of only the worst one, and report
completion explicitly:

  2 pull requests with CI: 1 failing, 1 still running
  2 pull requests with CI: 1 failing, 1 passed      <- previously silent
  2 pull requests with CI: 2 passed

Any single-row transition now shifts counts between buckets and therefore
changes the string exactly once. Identical polls produce the same string, so no
DOM change and no announcement. The one accepted gap - two rows swapping buckets
in the same poll - is named in the code comment rather than engineered around.

Tests carry the reviewer's cases: a mixed-state regression in the browser test,
and the e2e now installs a MutationObserver over both regions and records the
per-region mutation counts for an identical poll, a mixed transition, the masked
completion, full settlement, and a row removal. It prints that trace, so the
shipped-UI evidence is in the run log rather than only asserted.
…test

The Chromium component test asserted the same behaviour the shipped-route e2e
already covers, and redundant component coverage was marked down on the sibling
change. Drop it: the e2e drives the real chat page and records per-region
mutation counts, which is the evidence this surface needs.

Also fixes the lint failure: the page-side trace store is named prLiveTrace, not
__prLiveTrace, so it no longer trips no-underscore-dangle.
@obviyus

obviyus commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Current-head built-UI proof: real CI changes are still lost

Tested head: d444521593c1413b8e53566a9272380df8bf7331
Baseline: current-main 903394cceb1b047db6ade061b2231c64fabe4f6a

The per-bucket revision fixes the previously observed single-change loss: a failing PR no longer masks another PR finishing. However, it still does not preserve every real CI change that main exposes to the live region.

Reproduction through the built Control UI

Both complete builds succeeded in secretless Node 24.22.1 Linux Docker. Real Chromium loaded each built Control UI from its isolated Gateway. The repository's supported mock-Gateway fixture supplied typed PR subscription events; its server build identity was bound to the exact built artifact, without disabling the production build-skew guard. No source-component mount, model call, paid key or real GitHub account was used.

Two completed matched comparisons produced these DOM mutation counts inside polite live regions:

phase                                  main 1  main 2  candidate 1  candidate 2
identical poll (each of five)              14      14            0            0
check progress while still pending        15      15            0            0
running -> failing                        27      27            1            1
running -> passed beside a failure        26      26            1            1
TWO PRs exchange failing/passing states    32      32            0            0
remaining failure -> passed               23      23            1            1
row count 2 -> 1                           8       8            2            2

These are live-region mutation counts, not counts of spoken screen-reader utterances. Only completed traces are counted; earlier setup/bootstrap failures are excluded.

The discriminating lost transition is:

Before: PR 101 failing; PR 102 passed
After:  PR 101 passed;  PR 102 failing

Both visible row badges change correctly (inspected before/after captures), but the candidate's live text stays exactly:

2 pull requests with CI: 1 failing, 1 passed

Neither candidate live region mutates. Main mutates its live region on the same real transition in both runs. The candidate therefore suppresses two genuine per-PR status changes whenever their bucket counts balance within a poll. This can occur naturally between five-second polls; no timing fault or impossible state was injected.

Owner-level cause and disposition

ciNotice counts only aggregate buckets. The source explicitly accepts the swap case as an edge case. That is a behavioral tradeoff, not merely a missing proof artifact, and it does not meet the stated requirement to retain every real CI-change announcement.

No code/test changes or push were made from this investigation. I am returning this remaining loss rather than requesting a rating upgrade or claiming landing readiness. The poll-noise fix and the now-preserved masked completion/recovery transitions are confirmed, but the all-real-changes condition remains unsatisfied.

Aggregate buckets still hid real changes. With one PR failing and another
passing, the totals were '1 failing, 1 passed'; when the two exchanged states -
both row badges visibly changed - the totals were identical, so no live region
mutated and neither change was announced. Pending check progress inside one PR
was dropped the same way. The maintainer reproduced both through the built
Control UI on d444521.

Announce a snapshot per pull request instead: reference, localized state, and
the four exposed check counters, in stable URL order. Any state or counter
change in any row changes that row's text, so balanced swaps and in-progress
counters are preserved, while identical snapshots and row reordering produce
the same string and therefore no announcement.

Net production change is +27/-70: the removed bucket arithmetic and its six
aggregate keys are gone, replaced by one item template. No effects, timers,
retained history or forced DOM writes.

The route test gains the two scenarios that were uncovered, pending progress and
a balanced failing/passing exchange, and asserts both now mutate the CI region
while the count region stays silent.
@Pick-cat

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Head 542bc2ef86e, CI green (ci-gate: "CI and applicable security review requirements passed"). Branch is frozen.

The aggregate-only loss is fixed, including the exact transition you reproduced.

With one PR failing and another passing, the per-bucket totals were 1 failing, 1 passed. When the two exchanged states — both row badges visibly changed — the totals were identical, so no region mutated. Pending check progress was lost the same way. Collapsing rows into totals was the defect; my previous head only treated it as an accepted edge case, and that was the wrong call.

The announcement is now a per-PR snapshot in stable URL order:

2 pull requests with CI: openclaw/openclaw#103469: Failed (3 passed, 1 failed, 0 running, 0 skipped); openclaw/openclaw#103471: Passed (6 passed, 0 failed, 0 running, 0 skipped)

Identity, localized state and the four exposed counters per row. Any change in any row changes that row's text, so balanced swaps and in-progress counters survive. Identical snapshots and reordered rows produce the same string, so no DOM change and no announcement.

Net production change is +27/−70 — the bucket arithmetic and its six aggregate locale keys are gone.

The route test now covers both uncovered scenarios (checks-ui-e2e green on this head):

  • pending progress — counters move while the PR is still pending: CI region mutates, count region silent.
  • balanced exchange — PR 101 passing while PR 102 fails, after the inverse: CI region mutates, count region silent.

Both previously produced zero mutations.

Locally I verified tsc (clean under ui/src), format --check, and a 7/7 behavioural check of the applied derivation including swap, reorder, absent-check and mixed-row cases. I could not run the Chromium e2e locally: this checkout's node_modules is pinned at @solidjs/compiler rc.16 while ui/package.json needs rc.18, so the Control UI bundler aborts before the test starts. That is environment skew, not a change failure, and is why it is left to CI.

Remaining honest limit: live-region mutation and accessibility-tree evidence, not screen-reader speech.

@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@Pick-cat

Pick-cat commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor Author

@obviyus — thanks, the swap case you reproduced is fixed on 542bc2e.

ciNotice no longer counts buckets. It builds one entry per pull request from identity, state and the four exposed counters, in stable URL order, so any per-row change changes the string and balanced swaps are no longer collapsed.

I re-ran your exact transition with your measurement (MutationObserver inside the polite regions), on d444521 and 542bc2e, same harness, same fixtures, same Chromium, same dependency install:

                                         d444521    542bc2e
check progress while still pending       [0,0]      [0,1]
TWO PRs exchange failing/passing         [0,0]      [0,1]
identical poll x5                        [0,0]      [0,0]
row count 2 -> 1                         [1,1]      [1,1]

On d444521 the exchange leaves the text at 2 pull requests with CI: 1 failing, 1 passed; on 542bc2e it rewrites to name each PR's new state.

One thing I want to be straight about, since it affects how much weight to give the route test: replaying the e2e's assertions at component level passes on origin/main, on d444521 and on 542bc2e. It covers the shipped path, but it does not discriminate the fix. The per-step counts above are the part that does.

PR body now has the full table and the gaps, including that this is live-region mutation and element-identity evidence, not a screen-reader recording, and that I have not run the built Control UI through an isolated Gateway — that remains yours to decide.

@Pick-cat

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@obviyus

obviyus commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Built Gateway + Linux Chromium: live-region DOM proof

Baseline: 5918b1d7bf4bca308322e0c0a7f5b5acb1311d48.
Candidate: 398dc7cb75d2da8dfcfee81e8f13ea7084772989.

Both were built and run in secretless node:24.22.1 Docker. Chromium loaded the actual Gateway-served Control UI. Each run used a fresh browser context and newly created task session, with explicit task-owned Gateway profiles/config/state/SQLite paths. Session creation, transcript injection, authentication, handshake, user/profile reads, history and CI subscription RPCs all reached the real Gateway. A network-side WebSocket fixture replaced only the selected session's CI feed; other traffic and server event sequence numbers were preserved. No component mount, replacement bootstrap, mock Gateway implementation, model call or real GitHub credential was used in the completed proof.

Two completed runs per build produced these mutations inside the PR polite live regions:

Input Main run 1 Main run 2 Exact-head run 1 Exact-head run 2
Identical poll, each of three polls 14 14 0 0
Row reorder only 16 16 0 0
Pending check progress 17 17 1 1
Running → failing 27 27 1 1
Other PR completes beside a failure 26 26 1 1
Two PRs exchange failing/passing states 32 32 1 1
Remaining failure → passing 23 23 1 1
Row count 2 → 1 8 8 2 2

On main, the live region contained the entire interactive list, including 14 links/buttons. On the candidate, both live-region nodes retained their identity, neither contained an interactive control, and unchanged polls/reordering left their text untouched. Row removal updated the count and CI regions once each.

The formerly lost balanced swap now changes actual CI live-region text from:

2 pull requests with CI: synthetic/widget#101: CI checks failing (3 passed, 1 failed, 0 running, 0 skipped); synthetic/widget#102: CI checks passing (6 passed, 0 failed, 0 running, 0 skipped)

to:

2 pull requests with CI: synthetic/widget#101: CI checks passing (6 passed, 0 failed, 0 running, 0 skipped); synthetic/widget#102: CI checks failing (3 passed, 1 failed, 0 running, 0 skipped)

Pending progress is also retained while the status stays pending:

synthetic/widget#101: CI checks running (5 passed, 0 failed, 1 running, 0 skipped)

The prior snapshot had 4 passed and 2 running. This transition changed the CI region once in each candidate run.

These are DOM text/mutation observations, not counts of spoken screen-reader utterances. The CI feed is synthetic; this does not test GitHub's API or a particular screen-reader engine. Earlier fixture/bootstrap setup failures were excluded from the completed comparisons.

Focused regression: the consolidated DOM-boundary case fails against baseline production because .chat-prs remains a live region; 1 expected failure, 27 unselected cases. The exact-head owner test file passes 28/28. Focused Oxfmt and Oxlint pass. The keyless UI copy baseline regeneration passed without a generated-file delta.

Simplification preserves Pick-cat's original fix commits, removes the added 301-line route-test scaffold, and folds the boundary guard into the existing rendering case without dropping its unknown-count assertions. Whole PR against the merge base: production +50/-1 (net +49), tests +2/-2 (net 0), docs +1/-0. There are no API, config, schema, permission or threshold changes.

@obviyus

obviyus commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@obviyus

obviyus commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Landed in 78fbb81. Thanks @Pick-cat. Screen readers no longer hear the same CI status on every poll.

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

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Pull request list announces every row on each CI status poll

2 participants