Repository navigation
fix: meeting browser operations expire early or overrun after clock changes - #155648
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 22, 2026, 8:44 AM ET / 12:44 UTC (Revision 3). ClawSweeper reviewWhat this changesUse monotonic elapsed time for meeting-browser operation budgets so system-clock changes cannot prematurely expire queued actions or extend requests. Merge readiness✅ Ready for maintainer review The fix remains necessary and has no blocking findings. Recorded browser proof covers the changed timing boundary, and the previous security-review blocker is resolved. Priority: P2 Review scores
Verification
How this fits togetherMeeting plugins use shared browser control to join, recover, leave, collect transcripts, and control audio. A per-tab queue serializes actions and passes the remaining timeout to the browser transport. flowchart TD
A[Meeting plugin request] --> B[Monotonic operation deadline]
B --> C[Per-tab action queue]
C --> D{Time remaining?}
D -->|Yes| E[Browser request with remaining budget]
D -->|No| F[Timeout result]
E --> G[Browser action result]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +4, Tests +4. Total +8 across 9 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep elapsed budgets in the existing queue's monotonic clock domain while preserving configured durations, serialized execution, and epoch timestamps. Do we have a high-confidence way to reproduce the issue? Yes: current-main source makes a queued operation's remaining budget depend on wall-clock steps, and the recorded before/after browser run demonstrates both directions. This review did not execute a reproduction. Is this the best way to solve the issue? Yes: changing the existing deadline owner and every internal producer together repairs the clock mismatch without adding another timer abstraction or public API. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9bf5425f26d2. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Security-sensitive guard clearedCurrent revision: This PR no longer changes files in the maintainer security-review tier. Separate CODEOWNERS requirements still apply to security policy and enforcement files. |
|
landpr-approve-unrelated-red |
|
Merged as 2c7feb0. The shared meeting-browser runtime now keeps elapsed budgets on a monotonic clock. Real SDK → Gateway → Chromium checks with an isolated local page restored queued work after a forward clock step and preserved the bounded request timeout after rollback; the ordinary-clock control remained healthy. The final test-only clock alignment preserves all caption and protocol-envelope assertions. Thanks @masatohoshino for the report and contribution. |
…hanges (openclaw#155648) Closes openclaw#155647 ## What Problem This Solves Fixes meeting-browser elapsed-time budgets changing when the system wall clock moves forward or backward. ## User Impact Queued browser actions no longer lose their opportunity to run after a forward clock adjustment, and a rollback no longer grants extra time to downstream browser requests. Existing configured limits, tab ownership and permissions remain unchanged. ## Why This Change Was Made Use `performance.now()` consistently in the existing browser-operation queue and its deadline-producing callers: join, recovery, leave, transcript collection, audio control and runtime probes. Keep request budgets in whole milliseconds and leave epoch timestamps unchanged. No new timer owner, SDK export, configuration option, persisted state or permission is introduced. ## Evidence The published `openclaw/plugin-sdk/meeting-runtime` entry point drove a built, normal Gateway's authenticated `browser.request` method and an isolated managed Chromium profile against a task-owned local page. The browser transport was real, not a mocked lock callback. Only the SDK driver's `Date.now()` changed; Gateway, CLI, Chromium and host clocks did not. All three cells used the same 4,000 ms operation budget: | Case | Baseline `7ea4e7b` | Candidate `f6f2232` | | --- | --- | --- | | Ordinary clock | Both real browser actions completed | Both completed | | Forward step, +60 s while queued | The first action finished 380 ms after the step, but the queued second action never reached the browser; the caller eventually reported a timeout | Both actions completed; queued completion took 1.373 s | | Backward step, −60 s while queued | The browser request received 63,725 ms and incorrectly succeeded after 5.297 s of page execution | The request received 3,713 ms and returned the real Gateway `UNAVAILABLE` / `browser request timed out` error; no second completion was shown on the page | The complete candidate proof took 50.9 s. Gateway and browser processes settled and their ports closed. CLI startup and return overhead are included in recorded elapsed times: this is not a claim that the entire SDK call finishes within exactly four seconds. The proof covers the shared SDK/browser path, not a Google Meet, Teams, audio-device or other vendor-native meeting session. Two existing join/recovery consumer regressions failed before the repair (one evaluation instead of two; a rollback expanding a 500 ms recovery budget to 60,250 ms). Afterward, all 24 focused tests across five existing files passed in 24.59 s; the two changed cases took 3 ms and 2 ms. The affected `core-test-other` type project, scoped type-aware lint, formatting, whitespace and both ratchets passed. The exact candidate build passed in 286.74 s. Hosted CI also exposed a test-clock mismatch in the Google Meet caption transport's zero-elapsed fixture. That existing fixture now controls `performance.now()` rather than `Date.now()`, preserving all caption-finalization, state, pinned-route, scope, minimum/maximum-budget and exact 5,000 ms grace assertions. Its 17 tests passed in 39.86 s, and the actual extension test-type project passed in 18.74 s. Production code and all recorded runtime inputs remain byte-identical to the `f6f2232` browser proof above; no new browser execution or rebuild is claimed for this test-only correction. Co-authored-by: Ayaan Zaidi <[email protected]>
Closes #155647
What Problem This Solves
Fixes meeting-browser elapsed-time budgets changing when the system wall clock moves forward or backward.
User Impact
Queued browser actions no longer lose their opportunity to run after a forward clock adjustment, and a rollback no longer grants extra time to downstream browser requests. Existing configured limits, tab ownership and permissions remain unchanged.
Why This Change Was Made
Use
performance.now()consistently in the existing browser-operation queue and its deadline-producing callers: join, recovery, leave, transcript collection, audio control and runtime probes. Keep request budgets in whole milliseconds and leave epoch timestamps unchanged. No new timer owner, SDK export, configuration option, persisted state or permission is introduced.Evidence
The published
openclaw/plugin-sdk/meeting-runtimeentry point drove a built, normal Gateway's authenticatedbrowser.requestmethod and an isolated managed Chromium profile against a task-owned local page. The browser transport was real, not a mocked lock callback. Only the SDK driver'sDate.now()changed; Gateway, CLI, Chromium and host clocks did not.All three cells used the same 4,000 ms operation budget:
0ed077df6f2232UNAVAILABLE/browser request timed outerror; no second completion was shown on the pageThe complete candidate proof took 50.9 s. Gateway and browser processes settled and their ports closed. CLI startup and return overhead are included in recorded elapsed times: this is not a claim that the entire SDK call finishes within exactly four seconds. The proof covers the shared SDK/browser path, not a Google Meet, Teams, audio-device or other vendor-native meeting session.
Two existing join/recovery consumer regressions failed before the repair (one evaluation instead of two; a rollback expanding a 500 ms recovery budget to 60,250 ms). Afterward, all 24 focused tests across five existing files passed in 24.59 s; the two changed cases took 3 ms and 2 ms. The affected
core-test-othertype project, scoped type-aware lint, formatting, whitespace and both ratchets passed. The exact candidate build passed in 286.74 s.Hosted CI also exposed a test-clock mismatch in the Google Meet caption transport's zero-elapsed fixture. That existing fixture now controls
performance.now()rather thanDate.now(), preserving all caption-finalization, state, pinned-route, scope, minimum/maximum-budget and exact 5,000 ms grace assertions. Its 17 tests passed in 39.86 s, and the actual extension test-type project passed in 18.74 s. Production code and all recorded runtime inputs remain byte-identical to thef6f2232browser proof above; no new browser execution or rebuild is claimed for this test-only correction.