feat(mascot): restore 'send mascot to meeting' flow via backend bot
Summary
- Re-enable the backend Camoufox bot "Send OpenHuman to a meeting" entry point that was dark-launched in #1894 and then commented out in #2152 alongside the broader "Coming Soon" rollback of the Calls tab.
- Surface the join flow on two screens: the existing Skills banner and a new pill on
/human(the mascot home), so the feature is reachable both from the integrations list and from the place users spend most of their day. - Backend bot joins as a separate Meet participant (its own IP + audio identity via Camoufox), which is the architecture the user explicitly asked for — no more dup-mic / echo against the user's own microphone, the failure mode of the old local-CEF flow.
- Fix two small UX bugs surfaced while smoke-testing the re-enabled banner: the submit button rendered the literal
{label}placeholder, and the 429 capacity-gate copy fell through to the generic red toast instead of the amber capacity-gated treatment because the frontend constant lagged behind the backend rewrite.
Problem
PR #2152 deliberately disabled both the legacy CEF webview join flow (IntelligenceCallsTab) and the new backend bot banner (MeetingBotsCard) as part of the "Coming Soon" rollback. The legacy flow had a real dup-mic bug (it joined as the user, using the user's system mic). The backend bot does not — but it got commented out as collateral damage because both surfaces shared the "meeting bots" umbrella. Net result: no working way to send a mascot to a meeting from the shipped app.
Solution
- Promote the inner
MeetingBotsModalto a named export so multiple surfaces can mount the same backend-bot flow without the banner chrome. - Uncomment the
MeetingBotsCardimport + render inSkills.tsx. - Add a primary "Send OpenHuman to a meeting" pill on
HumanPage, next to the existing speak-replies toggle. Clicking opensMeetingBotsModal; success closes the modal silently, errors render inline. NoonToastwiring needed. - Replace the literal
${t('skills.meetingBots.sendTo')} ${selected.label}concatenation with.replace('{label}', selected.label)so the i18n placeholder gets interpolated instead of double-printed. - Realign
SERVER_OVERLOADED_MESSAGEinmeetCallService.tswith the backend's currentMascot streaming capacity is exhausted. Please try again later.text soisCapacityGateddetection fires on the 429 path.
The destructive cleanup of the dead local-CEF flow (the meet_call / meet_audio / meet_scanner / meet_video Tauri modules + the core meet / meet_agent domains + the IntelligenceCallsTab placeholder) is intentionally deferred to a follow-up PR to keep this diff focused and low-risk.
Submission Checklist
If a section does not apply to this change, mark the item as
N/Awith a one-line reason. Do not delete items.
- [x] Tests added or updated (happy path + at least one failure / edge case) per Testing Strategy
- [x] Diff coverage ≥ 80% — changed lines (Vitest + cargo-llvm-cov merged via
diff-cover) meet the gate enforced by.github/workflows/coverage.yml. Runpnpm test:coverageandpnpm test:rustlocally; PRs below 80% on changed lines will not merge. - [x] N/A: Coverage matrix updated — no new feature rows; flow already lives in the matrix via #1894.
- [x] N/A: All affected feature IDs listed — no matrix IDs in scope for this re-enable.
- [x] No new external network dependencies introduced (mock backend used per Testing Strategy)
- [x] N/A: Manual smoke checklist updated — no release-cut surfaces changed; banner already documented from #1894.
- [x] N/A: Linked issue closed — no linked GitHub issue (paired with backend PR tinyhumansai/backend#827).
Impact
- Desktop only. No mobile/web/CLI impact.
- Depends on backend PR tinyhumansai/backend#827 (scoped
camoufox-js/language-tagsresolution) reaching staging before the modal can actually launch a bot — without that fix the route 500s onimport 'language-tags'ESM error even for paid users. - Backwards-compatible: free users still get the existing 429 capacity-gate UX (now actually triggered, where previously it fell through to a generic red toast).
Related
- Closes:
- Follow-up PR(s)/TODOs:
- Delete the dead local-CEF join flow end-to-end (Calls tab placeholder,
joinMeetCall/closeMeetCallservice,meet_call/meet_audio/meet_scanner/meet_videoTauri modules,openhuman::meet/openhuman::meet_agentcore domains,MascotFrameProducer, relatedjson_rpc_e2etests). Out of scope for PR-A so the re-enable can ship in isolation.
- Delete the dead local-CEF join flow end-to-end (Calls tab placeholder,
AI Authored PR Metadata (required for Codex/Linear PRs)
Linear Issue
- Key: N/A
- URL: N/A
Commit & Branch
- Branch:
feat/mascot-rejoin-meeting - Commit SHA: dd080ed7
Validation Run
- [x]
pnpm --filter openhuman-app format:check - [x]
pnpm typecheck - [x] Focused tests:
MeetingBotsCard.test.tsx(9 passed),HumanPage.test.tsx(7 passed),joinMeetingViaMascotBot.test.ts(6 passed), full Vitest suite (3060 passed / 3 skipped) - [x] N/A: Rust fmt/check — no Rust changes in this PR.
- [x] N/A: Tauri fmt/check — no Tauri shell changes in this PR.
Validation Blocked
command:N/Aerror:N/Aimpact:N/A
Behavior Changes
- Intended behavior change: "Send OpenHuman to a meeting" is once again reachable from Skills and now also from the
/humanmascot page. The submit-button label correctly substitutes the active platform name. The 429 free-user capacity gate renders inline + amber toast instead of a generic red error. - User-visible effect: A blue pill appears next to the speak-replies toggle on
/human. Clicking opens the same modal that the Skills banner opens. Paid users see the bot join as a separate Meet participant; free users see "Mascot streaming capacity is exhausted. Please try again later." surfaced as an amber capacity-gated treatment.
Parity Contract
- Legacy behavior preserved: the existing
MeetingBotsCardbanner shape, copy, modal layout, and capacity-gate handling are unchanged.IntelligenceCallsTabcontinues to render the "Coming Soon" placeholder from #2152. - Guard/fallback/dispatch parity checks: capacity-gate detection now reliably matches the backend's
SERVER_OVERLOADED_MESSAGEinstead of silently falling through (regression introduced when backend copy was rewritten). i18n placeholder interpolation matches the surrounding${selected.label}concatenation pattern used elsewhere in the modal.
[!IMPORTANT]
Review skipped
Draft detected.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID:
52bb9537-8a99-4bc8-aa58-831a5e44373fYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
- [ ] 🔍 Trigger review
Comment @coderabbitai help to get the list of available commands and usage tips.
Superseded by #2503 (Flow A — Tauri CEF + orchestrator + tools + memory + barge-in).
Flow B (this PR — backend Camoufox bot via /mascots/join-meeting) had structural blockers that Flow A avoids:
- Required a staging deploy per iteration cycle.
- Camoufox-js shipped with an ESM language-tags bug (patched but never shipped end-to-end).
- No reuse of the user's locally-connected integrations / memory tree — the bot would have needed its own credential plumbing.
- Y4M MascotFrameProducer ran ~1fps on the backend host (encode bottleneck).
Flow A reuses the user's existing orchestrator + 119 connected Composio integrations + in-memory cache + JS audio barge-in, runs entirely in the desktop app's CEF, and ships without any backend-side changes.