Skip to content

fix(test): seed canonical progress-widget session liveness - #160463

Merged
vincentkoc merged 1 commit into
mainfrom
fix/progress-widget-roster-fixture
Sep 28, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/progress-widget-roster-fixture

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The split-roster and board-less progress-widget E2E fixtures report running sessions in list replies while startup and descriptor replies read canonical rows without the same run metadata. The mock Gateway deliberately does not learn canonical state from list responses, which may be stale or filtered.

Related: #160010

User Impact

No production UI behavior changes. Two existing scenarios now seed the same rows used by their live roster replies. Deliberately stale gallery replies, board membership and existing assertions remain unchanged.

Why This Change Was Made

The canonical fixture owns startup and descriptor state. Reuse each scenario's live roster rows at that boundary instead of changing production ordering or teaching canonical state from list reads.

Main independently fixed the selected-agent scope case in d6aa710c509. This PR preserves that case byte-for-byte, including its delayed descriptor response, and fixes only the two remaining inconsistent fixtures.

Evidence

  • On the prior three-case revision, a temporary canonical-owner probe failed with the original key-only seed and passed with the corrected seed. All 11 widget E2E cases, formatting, the owning E2E typecheck (68.824 s), and typed lint (141.852 s, zero diagnostics) passed. Browser proof used a 12 GiB kernel cap; static proof used 7 GiB; swap was disabled.
  • That prior proof covers these two unchanged repair hunks. Exact-head CI now passes for e38d804e3b71e65c6865dcb22ec257764293fbf2: all 51 job records are completed without failure, including all UI browser shards, the owning types and typed lint; both required CI contexts are successful. The exact-head review, reviewed 2026-09-28T13:25:25.555Z, has no findings or remaining rank-up move.
  • The historical failed CI request ordering was not recovered. The independent main commit separately qualified its delayed-descriptor interleaving.
  • A separate broad editor-project typecheck (ui/tsconfig.json) was kernel OOM-killed at 7 GiB. The owning E2E typecheck and typed lint passed at the same cap. That aggregate graph is tracked separately in the memory campaign.
  • Production delta: 0. Tests: +36/-33 (net +3), one file. No migration or changelog required.

@vincentkoc vincentkoc self-assigned this Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 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.

@vincentkoc
vincentkoc marked this pull request as ready for review September 28, 2026 13:03
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Sep 28, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 9:25 AM ET / 13:25 UTC (Revision 2).

ClawSweeper review

What this changes

The branch updates two Control UI browser test scenarios so canonical session snapshots and live roster replies describe the same running sessions.

Merge readiness

✅ Ready for maintainer review

The two fixture repairs remain absent from current main. The changed seeds match the mock Gateway’s canonical-state contract, and review found no introduced defect.

Priority: P2
Reviewed head: e38d804e3b71e65c6865dcb22ec257764293fbf2

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused fixture repair has source-supported behavior and reported browser validation, with no actionable patch finding.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This member-authored, test-only PR has no mandatory external-contributor proof gate. The body reports a prior-head browser run of all 11 widget cases and a key-only negative control covering these repair hunks; an exact-head run was not independently observed here, and no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored, test-only PR has no mandatory external-contributor proof gate. The body reports a prior-head browser run of all 11 widget cases and a key-only negative control covering these repair hunks; an exact-head run was not independently observed here, and no stored-data contract changes.
Evidence reviewed 7 items Introduced fixture change: The introduced patch seeds the split-roster and board-less scenarios from their live target-roster rows while retaining the deliberately stale gallery replies and existing assertions.
Canonical mock owner: Scenario sessions initialize canonical rows; startup and descriptor responses read those rows, while list replies project wire rows without writing them back into canonical state.
Widget behavior: The widget selects its target from an archive-inclusive roster without a board filter, then passes that row’s run state to the progress-card renderer.
Findings None None.
Security None None.

How this fits together

Control UI browser tests supply session data through a mock Gateway. The progress widget reads a target-session roster to decide whether a card appears running or paused.

flowchart TD
A[Scenario session rows] --> B[Mock Gateway canonical sessions]
A --> D[Filtered and target rosters]
B --> C[Startup and descriptor snapshots]
C --> E[Control UI session state]
D --> E
E --> F[Progress widget state]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +3. Total +3 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 36 33 +3
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 36 33 +3

Review metrics

None.

Technical review

Best possible solution:

Keep the mock Gateway’s canonical rows authoritative for startup and descriptors while allowing list replies to represent filtered or stale views.

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

Yes. On current main, these scenarios seed canonical rows without the live-run metadata present in their roster replies; a startup or descriptor snapshot can therefore disagree with the roster. This review did not run the browser test.

Is this the best way to solve the issue?

Yes. Aligning the scenario’s canonical seed with its live roster repairs the fixture at its owner without changing production ordering or the intentionally stale gallery response.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against b27c79ba1562.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The repair improves reliability of existing browser coverage without changing production UI behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored, test-only PR has no mandatory external-contributor proof gate. The body reports a prior-head browser run of all 11 widget cases and a key-only negative control covering these repair hunks; an exact-head run was not independently observed here, and no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-28T13:10:09.437Z sha 9a733f9a31c4109c3cf12b5554fc56a5de8389de :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc force-pushed the fix/progress-widget-roster-fixture branch from 9a733f9 to e38d804 Compare September 28, 2026 13:18
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head e38d804e3b71e65c6865dcb22ec257764293fbf2. Preserves the independently landed scope-transition fixture byte-for-byte and keeps only the two sibling canonical-seed repairs. Prior-head proof is labeled; fresh CI is running.

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@vincentkoc
vincentkoc merged commit 741c9cb into main Sep 28, 2026
90 of 91 checks passed
@vincentkoc
vincentkoc deleted the fix/progress-widget-roster-fixture branch September 28, 2026 15:00
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…160463)

Seed the split-roster and board-less widget scenarios from the same live session rows returned by their roster replies. This keeps startup and descriptor facts consistent while preserving deliberately stale gallery responses and existing assertions.

Preserves main's independently landed scope-transition fixture verbatim. Two test scenarios only; production +0, tests +36/-33.

Exact-head CI and ClawSweeper review passed for e38d804; no remaining rank-up moves.
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 P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary 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.

1 participant