Repository navigation
feat(slack-huddles): join Slack huddles as a signed-in Slack user - #159879
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 real behavior proof before merge. Reviewed September 28, 2026, 7:50 PM ET / 23:50 UTC (Revision 14). ClawSweeper reviewWhat this changesAdds an opt-in Slack huddles plugin that uses a signed-in Chrome user to join active huddles through the shared meeting runtime, with audio, captions, CLI commands, documentation, and host compatibility metadata. Merge readiness⛔ Blocked before merge - 4 items remain Keep this PR open. Current main has no Slack huddles integration, and the previous host-version finding is addressed. The remaining merge blocker is final-effect authority proof for a signed-in Slack account. Priority: P2 Review scores
Verification
How this fits togetherThe plugin takes a huddle link or channel identifier and controls a signed-in Slack tab through OpenClaw's shared meeting runtime. Browser observations and audio then feed agent voice behavior and transcripts. flowchart LR
A[Huddle link or channel] --> B[Slack huddles plugin]
C[Signed-in Chrome tab] --> B
B --> D[Live huddle ownership check]
D --> E[Join and leave controls]
D --> F[Shared audio routing]
D --> G[Captions and transcripts]
Before merge
Findings
Agent review detailsSecurityNeeds attention: No definite security defect was established, but the signed-in huddle authority boundary lacks final-effect proof. PR surfaceSource +1304, Tests +2107, Docs +280, Config +57, Generated 0, Other +42. Total +3790 across 53 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the plugin opt-in and gated to a hook-bearing host release, with redacted final-effect evidence for an owned huddle and the nearest foreign or reassigned huddle before merging. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a new capability. Synthetic tests cover the generated scripts, while the PR body reports no signed-in Slack run. Is this the best way to solve the issue? Unclear: the shared meeting runtime and version gate are coherent owners, but safe behavior at Slack's live browser boundary remains unproven. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 632b150d462f. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (13 earlier review cycles; latest 8 shown)
|
0145909 to
a2f8d4e
Compare
…ntime Slack exposes no app or bot API for joining huddles or reading their audio, so the new slack-huddles plugin drives the Slack web client in the OpenClaw Chrome profile, signed in as a dedicated Slack user, on the shared meeting runtime used by Zoom, Teams, and Google Meet. It joins active huddles only (never starts one), captures remote audio in-page, and talks back through the virtual microphone in agent/bidi modes, with transcribe mode reading Slack's live captions. Joins accept a Copy huddle link, a channel id, or the Slack channel's chat_id (channel:C… or team:T…:channel:C…). Slack's client URL names the viewed channel, not the huddle behind the global toolbar, so call ownership comes from Slack's own channel-header in-huddle state or this session's live join record. The adapter joins muted until Slack reports the virtual microphone as its input, never clicks Join while another huddle is live, and never ends a huddle for everyone. DOM hooks come from Slack's current production web client. The plugin is disabled by default because it needs a signed-in dedicated Slack user.
Adds slack-huddles to the official external plugin catalog, labeler, inventory generator, and package/build inventories. Meeting catalog cases move into their own test file to keep the catalog test under the line cap. Config surface: the plugin budget in config-baseline.counts.json rises 4350 -> 4407. The new plugin reuses the shared meeting config schema (same shape as zoom-meetings and teams-meetings); it adds no new config concepts.
New plugin page covering the dedicated Slack user, install/enable, configuration, accepted join inputs, manual actions, and limits; adds Slack huddles to the meeting-plugins overview, the Slack channel page, and the transcripts CLI provider list, and regenerates the plugin inventory and reference pages.
Slack keeps a huddle running while the client shows other channels and may reuse its global toolbar across huddles, so a URL naming the requested channel does not prove the call belongs to it. The page identity now reports a foreign identity when the viewed channel's header shows this device outside that channel's huddle while a call is live (except while this session's own Join settles). Status, the shared caption observer, the transcript reader, and leave consume that identity, and audio capture drops its URL-only fallback, so another huddle's audio and captions are never attributed to the session. Addresses ClawSweeper P1s on #159879 (audio forwarding and caption collection after a foreign-huddle switch).
… header Recorded toolbars, admission markers, and view-preservation can outlive a huddle switch (Slack may reuse its global toolbar), so they no longer establish ownership. Membership now comes only from Slack's own in-this-huddle state on the requested channel's header; views without it fail closed for status, audio, captions, and Leave, and Leave only reports departure when Slack proves it. The join marker survives only as a 30-second settle window that suppresses the conflict warning after this session's own Join click and never unlocks media.
While a call is live, the page identity now matches the requested huddle only with Slack's membership header for that channel or during this session's own settling Join, so a missing header freezes caption collection instead of attributing another huddle's captions. Leave reports departure only when the channel header shows the account out of the huddle; a toolbar that briefly unmounts no longer counts as leaving.
…sitions Active caption collection now always requires Slack's membership header, even when every call control disappears, and Leave no longer treats a header that has not caught up with this session's settling Join as proof of departure.
…lick The status script awaits permission queries and UI settling between its ownership decision and its clicks. Each microphone, device, camera, and Join click now rechecks authority immediately beforehand (the in-call membership header, or the same preview with no other call live) and stops touching controls once it is lost. Also guards the test helper's optional audio-capture hook for the test typecheck. Addresses the third ClawSweeper P1 on #159879 (revalidate before changing microphone controls).
The pre-click authority check now also stops when a switch or device prompt appears during an awaited step, and reports that prompt as the manual action. Huddle title and participant count come from global huddle UI, so status reports them only for the verified huddle.
…orkspace A reloaded channel-only session's first status pass wrote a fresh page marker, which let the next poll bind whichever workspace was showing. The marker now records whether it was created before any live call (pre-join, admission, or this session's own Join); only such a marker may bind, so repeated polls after a reload keep failing closed while the normal preview, Join, and in-call flow still binds.
Pending sink restores now live in a shared in-flight set that each restore leaves only once it settles, and every routing pass awaits a snapshot of that set, so overlapping status passes all wait for the same restore instead of the first one draining the queue. The opt-in ownership prelude moves into status-call-ownership-source.ts, keeping the status tail under its line cap; Zoom and Teams scripts stay byte-identical.
…uddles-2ca280 # Conflicts: # docs/.generated/config-baseline.counts.json # docs/.generated/config-baseline.sha256
#160308 removed src/agents/worktrees/service.run-end-cleanup.test.ts, but the managed-worktrees-workboard-lifecycle scenario still listed it in codeRefs, so extensions/qa-lab/src/scenario-catalog.test.ts failed deterministically on main and on every PR touching that shard. The remaining refs (service.ts, the Workboard dispatcher, and the e2e product proof) still cover the scenario.
…uddles-2ca280 # Conflicts: # qa/scenarios/runtime/managed-worktrees-workboard-lifecycle.yaml
Replay PR #159879's exact 53 changed paths across core, a new plugin, root manifests, lockfile, and labeler inputs. Assert the complete non-dist Node plan stays within 130 rows and retains core, plugin, and boundary coverage with unique job names. This uses the real current inventory because isolated target-policy fixtures did not cover the cross-family preflight overflow. The changed integration file passed all 8 cases in 168.05s on Linux with one worker; the new case accounted for 19.348s. Production planner and packer behavior is unchanged. Validation: the complete 870-file tooling inventory passed on Linux (28,053 passed cases, 475 native skips), along with full test-types, check-changed, and boundary lint. P2 review found no actionable issues.
…uddles-2ca280 # Conflicts: # docs/.generated/config-baseline.sha256
…/claw-slack-huddles-2ca280
…/claw-slack-huddles-2ca280
The plugin passes liveOwnershipSource and afterAudioRoutingSource to the shared meeting status helper, which only honors them from this PR on. Released hosts silently ignore unknown options, so an npm install onto 2026.9.6 or 2026.9.7 would drop the after-await ownership rechecks. Raise minHostVersion and compat.pluginApi to >=2026.9.8 (release/2026.9.7 was cut without the hook) in the package and the official catalog, and document the requirement. Bundled-origin discovery skips the range check, so the in-repo plugin still loads on the co-versioned checkout.
|
Admin-landed as c432db8 at head Inherited from main. These fail on the frozen release-harness closure from ac59199:
Timing flakes. ClawSweeper. Revision 14 on this head has no code findings; the host-floor P1 is fixed. Its remaining ask is live Slack proof, which this PR's body records as a known gap for this opt-in, disabled-by-default plugin. |
…work #159879 added the slack-huddles extension without an assets directory, so the bundled plugin icon contract test fails on main for every PR whose plan includes it. Reuse the Slack plugin's 512px icon and activity artwork: a huddle is a Slack feature, and the plugin runs as the signed-in Slack user.
342 upstream commits, including the Slack huddles plugin (openclaw#159879), scoped Slack plugin reviewers (openclaw#159525) and two Feishu webhook changes (openclaw#160455, openclaw#160846) in files this branch does not touch. No file outside the generated set changed on both sides. Two conflicts, both generated: docs/.generated/config-baseline.counts.json and docs/.generated/config-baseline.sha256. openclaw#159879 takes plugin from 4374 to 4431 and openclaw#159525 takes core from 2464 to 2475. This branch keeps channel at 3788. Both files came from upstream and were regenerated. build:docker ran in a separate detached checkout of this commit outside the nested node_modules install. Regenerating there changed those two files and nothing else, giving the predicted counts, the upstream core and plugin hashes, this branch's channel hash and a new combined hash. The three generated-file checks pass there. Upstream deleted 102 test files in this range. None of them were added or changed by this branch. Feishu: 107 files and 1859 tests in the extension project, 17 files and 312 tests in the database-workers project. The forwarder test and the routing guards pass, 430 tests after upstream pruned test-projects.test.ts in this range. tsgo:core, tsgo:extensions, tsgo:extensions:test, tsgo:test:root, the line-cap, max-lines and assertion-safety ratchets against upstream/main, oxlint and oxfmt on the 43 changed code files all pass.
Replay PR openclaw#159879's exact 53 changed paths across core, a new plugin, root manifests, lockfile, and labeler inputs. Assert the complete non-dist Node plan stays within 130 rows and retains core, plugin, and boundary coverage with unique job names. This uses the real current inventory because isolated target-policy fixtures did not cover the cross-family preflight overflow. The changed integration file passed all 8 cases in 168.05s on Linux with one worker; the new case accounted for 19.348s. Production planner and packer behavior is unchanged. Validation: the complete 870-file tooling inventory passed on Linux (28,053 passed cases, 475 native skips), along with full test-types, check-changed, and boundary lint. P2 review found no actionable issues.
…enclaw#159879) Add an opt-in slack-huddles plugin that joins active Slack huddles as a dedicated signed-in Slack user. Slack has no bot or app huddle API, so the plugin drives the Slack web client in the OpenClaw Chrome profile on the shared meeting runtime, with in-page audio capture and a virtual microphone for agent, bidi, and transcribe modes, mirroring zoom-meetings and teams-meetings. Membership is proven only by Slack's in-huddle channel header on the requested channel. Sessions are workspace-scoped, joins are always muted, talk-back unmutes only after Slack reports the virtual input, and every click rechecks live authority. The shared meeting status source gains optional liveOwnershipSource and afterAudioRoutingSource hooks. They recheck ownership after awaited device and sink work, and roll back only this pass's effects. Absent hooks emit no code, so the generated Zoom and Teams scripts are byte-identical. The plugin is disabled by default and requires OpenClaw 2026.9.8 or newer, the first release that can carry the ownership hook. Release note: Add an opt-in Slack huddles plugin that joins active huddles as a dedicated signed-in Slack user through the shared meeting runtime. Requires OpenClaw 2026.9.8 or newer.
…work openclaw#159879 added the slack-huddles extension without an assets directory, so the bundled plugin icon contract test fails on main for every PR whose plan includes it. Reuse the Slack plugin's 512px icon and activity artwork: a huddle is a Slack feature, and the plugin runs as the signed-in Slack user.
What Problem This Solves
Slack has no API for bots to join huddles or read their audio, so an OpenClaw agent needs a signed-in browser participant to join an active huddle.
User Impact
Users can opt into the new
slack-huddlesplugin and join active huddles through a dedicated Slack user in the OpenClaw Chrome profile. The plugin is disabled by default and supports agent talk-back, realtime voice, and caption transcription through the shared meeting runtime.A dedicated Slack user must already be signed into that Chrome profile and belong to the conversation. The plugin only joins active huddles; it never starts one or ends a huddle for everyone. The setup docs explicitly say to keep the OpenClaw Slack tab on the huddle's channel and explain workspace-qualified session reuse. No SDK or Slack messaging channel changes are included. The shared meeting runtime has the approved optional ownership seam described below.
Why This Change Was Made
The browser adapter uses Slack's channel-header in-huddle state to establish ownership, because a huddle toolbar can remain visible while the user views another channel. It always joins muted, verifies the virtual microphone before enabling talk-back, leaves through Slack's participant Leave Huddle control, and delegates confirmation, device conflicts, and admission prompts to the user.
The plugin reuses the shared meeting schema. After merging main at
4576501026a834d9a9d7445624648e45d56565b4, the plugin config budget is 4410 versus main's 4353 (+57). Core remains 2464 and channel remains 3786; their generated hashes match main. Discovery, CLI metadata, the external plugin catalog, packaging exclusions, and setup documentation register the opt-in plugin.Release-note context: Add an opt-in Slack huddles plugin that joins active huddles as a dedicated signed-in Slack user through the shared meeting runtime. It requires OpenClaw 2026.9.8 or newer.
Evidence
Head
c6f5610b406cmerges main at43ca10703b6d(which includes the compact-plan cap fix2e7f4f8fcd1f). On that merged tree, every focused suite passed again, run serially on the shared Mac throughnode scripts/run-vitest.mjs <file>:extensions/slack-huddles/src/transports/slack-huddles-platform-adapter.test.tsextensions/slack-huddles/src/transports/slack-huddles-platform-adapter.audio.test.tsextensions/slack-huddles/src/transports/slack-huddles-urls.test.tssrc/meeting-bot/status-call-source.test.tssrc/plugins/official-external-meeting-catalog.test.tssrc/plugins/official-external-plugin-catalog.test.ts(package ↔ catalog parity)Measured cost from the earlier
pnpm test <file> --maxWorkers=1runs: adapter 61.07 s, audio 19.92 s, URLs 2.68 s, shared status source 3.91 s, meeting catalog 1.46 s (shard wall times on a loaded host, dominated by shared compilation).The plugin suites execute generated page scripts in a synthetic DOM fixture through the registered adapter. Their wall times include shared-runtime compilation and cache work on a loaded host; this boundary protects ownership, muted joins, departure, captions, and channel identity without a browser or real timers.
All requested lint and type checks passed with exit 0:
node scripts/run-oxlint.mjs src/meeting-bot extensions/slack-huddles,pnpm tsgo:core,node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.other.json --incremental,pnpm tsgo:extensions, andpnpm tsgo:extensions:test. Working-tree and stagedgit diff --checkpassed. The only merge conflicts were the two generated config-baseline files: both were taken from main and regenerated withpnpm config:docs:gen.pnpm plugins:inventory:genpassed. The lockfile merged cleanly and differs from main only by the Slack huddles importer. No source conflict or source edit was needed.The coordinator's Codex autoreview in branch mode against the current merge base on
22b9ea10e6c023e3f2d2fc4488b957268fdea808was scoped-clean at P0–P2 after 34 review rounds. That reviewed Slack/shared-runtime source is unchanged by this merge. The coordinator also verified the plugin-SDK surface check and SHA-256 equality of the generated Zoom and Teams status scripts against main. Earlier validation passed the docs glossary check and formatting.ClawSweeper findings
All four earlier P1 findings are addressed: cross-huddle audio forwarding, caption collection after the account moves to another huddle or membership proof disappears, revalidating authority immediately before microphone clicks, and keeping workspace scope in huddle identity and reuse checks. Team-qualified links preserve their team in the reuse key; bare channel references never match team-scoped sessions. Page identity must match the requested team and fails closed when team proof is missing.
The subsequent P1 about ownership changing during asynchronous device work is addressed by the approved shared-runtime seam: optional
liveOwnershipSourceandafterAudioRoutingSourceinsrc/meeting-bot/status-call-source.ts, with the ownership prelude insrc/meeting-bot/status-call-ownership-source.ts. Ownership is rechecked after media-routing awaits; a lost owner stops the pass and retires or restores only its own media effects. The after-routing hook refreshes Slack state before captions and the status result. Absent options emit no additional code; generated Zoom and Teams status scripts remain byte-identical to main. The P2 session-reuse documentation finding is also corrected.Revision 13 raised one more P1, which is fixed: the package and catalog floors admitted released hosts whose meeting status helper silently ignores the new ownership options, so an npm install onto such a host would lose the after-await rechecks without any error.
extensions/slack-huddles/package.jsonnow declaresminHostVersionandcompat.pluginApi>=2026.9.8, and the official catalog entry matches.release/2026.9.7was cut before this PR, so 2026.9.8 is the first release that can contain the hook. Release tooling only raisescompat.pluginApiand never lowersminHostVersion(scripts/sync-plugin-versions.ts). Bundled-origin discovery skips the range check, so the in-repo plugin still loads on the co-versioned checkout. The docs state the requirement. This also answers the review's decision question: publication waits for the hook-bearing release.Membership is proven only by Slack's
.p-huddle_channel_header_button--in_huddleon the requested channel's view. Views without that proof fail closed for status, audio, captions, Leave, and huddle metadata. Leave reports departure only when Slack proves it. The Join marker is only a 30-second settle window that suppresses the conflict warning after this session's own Join click; it never unlocks media or departure.Every status click rechecks authority immediately beforehand and stops on new prompts. Joining is always muted, including when the preview already shows the virtual input, because the Join transition can switch that input. Talk-back is enabled only after in-call virtual-input verification. Live microphone and camera state is rechecked before actions, and the final post-routing check re-mutes if virtual-input proof disappears.
Channel-only sessions bind to a workspace only through markers created before a live call. The binding survives toolbar rerenders and does not migrate to another workspace. Reloading into an already-live call cannot create a new binding or adopt its controls.
Representative regression coverage includes workspace-qualified reuse and page identity, channel-only binding before awaited work and across reloads, always-muted joins, audio/caption shutdown on membership loss, revalidation before clicks, and shared routing ownership loss during enumeration, direct sink changes, bridge routing, and overlapping sink restores.
Earlier full changed-lanes proof
The full changed-lanes gate passed on Blacksmith Testbox lease
tbx_01m3j5n3c89g15qp47xpwxa2vafor head5c51f62a3cb8312930b2681b90fa02684f2643a5: exit 0, 43m29.414s remote command time, 49m29.03s end to end. Testbox run. The prescribed command was:All typecheck and lint shards passed; no line-cap violations or exceptions were needed. The lease was stopped after validation. Testbox's wrapper result is the command verdict; lease cleanup can mark the linked Actions infrastructure run cancelled. This earlier proof does not substitute for CI on the new head.
The first remote attempt stopped on an untouched core test fixture that failed to forward its session-reader owner. Main fixed it in
0b6f02faae371776d8bfdb5b4f3a7696ee50e34b(#159836); that fix is included. An initial local typecheck used stale@openclaw/fs-safe0.20.0; a frozen-lockfile install reconciled it to main's 0.21.0 and the typecheck passed.Known gap: no live Slack proof yet. It requires a dedicated Slack user signed into the OpenClaw Chrome profile; that account does not exist yet. DOM hooks are taken from Slack's current production web client; the static review and synthetic fixtures do not establish live Slack compatibility. The maintainer accepts this gap for the opt-in, disabled-by-default plugin. No browser automation was run for this landing.
CI on the new head
CI on the previous head
c479d0ff17adpassed 134 jobs. The only failures werechecks-node-changed-channelsand itsopenclaw/ci-gateaggregate:src/channels/message-access/context-builder-callers.test.tsstill expected synology-chat's pre-deslopresolved.rt.channel.inbound.buildContextafter #160639 inlined that helper. This PR touches neither file. Main fixed that inventory inc4845a61b485, so the new head's merge ref includes it. GitHub's enforced checks and reviews remain the merge gates.