Repository navigation
fix: keep scheduled Processes polls out of the Control UI config-change test - #208205
Conversation
Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: bc24a6c1-25c4-4812-a0e7-1894bbd0daaf
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. |
Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 3c1d30d9-8521-4f29-8f22-a3a132bb4c3c
|
Codex review: passed. What this changesThis PR waits for a scheduled Processes poll before measuring Gateway reads caused by unrelated config changes. Example: A scheduled Processes poll becomes due two seconds into the five-second config-change measurement.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR provides a focused test-timing repair that preserves the existing assertions; no actionable defects were found, and current-head CI remains pending. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe browser E2E test drives the Control UI with a virtual clock and synthetic Gateway, then compares captured request counts across config events and reconnects. flowchart LR
A[Virtual clock] --> B[Control UI Processes observer]
B --> C[Synthetic Gateway]
D[Config change events] --> B
C --> E[Captured requests]
E --> F[Request count assertions]
Technical reviewBest possible solution: Keep the poll synchronization in the existing test and retain its complete request-count assertions. Do we have a high-confidence way to reproduce the issue? Source shows that a normal 60-second Processes refresh can enter the five-second counting window; the body reports a controlled reproduction, but this read-only review ran no tests. Is this the best way to solve the issue? Synchronizing the existing virtual clock with an observed poll is a minimal repair that preserves detection of config-triggered extra reads without changing production behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 25bac1aecb1d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +4. Total +4 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReviewed November 30, 2026, 12:43 AM ET / 05:43 UTC (Revision 4). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Use the header's known machine placement and shared session participants to present Details before background discovery finishes. Keep the existing desktop rule for empty sessions and the discovery rules for a possible self-only chat. Notify the parent without registering its setter's return value as a Solid cleanup. Let compact tool frames use the activity gap and keep their metadata alongside the restored operation. Exercise populated panels and real publication events in the browser fixtures. Distinguish an Environment summary from a full Review patch and count duplicate requests within each checkout or run. Require all three row-scoped readers to start after the initial chat.send. Includes repairs from #208172, #208179, #208182 and #208205. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: c0e2dc7b-db8d-4f6f-991c-d9e5021f71d3 OpenClaw-Publication: 48605718-55f9-4d15-9a0f-9f1e0f3e381c OpenClaw-Publication: 3c1d30d9-8521-4f29-8f22-a3a132bb4c3c
Use the header's known machine placement and shared session participants to present Details before background discovery finishes. Keep the existing desktop rule for empty sessions and the discovery rules for a possible self-only chat. Notify the parent without registering its setter's return value as a Solid cleanup. Let compact tool frames use the activity gap and keep their metadata alongside the restored operation. Exercise populated panels and real publication events in the browser fixtures. Distinguish an Environment summary from a full Review patch and count duplicate requests within each checkout or run. Require all three row-scoped readers to start after the initial chat.send. Includes repairs from #208172, #208179, #208182 and #208205. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: c0e2dc7b-db8d-4f6f-991c-d9e5021f71d3 OpenClaw-Publication: 48605718-55f9-4d15-9a0f-9f1e0f3e381c OpenClaw-Publication: 3c1d30d9-8521-4f29-8f22-a3a132bb4c3c
Use the header's known machine placement and shared session participants to present Details before background discovery finishes. Keep the existing desktop rule for empty sessions and the discovery rules for a possible self-only chat. Notify the parent without registering its setter's return value as a Solid cleanup. Let compact tool frames use the activity gap and keep their metadata alongside the restored operation. Exercise populated panels and real publication events in the browser fixtures. Distinguish an Environment summary from a full Review patch and count duplicate requests within each checkout or run. Require all three row-scoped readers to start after the initial chat.send. Includes repairs from #208172, #208179, #208182 and #208205. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: c0e2dc7b-db8d-4f6f-991c-d9e5021f71d3 OpenClaw-Publication: 48605718-55f9-4d15-9a0f-9f1e0f3e381c OpenClaw-Publication: 3c1d30d9-8521-4f29-8f22-a3a132bb4c3c
Use the header's known machine placement and shared session participants to present Details before background discovery finishes. Keep the existing desktop rule for empty sessions and the discovery rules for a possible self-only chat. Notify the parent without registering its setter's return value as a Solid cleanup. Let compact tool frames use the activity gap and keep their metadata alongside the restored operation. Exercise populated panels and real publication events in the browser fixtures. Distinguish an Environment summary from a full Review patch and count duplicate requests within each checkout or run. Require all three row-scoped readers to start after the initial chat.send. Includes repairs from #208172, #208179, #208182 and #208205. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: c0e2dc7b-db8d-4f6f-991c-d9e5021f71d3 OpenClaw-Publication: 48605718-55f9-4d15-9a0f-9f1e0f3e381c OpenClaw-Publication: 3c1d30d9-8521-4f29-8f22-a3a132bb4c3c
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
* commit 'c5c1dc278a6f789d739d70afe192c4d1e37058f5': fix(ci): include provider rejection text in PR tooling (#208891) feat: let plugins bring their own sidebar icon (#208885) docs: clarify node pairing and credentials on PostgreSQL gateways (#208850) fix(ui): show a confirmed subagent stop once in chat (#208533) fix(ui): keep collapsed work close to the reply in long chats (#207843) fix(update): finish failed recovery startup records (#208794) chore(ci): inventory media worker lifecycles (#208888) fix: use the same clock icon for Automations (#208539) improve(ci): reduce compiler round trips in database checks (#208878) fix(ci): preserve complete adaptive test observations (#208874) test(gateway): isolate usage context database fixtures (#208304) fix: avoid false worker cleanup failures (#208861) fix: let Git upgrade acceptance fetch its missing baseline (#208746) fix: isolate scheduled Processes reads in the Control UI config-change test (#208205) fix: make plugin hash worker tests independent of runner memory (#208860) fix(update): preserve serving state during candidate plugin maintenance (#208776) test(ui): preserve exact session keys in older chat links (#208873) docs(cli): say what bounds a yielded agent turn's subagent wait without --timeout (#208858)
* fix: restore managed worktrees from bare primary repositories Managed worktrees created from a linked checkout record its primary repository. Resolve that registration during inspection, removal, and snapshot restore while keeping new checkout creation strict. * Merge verified upstream CI repairs into managed worktree recovery * commit 'c5c1dc278a6f789d739d70afe192c4d1e37058f5': (64 commits) fix(ci): include provider rejection text in PR tooling (#208891) feat: let plugins bring their own sidebar icon (#208885) docs: clarify node pairing and credentials on PostgreSQL gateways (#208850) fix(ui): show a confirmed subagent stop once in chat (#208533) fix(ui): keep collapsed work close to the reply in long chats (#207843) fix(update): finish failed recovery startup records (#208794) chore(ci): inventory media worker lifecycles (#208888) fix: use the same clock icon for Automations (#208539) improve(ci): reduce compiler round trips in database checks (#208878) fix(ci): preserve complete adaptive test observations (#208874) test(gateway): isolate usage context database fixtures (#208304) fix: avoid false worker cleanup failures (#208861) fix: let Git upgrade acceptance fetch its missing baseline (#208746) fix: isolate scheduled Processes reads in the Control UI config-change test (#208205) fix: make plugin hash worker tests independent of runner memory (#208860) fix(update): preserve serving state during candidate plugin maintenance (#208776) test(ui): preserve exact session keys in older chat links (#208873) docs(cli): say what bounds a yielded agent turn's subagent wait without --timeout (#208858) test(ui): keep real exports in the channel settings distribution mock (#208855) test(normalization): preserve inline code in quoted previews (#208857) ... Co-authored-by: Vincent Koc <[email protected]>
Related: #208116, #208444
What Problem This Solves
A one-minute Processes poll can fall inside the browser test’s five-second sequence of unrelated config changes. The test then reports an extra Gateway read even when the config changes caused none.
User Impact
This is a test-only fix. The Control UI keeps its existing polling behavior. An unrelated config change that actually triggers an extra read still fails the test.
Why This Change Was Made
The test advances the virtual clock to the next scheduled poll and waits for its Gateway request before recording the counts. It compares all six method counts after the five config events. The two startup automation reads, ten idle minutes, and reconnect assertions retain their existing budgets.
Evidence
Bundled Chromium passed all 19 cases at
8e95c9c28b61on a disposable AWS box. With the scheduled poll due two seconds into the config-change window, main counted one Processes read and failed. The same timing on this head counted zero and passed. Deliberately adding one Processes request per config event produced five extra reads and failed the assertion. The tests used a synthetic Gateway. Main, final head, and negative controlMain contains the Review, Files, and retained-pane request checks from #208444. The delta against main is four added lines in the idle identity test. Final-head CI
Contributor: @daniel-lxs
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by