openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Auto-activate meeting agent on Calendar OAuth join — proactive in-call participation without wake-phrase gate

Open Al629176 opened this issue 5 months ago • 2 comments

Summary

When the meeting agent joins via the Recall.ai Calendar OAuth flow (#4365), it should be immediately active and responsive — no wake phrase ("Hey Tiny") required. The Calendar OAuth consent is the user's standing permission for the bot to participate fully; requiring them to additionally say a wake phrase before the agent responds creates unnecessary friction and makes the auto-join flow feel broken.

Problem

Phase 2 of the Meeting Assistant (#3505, PR-6 #3512) gates all in-call agency on a backend-detected wake phrase. The backend only emits bot:in_call_request when it detects the wake phrase mid-call, which means:

  • A bot that joins automatically via Calendar OAuth sits silent until the user says "Hey Tiny" — there is no natural moment to do this, and users who did not manually send the bot won't know they need to
  • The two-step activation (join → wait for wake phrase → respond) makes the Calendar OAuth auto-join feel incomplete: the bot is present but inert
  • The respond_when_addressed flag is sent on join, but the backend only acts on it at wake-phrase detection — there is no path for the agent to respond proactively to the conversation flow

Current socket contract (from #3514):

  • bot:in_call_request is emitted only when the backend detects a wake phrase — no other trigger exists
  • enable_in_call_agency feature flag (default false) gates the whole Phase 2 path in agent_meetings

Solution (optional)

Scope: src/openhuman/agent_meetings/, src/openhuman/socket/, backend contract (#3514 follow-up).

  • New join flag — add agentMode: "passive" | "active" to the bot:join payload. Calendar OAuth-triggered joins send agentMode: "active"; manual URL joins send "passive" (current behaviour, wake-phrase gated). The backend should stream transcript turns to bot:in_call_request continuously (or on natural speaker turns) when agentMode is "active", rather than only on wake-phrase detection.
  • Core side — in agent_meetings/ops.rs, when agentMode is "active", bypass the enable_in_call_agency flag and treat every bot:in_call_request turn as a potential response opportunity. The orchestrator already has the meeting context from #3512; this just removes the wake-phrase gate from the dispatch condition.
  • Calendar OAuth linkage — when a join originates from a Calendar OAuth-connected event (meeting_id traceable to a Recall.ai calendar subscription), default to agentMode: "active". Manual joins via the "Send to meeting" card retain "passive" unless the user explicitly opts in.
  • Settings UI — expose an "Always active in meetings" toggle in Meeting settings (default on when Calendar OAuth is connected, default off for manual joins). Maps to the agentMode sent on join.

Acceptance criteria

  • [ ] Active on Calendar OAuth join — Bot joined via Calendar OAuth auto-join is responsive immediately without any wake phrase.
  • [ ] Passive on manual join — Bot joined via manual URL retains existing wake-phrase behaviour unless the user enables "Always active".
  • [ ] agentMode flag — bot:join payload carries agentMode: "active" | "passive"; backend streams turns accordingly.
  • [ ] Settings toggle — "Always active in meetings" toggle visible in Meeting settings, persists across restarts, respected on next join.
  • [ ] No double-trigger — Active mode does not spam the orchestrator on every word; responses are gated on speaker-turn boundaries or a confidence threshold.
  • [ ] No regression on #4274 — Full join → transcript → thread → summary pipeline unaffected.
  • [ ] i18n — New settings strings in en.ts and all 14 locale files.
  • [ ] Diff coverage ≥ 80% — Implementing PR meets the changed-lines coverage gate.

Related

  • Calendar OAuth integration: #4365 (the auth that enables this flow)
  • Meeting Assistant epic: #3505 (Phase 2 in-call agency)
  • In-call request reception (current wake-phrase gated impl): #3512
  • Backend contract (bot:join, bot:in_call_request): #3514
  • Wake-phrase bug (closed): #4172
  • End-to-end join bug (open): #4274

Al629176 avatar Jul 01 '26 08:07 Al629176

This is already resolved : https://github.com/tinyhumansai/openhuman/issues/3505

YellowSnnowmann avatar Jul 03 '26 07:07 YellowSnnowmann

Closing this as no longer applicable — the subsystem it targets has been removed from the repository.

The Meet family was deleted: src/openhuman/meet/ is now zero files, "meet" no longer appears among the RPC namespaces in src/core/all.rs, and there is no in_call_request anywhere in src/ or app/src. There is no Calendar-OAuth join path left to auto-activate an agent on.

Thank you for filing it — it was a reasonable ask against the architecture at the time, and the removal is what overtook it rather than any judgement about the idea. If meeting support returns, this is worth re-raising against whatever replaces it. Please reopen if I have misread the deletion.

M3gA-Mind avatar Sep 01 '26 14:09 M3gA-Mind