Skip to content

refactor(meetings): consolidate runtime facades - #115819

Merged
steipete merged 2 commits into
mainfrom
refactor/loc-meeting-runtime
Jul 29, 2026
Merged

steipete merged 2 commits into
mainfrom
refactor/loc-meeting-runtime

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Teams and Zoom meeting plugins still carried parallel runtime facade and setup implementations after #115707 consolidated their plugin shells. The duplicated lifecycle code made admission, session reuse, browser recovery, realtime bridge recovery, transcript capture, and setup checks easy to drift.

Why This Change Was Made

This moves the shared lifecycle into createMeetingRuntimeFacade and the shared prerequisite checks into createMeetingRuntimeSetup, both exposed through the existing openclaw/plugin-sdk/meeting-runtime facade. Teams now supplies only transport operations and platform wording. Zoom keeps its behavioral differences as named hooks, including stateful admission refresh, normalized join requests, credential-aware stale-session replacement, terminal status cleanup, browser-recovery state, and closed-bridge recovery.

The extraction preserves the existing owner boundary: MeetingSessionRuntime still owns canonical session lifecycle, the platform adapters still own vendor URL/browser contracts, and the plugin modules still own vendor-specific behavior and messages.

User Impact

No intended behavior change. Teams and Zoom meeting bots retain their existing join, admission, session reuse, status, transcript, speech, browser recovery, and setup behavior with one shared runtime facade. Google Meet remains untouched.

Evidence

  • LOC: production +1242/-1492 (net -250); tests +4/-10 (net -6).
  • node scripts/run-vitest.mjs extensions/teams-meetings extensions/zoom-meetings src/meeting-bot extensions/google-meet — 64 files passed, 659 tests passed.
  • node scripts/check-changed.mjs -- <14 changed files> — formatting, SDK API baseline, plugin boundaries, dependency pins, dead exports, core/core-test/extension/extension-test typechecks passed during the hosted runs; findings from intermediate runs (stale exports, declaration shape, max-lines split, and contextual typing) were fixed before push. Exact-head PR CI remains the authoritative broad gate.
  • $AUTOREVIEW --mode uncommitted --stream-engine-output — accepted findings for Zoom-only status ownership and concrete probe result types were fixed; the repeated stale-tab finding was rejected because extensions/zoom-meetings/src/runtime.ts:112 explicitly clears session.chrome.browserTab in the missing branch.
  • Shared facade: src/meeting-bot/runtime-facade.ts:33; shared setup: src/meeting-bot/runtime-setup.ts:33.
  • Thin platform entry points: extensions/teams-meetings/src/runtime.ts:15, extensions/zoom-meetings/src/runtime.ts:16.
  • Zoom behavior hooks: extensions/zoom-meetings/src/runtime.ts:47 and extensions/zoom-meetings/src/runtime.ts:61.

@openclaw-barnacle openclaw-barnacle Bot added plugin: zoom Zoom plugin plugin: teams-meetings Teams Meetings plugin size: XL maintainer Maintainer-authored PR labels Jul 29, 2026
@steipete
steipete marked this pull request as ready for review July 29, 2026 09:38
@steipete
steipete force-pushed the refactor/loc-meeting-runtime branch from 2646404 to 04ddd4f Compare July 29, 2026 09:50
@steipete
steipete merged commit 9721ca1 into main Jul 29, 2026
183 of 185 checks passed
@steipete
steipete deleted the refactor/loc-meeting-runtime branch July 29, 2026 10:13
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

pull Bot pushed a commit to yann0001/openclaw that referenced this pull request Jul 29, 2026
* origin/main:
  fix(codex): restore connected apps for token-authenticated runs (openclaw#115075)
  fix(codex): classify hosted search timeouts (openclaw#115837)
  fix(msteams): keep attachment replies in channel threads (openclaw#94348)
  fix(telegram): linkPreview:false is ignored on streamed replies (openclaw#114125)
  fix(protocol): make Swift model checks non-mutating (openclaw#115793)
  fix(searxng): avoid duplicating search endpoint (openclaw#113661)
  fix(agents): preserve tool-result middleware identity (openclaw#115821)
  refactor(meetings): consolidate runtime facades (openclaw#115819)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
* refactor(meetings): consolidate runtime facades

* fix(meetings): keep facade contracts acyclic
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
* origin/main:
  fix(codex): restore connected apps for token-authenticated runs (openclaw#115075)
  fix(codex): classify hosted search timeouts (openclaw#115837)
  fix(msteams): keep attachment replies in channel threads (openclaw#94348)
  fix(telegram): linkPreview:false is ignored on streamed replies (openclaw#114125)
  fix(protocol): make Swift model checks non-mutating (openclaw#115793)
  fix(searxng): avoid duplicating search endpoint (openclaw#113661)
  fix(agents): preserve tool-result middleware identity (openclaw#115821)
  refactor(meetings): consolidate runtime facades (openclaw#115819)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR plugin: teams-meetings Teams Meetings plugin plugin: zoom Zoom plugin size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant