Skip to content

fix: meeting browser operations expire early or overrun after clock changes - #155648

Merged
obviyus merged 4 commits into
openclaw:mainfrom
masatohoshino:fix/browser-act-lock-1b418d
Sep 22, 2026
Merged

obviyus merged 4 commits into
openclaw:mainfrom
masatohoshino:fix/browser-act-lock-1b418d

Conversation

@masatohoshino

@masatohoshino masatohoshino commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

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-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 0ed077d 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.

@clawsweeper

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

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 22, 2026
@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 22, 2026, 8:44 AM ET / 12:44 UTC (Revision 3).

ClawSweeper review

What this changes

Use 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
Reviewed head: d96568d3f6dca883d69cdf48e283667c6e79c59b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful consumer regressions and convincing real-browser timing evidence.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Recorded SDK-to-Gateway-to-Chromium results exercise ordinary timing and both clock-step directions through the real browser transport, showing queued completion and bounded timeout after repair. Current production code matches that tested revision; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): Recorded SDK-to-Gateway-to-Chromium results exercise ordinary timing and both clock-step directions through the real browser transport, showing queued completion and bounded timeout after repair. Current production code matches that tested revision; no stored-data contract changes.
Evidence reviewed 8 items Pinned introduced change: Reviewed the merge-base-to-head patch. Production changes consistently replace wall-clock deadline arithmetic in the existing queue and its callers; they add no configuration, persisted state, dependencies, or authorization changes.
Current main still needs the repair: Current main still subtracts Date.now() when admitting and dequeuing browser actions. The five changed production modules are unchanged between the pinned merge base and fetched main, so the reported clock-step mechanism remains present.
Latest release retains wall-clock arithmetic: The v2026.9.5 source also uses Date.now() for queue admission and remaining budgets. The release blob was inspected through GitHub after local historical-blob retrieval failed.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Source +4, Tests +4. Total +8 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 5 33 29 +4
Tests 4 15 11 +4
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 48 40 +8

Review metrics

None.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #155647
Summary: This PR is the explicitly linked implementation candidate for the open clock-budget report.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Repairs a bounded meeting-browser reliability defect triggered by system-clock adjustments.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): Recorded SDK-to-Gateway-to-Chromium results exercise ordinary timing and both clock-step directions through the real browser transport, showing queued completion and bounded timeout after repair. Current production code matches that tested revision; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Recorded SDK-to-Gateway-to-Chromium results exercise ordinary timing and both clock-step directions through the real browser transport, showing queued completion and bounded timeout after repair. Current production code matches that tested revision; no stored-data contract changes.

Evidence

What I checked:

  • Pinned introduced change: Reviewed the merge-base-to-head patch. Production changes consistently replace wall-clock deadline arithmetic in the existing queue and its callers; they add no configuration, persisted state, dependencies, or authorization changes. (src/meeting-bot/browser-act-lock.ts:10, d96568d3f6dc)
  • Current main still needs the repair: Current main still subtracts Date.now() when admitting and dequeuing browser actions. The five changed production modules are unchanged between the pinned merge base and fetched main, so the reported clock-step mechanism remains present. (src/meeting-bot/browser-act-lock.ts:14, 9bf5425f26d2)
  • Latest release retains wall-clock arithmetic: The v2026.9.5 source also uses Date.now() for queue admission and remaining budgets. The release blob was inspected through GitHub after local historical-blob retrieval failed. (src/meeting-bot/browser-act-lock.ts:14, ec9c1a13db89)
  • Real browser boundary proof: The supplied PR body, captured under sourceRevision 0cda23388589f630a6534ec6e0da3843acdfe116d66f504217f9528dccab3cda, records the public meeting-runtime SDK driving authenticated browser.request against managed Chromium. With a 4,000 ms budget, ordinary operations completed; a +60 s driver-clock step no longer prevented the queued action; a −60 s step passed 3,713 ms instead of 63,725 ms and produced the real browser timeout. This proves the shared browser timing path, not vendor-native meeting or audio-device behavior. (src/plugin-sdk/meeting-runtime.ts:53, f6f2232c23be)
  • Proof remains applicable to current head: Since the previously reviewed and browser-tested revision, only the Google Meet caption test's zero-elapsed clock stub changed from Date.now() to performance.now(). Production files are identical. Existing caption, route, scope, timeout-bound, and grace assertions remain intact. (extensions/google-meet/src/transports/chrome.test.ts:505, d96568d3f6dc)
  • Regression coverage and validation: Existing join and recovery cases now inject forward and backward wall-clock changes while checking retry completion and decreasing request budgets. The body reports both regressions failed before repair, 24 focused tests passed, and the adjusted Google Meet suite passed 17 tests. This read-only review inspected the tests and ran whitespace inspection; it did not execute tests or builds. (src/meeting-bot/browser-controller.test.ts:83, d96568d3f6dc)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • obviyus: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; 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 (2 earlier review cycles)
  • reviewed 2026-09-22T10:17:52.296Z sha 1addb05 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-22T11:52:41.333Z sha f6f2232 :: needs changes before merge. :: none

@github-actions

github-actions Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Security-sensitive guard cleared

Current revision: d96568d3f6dca883d69cdf48e283667c6e79c59b

This PR no longer changes files in the maintainer security-review tier.

Separate CODEOWNERS requirements still apply to security policy and enforcement files.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 22, 2026
@openclaw-barnacle openclaw-barnacle Bot added plugin: google-meet and removed gateway Gateway runtime agents Agent runtime and tooling size: L labels Sep 22, 2026
@obviyus

obviyus commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

landpr-approve-unrelated-red
pr: 155648
head: d96568d
run: 35728074487 attempt: 1
failed: checks-node-compact-large-7 job=106747722344 conclusion=failure
check: openclaw/ci-gate

@obviyus
obviyus merged commit 2c7feb0 into openclaw:main Sep 22, 2026
204 of 207 checks passed
@obviyus

obviyus commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

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.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 23, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. plugin: google-meet proof: sufficient ClawSweeper judged the real behavior proof convincing. 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.

Meeting browser operations expire early or overrun after wall-clock changes

2 participants