Skip to content

feat(teams-meetings): join Microsoft Teams meetings via the meeting-bot core - #109964

Merged
steipete merged 2 commits into
mainfrom
refactor/teams-meetings
Jul 17, 2026
Merged

steipete merged 2 commits into
mainfrom
refactor/teams-meetings

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

OpenClaw can join Google Meet calls but not Microsoft Teams meetings. After #109755 extracted the platform-agnostic meeting-bot core, Teams support should be a thin adapter — this PR is that adapter, and the first proof that the MeetingPlatformAdapter seam holds for a second platform.

Why This Change Was Made

New bundled plugin extensions/teams-meetings: OpenClaw joins Teams meetings (work teams.microsoft.com/l/meetup-join/... and consumer teams.live.com/meet/...) as a guest via the Teams web client in Chrome, reusing the shared meeting-bot core end to end — session runtime, browser controller, BlackHole/SoX audio bridge, node relay, realtime agent/bidi engines, setup checks. The Teams adapter plus page scripts total 468 LOC vs Google Meet's 813 for the same contract — the seam works.

Surface: teams_meetings agent tool, teamsmeetings CLI, teamsmeetings.* gateway methods, teamsmeetings.chrome node command, minimal disabled-by-default config. Captions/transcribe mode ships disabled pending live DOM validation. No dial-in or meeting creation in v1. The msteams text channel plugin is untouched.

One small core change (decided during review): the shared tab-recovery seam now carries the tracked target and the originally requested meeting URL, so recovery survives Teams rewriting the tab URL to /v2/...; identity checks use the requested URL, recognizably-wrong meetings are rejected, and the Google Meet call site was updated in the same change (no compat shim).

Three review-hardening rounds (Codex gpt-5.6-sol xhigh) fixed 18 findings before this PR was opened, including: per-agent session authorization for tool calls; camera/microphone control action-vs-state parsing (no join with camera on, no false mute states); verifying BlackHole is the selected input before any auto-unmute (fail-closed to a manual action); participant-visible page text can no longer drive bot state (departure/permission classification uses structural UI signals only); consumer meeting passcodes distinguish reuse identity; explicit rejection of invalid modes (no silent talk-back fallback); remote node setup probes validate platform/BlackHole/SoX and the actual configured executables; per-request timeouts honored.

Known limitation: in-page selectors (data-tid first, text fallback, centralized in one module) are best-effort pending live validation against the real Teams web client — the PR body of record lists the exact flows needing live checks (interstitial, guest name, prejoin toggles, lobby, permissions, in-call/leave, audio routing). Proposed follow-up: Crabbox live-validation run joining a real Teams meeting. Adapter-contract follow-up: permissions() should receive the meeting origin (Teams spans two domains; auto-grant plans are omitted until then).

User Impact

New capability: point an agent at a Teams meeting link and OpenClaw can join as a guest, listen (STT→agent→TTS), or run a realtime voice model, matching the Google Meet feature set minus captions/dial-in/create. Disabled by default; requires the same BlackHole+SoX setup as Google Meet.

Evidence

  • node scripts/run-vitest.mjs extensions/teams-meetings extensions/google-meet src/meeting-bot: 31 files, 364 tests pass (URL identity tables, hostile page-text cases, authorization, label-parsing tables, recovery URL-rewrite case, fake-browser session flows).
  • SDK surface unchanged; deadcode scans 0; extensions tsgo lanes green; targeted lint green; git diff --check clean; docs link check green.
  • Autoreview: three rounds, 18 findings fixed (list above), final round's fixes verified.
  • .github/labeler.yml updated; the plugin: teams-meetings GitHub label needs creation at merge.
  • Not verified: live Teams join (selectors best-effort; explicit live-validation checklist documented in docs page and above).

@steipete
steipete requested a review from a team as a code owner July 17, 2026 12:03
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts plugin: google-meet labels Jul 17, 2026
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Jul 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/teams-meetings/package.json
  • pnpm-lock.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfile, shrinkwrap, or workspace dependency policy changes are present.
  • Treat package-lock.json and npm-shrinkwrap.json diffs as security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of @openclaw/openclaw-secops.

  • Current SHA: 499e23eaf77e7cf246fcb2e7db2adfa9952e2885
  • Trusted actor: @steipete
  • Trusted role: pull request author; openclaw-secops

Security review is still recommended before merge when the dependency graph change is intentional.

@openclaw-barnacle openclaw-barnacle Bot added size: XL maintainer Maintainer-authored PR labels Jul 17, 2026
@steipete steipete self-assigned this Jul 17, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bc1b0f430a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +102 to +105
"providers": {
"type": "object",
"additionalProperties": { "type": "object" }
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Declare provider API keys as secret inputs

When users configure Teams realtime provider overrides with SecretRefs at plugins.entries.teams-meetings.config.realtime.providers.<id>.apiKey, this manifest only exposes providers as arbitrary objects and never declares the matching configContracts.secretInputs path. The plugin config resolver preserves those provider records, but the SecretRef collector only scans manifest secretInputs (src/secrets/runtime-config-collectors-plugins.ts), so Teams-specific API keys will not be resolved/redacted and provider startup can receive unresolved SecretRef objects; add the same realtime.providers.*.apiKey secret contract used by Google Meet.

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. labels Jul 17, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 499e23eaf7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +422 to +425
requestedMeetingUrl: string | undefined;
readOnly?: boolean;
trackedMeetingUrl: string | undefined;
trackedTargetId: string | undefined;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve the public recoverMeetingBrowserTab URL contract

This changes the exported openclaw/plugin-sdk/meeting-runtime helper from the old { url?: ... } parameter to new required requestedMeetingUrl/tracked* fields without a compatibility path. External plugin callers that still pass url either fail to typecheck against the new SDK or, for JS/already-built callers, now run with requestedMeetingUrl undefined and can recover the first arbitrary meeting tab instead of the requested meeting. Keep url as an alias/deprecated field or add a new helper so shipped SDK consumers are not broken.

Useful? React with 👍 / 👎.

import { TEAMS_MEETINGS_NODE_COMMAND } from "./transports/teams-meetings-platform-constants.js";

function commandExists(command: string, timeoutMs: number): boolean {
const result = spawnSync("/bin/sh", ["-lc", 'command -v "$1" >/dev/null 2>&1', "sh", command], {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add Teams node host to process-exec CodeQL coverage

This new node host executes local process checks/commands, but I checked .github/codeql/codeql-process-exec-boundary-critical-security.yml and .github/workflows/codeql.yml: the process-exec profile and PR path trigger include extensions/google-meet/src but not extensions/teams-meetings/src. As a result this new dangerous node-host surface is outside the targeted high-severity process-exec CodeQL scan; add the Teams path to both places so this code and future Teams-only changes are scanned.

Useful? React with 👍 / 👎.

"enabledByDefault": false,
"commandAliases": [{ "name": "teamsmeetings" }],
"activation": {
"onStartup": true,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include Teams in the startup activation baseline

With this manifest declaring activation.onStartup: true, the existing src/plugins/bundled-plugin-metadata.test.ts test iterates every extensions/*/openclaw.plugin.json and compares all startup-enabled IDs to EXPECTED_BUNDLED_STARTUP_PLUGIN_IDS; that baseline in this commit still lacks teams-meetings, so the bundled metadata test will fail. Add the ID to the expected startup list, or make this false if Teams should not load a startup sidecar.

Useful? React with 👍 / 👎.

@steipete
steipete merged commit ee762ad into main Jul 17, 2026
153 of 154 checks passed
@steipete
steipete deleted the refactor/teams-meetings branch July 17, 2026 12:23
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 18, 2026
…ot core (openclaw#109964)

* feat(teams-meetings): join Microsoft Teams meetings via the meeting-bot core

* fix(teams-meetings): satisfy lint and package-boundary contracts
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
…ot core (openclaw#109964)

* feat(teams-meetings): join Microsoft Teams meetings via the meeting-bot core

* fix(teams-meetings): satisfy lint and package-boundary contracts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. P2 Normal backlog priority with limited blast radius. plugin: google-meet rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant