Skip to content

fix: keep scheduled Processes polls out of the Control UI config-change test - #208205

Merged
daniel-lxs merged 8 commits into
mainfrom
openclaw/ui-extra-requests-3409be
Nov 30, 2026
Merged

daniel-lxs merged 8 commits into
mainfrom
openclaw/ui-extra-requests-3409be

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

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 8e95c9c28b61 on 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 control

Main 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

roboclaw-bot and others added 2 commits November 29, 2026 09:40
Worked on by:
- @daniel-lxs

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: bc24a6c1-25c4-4812-a0e7-1894bbd0daaf
@clawsweeper

clawsweeper Bot commented Nov 29, 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.

View the workflow run.

@clawsweeper clawsweeper Bot added the P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. label Nov 29, 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. labels Nov 29, 2026
@clawsweeper clawsweeper Bot added 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. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This 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.

  • Before: The test counts one unrelated Processes read and fails.
  • After: The scheduled poll occurs before the baseline, while config-triggered extra reads still fail the assertion.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch preserves meaningful assertions; validation confidence rests on source inspection and reported synthetic-Gateway browser checks while current-head CI finishes.
Proof confidence 🦐 gold shrimp (3/6) No production behavior changes; reported browser validation uses a synthetic Gateway, and the inspected Memory Import screenshots do not exercise this timing repair.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: A legitimate scheduled Processes read can make the browser regression test falsely report config-triggered traffic.
Reason: The maintainer-authored direction repairs a concrete false failure while preserving the original regression checks.

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: f6ff41281ef49de09744b8d17833de931ff945b8

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Unrelated-config request-count measurement keeps the original intent (6bb430c: Keep conversations warm across browser-profile writes by detecting unrelated model, member, process, session, agent, and identity reads.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 6bb430c adds ui/src/e2e/agent-identity-reconnect.e2e.test.ts:55 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6bb430c30e8d; files: ui/src/e2e/agent-identity-reconnect.e2e.test.ts)
  • RoboClaw: Raw commit 14a9dfe adds ui/src/e2e/agent-identity-reconnect.e2e.test.ts:28 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 14a9dfeba806; files: ui/src/e2e/agent-identity-reconnect.e2e.test.ts)
  • Vyctor H. Brzezowski: Raw commit 43f872f adds ui/src/e2e/agent-identity-reconnect.e2e.test.ts:27 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 43f872f17162; files: ui/src/e2e/agent-identity-reconnect.e2e.test.ts)

PR surface

Tests +4. Total +4 across 1 file. Added test files: 0.

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

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • 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 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.

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 (3 earlier review cycles)
  • reviewed 2026-11-29T10:12:48.295Z sha 458c4ae :: passed. :: none
  • reviewed 2026-11-29T10:50:14.098Z sha c67e0c6 :: passed. :: none
  • reviewed 2026-11-30T05:10:40.277Z sha 8e95c9c :: passed. :: none

Reviewed November 30, 2026, 12:43 AM ET / 05:43 UTC (Revision 4).

@daniel-lxs
daniel-lxs marked this pull request as ready for review November 29, 2026 10:44
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

daniel-lxs added a commit to daniel-lxs/openclaw that referenced this pull request Nov 29, 2026
daniel-lxs added a commit to daniel-lxs/openclaw that referenced this pull request Nov 29, 2026
daniel-lxs added a commit to daniel-lxs/openclaw that referenced this pull request Nov 29, 2026
daniel-lxs added a commit to daniel-lxs/openclaw that referenced this pull request Nov 29, 2026
daniel-lxs added a commit that referenced this pull request Nov 29, 2026
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
daniel-lxs added a commit that referenced this pull request Nov 29, 2026
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
daniel-lxs added a commit that referenced this pull request Nov 29, 2026
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
daniel-lxs added a commit that referenced this pull request Nov 29, 2026
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
@daniel-lxs daniel-lxs changed the title fix: distinguish Details discovery in Control UI request checks fix: keep scheduled Processes polls out of the Control UI config-change test Nov 30, 2026
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@daniel-lxs
daniel-lxs merged commit a864958 into main Nov 30, 2026
72 checks passed
@daniel-lxs
daniel-lxs deleted the openclaw/ui-extra-requests-3409be branch November 30, 2026 05:53
vincentkoc added a commit that referenced this pull request Nov 30, 2026
* 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)
vincentkoc added a commit that referenced this pull request Nov 30, 2026
* 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]>
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 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.

2 participants