Skip to content

fix(test): unblock offline reload and retain automation row contract - #189696

Merged
steipete merged 6 commits into
mainfrom
solid2/hf-main-ui-boundaries-1031
Oct 31, 2026
Merged

steipete merged 6 commits into
mainfrom
solid2/hf-main-ui-boundaries-1031

Conversation

@steipete

@steipete steipete commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Two adjacent E2E regressions remain after the original scheduled-run investigation: the placement recovery fixture waits for a roster during an intentional offline reload, and the automation reload assertion expects a result summary that the UI intentionally removed. This PR fixes those two test contracts. The original badge and Review regressions are now fixed on main.

User Impact

Test-only repair; no product behavior, startup assets, lazy boundaries, routes, or appearance change.

Why This Change Was Made

  • The offline placement recovery fixture must return from its offline reload before it can reconnect. Use the existing awaitInitialRoster: false option; retain explicit initial readiness, held-runtime, reconnect, queue delivery, and request-count assertions.
  • c9a75b2a16f intentionally limited automation rows to name and schedule. Verify that contract after reload while preserving the persisted result assertion in chat and the existing run-history/audit checks.

The other two originally reported failures expected healthy worker badges to disappear. The placement case was already repaired by #189641 (aff1c6fd3ba); the cloud disk case was repaired in parallel by #189701 (114adcd6e5b), now merged into this branch. The Review repair landed independently in #189730 (4ade7ee96f8); the conflict resolution adopts its test byte for byte and removes this PR's duplicate. No chunk boundary regression was found.

Evidence

Check Result
Last passing scheduled run 41224492067, 73bd1e4af79e: all three exact cases passed
Local last-green reproduction All three passed twice
Local failing-head reproduction 6df00ffde9: all three failed twice at the exact CI assertions
Bisection midpoint e8621deb4a6: both badge cases failed twice; Review passed twice
Original shard 1 composition Placement target 20/20; 136/137 files passed. Three adjacent offline recovery cases failed before the fixture correction
Recovery fixture correction All three cases passed; general E2E typecheck passed
Original shard 3 composition 136 files / 546 cases passed; corrected Review target passed 20/20
Original shard 2 composition Disk target passed 20/20 in 308.7 seconds; 135/136 files passed, with one independently reproduced dashboard scroll assertion failure. Initial attempt hit the default 300-second watchdog; retry used the supported 600-second window
Local checks UI and E2E typechecks, formatting, scoped lint, and diff check passed
Independent review No actionable P0–P2 findings in each repair
Prior-head CI 41235730235 at c386751b559: both real-Gateway shards and six UI shards passed; UI 1 failed only the two exact matched main PR-chip cases
Final integration f44c1845cd5: conflict resolved by adopting #189730; remaining two repairs unchanged; fresh independent review and E2E typecheck passed; CI 41241312436 fully green, including all seven UI and both real-Gateway shards

The 20-repeat composition proof uses production base 9e64fc4ab762624849d9256524bf2480a7ba3fb2 with the corrected tests and temporary per-target repetition options. These options are not committed. The requested 20-repeat Review proof used this lane's equivalent repair before #189730 landed; final source now uses the independently landed main version. Current-head PR CI supplies integration proof after the conflict-resolution merge. Prior-head PR run 41235730235 failed only these two exact test names, both also failing in the then-latest completed scheduled main run 41238866951 (UI job 124648551332); they also failed in the previous scheduled run 41234198377:

  • session pull request chips > keeps every PR visible and actionable at 1440 in light
  • session pull request chips > offers a compact publication row while rate limited on desktop

The local shard-2 run also exposed Control UI dashboard side-panel selection > uses Panels for the main Dashboard conversation without replacing its content: after closing/reopening Panels, scrollTop was 402 instead of 1444 at line 166. The unchanged test reproduces independently on both production base 9e64fc4ab76 and prior head c386751b559 (each replay: 1 failed, 2 passed). No source in that flow is changed by this PR. The layout helper waits for bounding-box stability rather than transcript scroll stability, but whether the failure is a settling assumption or a product restoration defect remains unresolved. This is recorded as an investigated local failure, not a passing test; the original three target cases are all 20/20. The prior-head CI has no dashboard failure. The unrelated dashboard case was not rerun after the later main integration. Those prior-head CI failures were qualified as inherited; after the conflict-resolution merge, final-head CI passed completely and native auto-merge landed the PR.

Changed test files: 783 → 787 lines (+4). Production LOC unchanged. Screenshots, startup-byte measurement, and port-only Knip are not applicable to this test-only change.

UI commits between the last passing and failing scheduled heads
926d7876d22 fix(ui): image viewer arrows stop at message boundaries within a turn
93e0789962d fix(ui): match sidebar menu geometry in stability tests (#189633)
53372e6349f fix(ui): restore total CSS budget headroom (#189618)
a8d7e641984 perf(ui): avoid restarting pending model searches (#189596)
b873e69d3c2 fix: avoid loading patches for environment change totals (#189571)
e8621deb4a6 improve(ui): restore PR and worker colors on session rows (#189526)
0fa8b191def test(ui): measure translucent board menu contrast (#189598)
61411ec0d30 perf(ui): yield Advanced and plugin settings first visits (#189556)
de9c4ab5c0d chore: remove unused Workboard test helpers (#189578)
b8754e443c8 improve(ui): keep mobile people menus on one edge axis (#189468)
15d0dbc48ef fix(ui): make session filter trigger icon-only (#189539)
b9e4100a2cb improve(ui): match sidebar group actions to session rows (#189530)
c18dd0e81f4 fix(ui): sessions sidebar header scrolls away with the session list
03effc61062 chore(ui): refresh control ui locales (#189594)

Merged as 01ac91c280f7d9b4f50feae72dbf55d17d72bfcf through native auto-merge after fully green final-head CI. The earlier inherited-failure admission did not merge; it was superseded by the conflict-resolution head.

Update the disk-pressure scenario for healthy worker badges restored in #189526. Keep Environment summary reads separate from the deferred Review patch request introduced in #189571, and assert the rendered patch after opening its file.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T20:59:09.759400Z f44c184 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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. labels Oct 31, 2026
@steipete steipete changed the title fix(ci): check current cloud badges and Review loading fix(test): align UI loading and recovery contracts Oct 31, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. 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 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR updates Control UI tests for separate summary and patch loading, intentional offline reloads, and automation rows containing names and schedules.

Example: Open Review while an Environment summary request is pending for changes totaling +12,480 and −1,030.

  • Before: The test expects Review to share the summary request and fails against the intentional production behavior.
  • After: The test holds both requests independently, verifies Review remains busy after the summary completes, and checks the rendered patch after its response arrives.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-supported test repair with no actionable findings; validation evidence is primarily automated browser and Gateway harness coverage.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only repair changes no production behavior; supplied reproduction results and exact-head browser and real-Gateway checks support validation, while the inspected people-menu images do not exercise this patch.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Scheduled UI validation reports failures after intentional behavior changes and can stall an offline recovery scenario.
Reason: The maintainer-authored repair aligns tests with verified production decisions and retains meaningful browser and persistence checks.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it repairs stale test contracts without changing production behavior, and no actionable introduced defect was found. The remaining CI failures also occur on main.

Priority: P3
Reviewed head: c386751b5593de3ce5935187e0b3dd6588089435

Before merge

None.

Findings

None.

Agent review details

How this fits together

The browser E2E suites exercise Control UI rendering through mock Gateway RPCs and an isolated real Gateway, turning request, reconnect, and persisted-conversation behavior into validation results.

flowchart LR
  Tests[E2E scenarios] --> Browser[Control UI browser]
  Browser --> Workspace[Workspace diff owner]
  Workspace --> Mock[Mock Gateway RPC]
  Browser --> Recovery[Placement recovery]
  Browser --> Gateway[Isolated real Gateway]
  Gateway --> Automation[Automation state and history]
Loading

Technical review

Best possible solution:

Retain these focused test repairs and handle the independently evidenced main CI failures through the existing landing policy.

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

The scheduled main run records the obsolete Review loading assertion failing, and source confirms the intentional summary/full split; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The patch is the smallest complete repair: update existing expectations and use the fixture's existing readiness option while preserving patch rendering, reconnect delivery, and persisted chat-result checks.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 042216e86b4c.

Provenance checked

  • Environment and Review request expectations changes intended behavior with a stated reason (701c7fe: The earlier consolidation retained Environment/Review shared-demand and error-retention coverage; the later merged fix: avoid loading patches for environment change totals #189571 deliberately separated summary and full request shapes.)
  • Offline placement recovery navigation keeps the original intent (4d5bafa: The consolidated fixture preserves recovery and queue-delivery boundaries; opting out of automatic roster waiting allows its intentional offline reload to reach the existing reconnect step.)
  • Automation result after reload changes intended behavior with a stated reason (721cdad: The original test verified persisted meaningful results; fix(control-ui): show only name and schedule in automation rows #189538 later moved row presentation to name and schedule, with results remaining in chat and history.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit fa0bde1 adds ui/src/e2e/chat-details-changes.e2e.test.ts:20 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fa0bde1229af; files: ui/src/e2e/chat-details-changes.e2e.test.ts)

PR surface

Tests +22. Total +22 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 35 13 +22
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 35 13 +22

Labels

Label changes:

  • add P3: This repairs test expectations and fixture readiness without changing shipped runtime behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This repairs test expectations and fixture readiness without changing shipped runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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.

Reviewed October 31, 2026, 4:02 PM ET / 20:02 UTC.

@steipete steipete changed the title fix(test): align UI loading and recovery contracts fix(test): unblock offline reload and retain automation row contract Oct 31, 2026
@steipete
steipete enabled auto-merge (squash) October 31, 2026 21:05
@steipete
steipete merged commit 01ac91c into main Oct 31, 2026
89 of 91 checks passed
@steipete
steipete deleted the solid2/hf-main-ui-boundaries-1031 branch October 31, 2026 21:08
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
…penclaw#189696)

* test(ui): align disk badges and Review loading checks

Update the disk-pressure scenario for healthy worker badges restored in openclaw#189526. Keep Environment summary reads separate from the deferred Review patch request introduced in openclaw#189571, and assert the rendered patch after opening its file.

* test(ui): keep Review request assertions type-safe

* fix(test): allow offline placement recovery reload

* fix(test): retain automation row contract after reload
tideclaw-bot pushed a commit that referenced this pull request Nov 3, 2026
…189696)

* test(ui): align disk badges and Review loading checks

Update the disk-pressure scenario for healthy worker badges restored in #189526. Keep Environment summary reads separate from the deferred Review patch request introduced in #189571, and assert the rendered patch after opening its file.

* test(ui): keep Review request assertions type-safe

* fix(test): allow offline placement recovery reload

* fix(test): retain automation row contract after reload

(cherry picked from commit 01ac91c)
Co-authored-by: RomneyDa <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 3, 2026
The release backport of #189696 (613a528) carried a row-contract
hunk that only holds after main's c9a75b2, which removes results
from automation rows. That change is not on release/2026.11.5, so the
test asserted the row both contains the visible result (before reload)
and omits it (after reload) and could never pass.

Restore the release's shipped contract after reload: the row still shows
the automation name and schedule, and it still shows the visible result.
Release-branch only; main keeps its own contract.
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 ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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