openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

bug: Tiny responds incorrectly in multi-participant calls — speaker identity lost in transcript context

Open Al629176 opened this issue 4 months ago • 2 comments

Summary

Tiny works correctly in 1:1 calls but goes completely silent — no response at all — when 3 or more participants are on the call. Incorrect responses are a secondary concern; the primary failure is a total response dropout. The likely cause is that the wake-phrase detection or bot:in_call_request dispatch logic breaks down when multiple simultaneous audio streams are present, preventing the event from reaching the orchestrator at all.

Problem

The bot:in_call_request backend contract (from #3514) delivers:

{ correlationId, speaker, commandText, recentTranscript: [{ role, content }], timestampMs }

In 1:1 calls this works. With 3+ participants, Tiny stops responding entirely. Several likely failure points:

1. Wake-phrase detection fails with overlapping audio streams The backend (Recall.ai) performs wake-phrase detection on the call audio. With 2+ simultaneous speakers, overlapping audio or speaker diarisation ambiguity may prevent the wake phrase from being cleanly detected, so bot:in_call_request is never emitted — the event never reaches OpenHuman core and the orchestrator is never triggered.

2. Participant count gate or undocumented limit The Recall.ai bot or the in-call agency layer may have an undocumented threshold — e.g. wake-phrase detection disabled above N speakers, or bot:in_call_request suppressed when the active-speaker count exceeds a limit. This would explain the clean cutoff at 3+ participants vs. working fine at 2.

3. Speaker diarisation confusion silently drops the event With multiple speakers, the backend diarises audio to assign speaker labels. If diarisation fails or produces ambiguous output (two speakers talking at once when the wake phrase is said), the backend may drop the bot:in_call_request event entirely rather than emitting it with a best-guess speaker, leaving core with nothing to process.

4. recentTranscript role collision causes silent orchestrator failure With 3+ speakers all collapsed to role: "user" in recentTranscript, the context prompt sent to the orchestrator may violate the expected role-alternation pattern (user/assistant/user/assistant), causing the model to return an empty or malformed response that gets silently swallowed rather than surfaced as an error.

Steps to reproduce

  1. Start a Google Meet call with 3 or more human participants (2+ humans + Tiny).
  2. Have OpenHuman join the call (manual or Calendar OAuth auto-join).
  3. Any participant says the wake phrase: "Hey Tiny, [question]"
  4. Observe: no response — Tiny does not reply, does not post to the meeting thread, no error shown.

With only 1 human participant (1:1): wake phrase triggers correctly and Tiny responds. With exactly 2 human participants: behaviour may be intermittent. With 3+ human participants: Tiny is fully silent.

Diagnosis needed

  • [ ] Confirm whether bot:in_call_request is emitted by the backend at all in 3+ participant calls (check Socket.IO logs / Recall.ai dashboard)
  • [ ] If event is emitted: confirm it reaches src/openhuman/socket/event_handlers.rs and is dispatched to agent_meetings
  • [ ] If event is not emitted: confirm whether this is a Recall.ai diarisation limit or a wake-phrase detection threshold
  • [ ] Check recentTranscript role sequence with 3+ speakers — does it produce an invalid alternation pattern that causes the orchestrator to fail silently?

Solution (optional)

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

1. Fix the silent dropout first — instrument event_handlers.rs and agent_meetings/ops.rs with explicit logging at every stage of the bot:in_call_request path so it's clear whether the event arrives, is dispatched, and whether the orchestrator returns a result.

2. Extend recentTranscript to carry speaker identity — once the dropout is fixed, prevent role-collision errors:

recentTranscript: [{ role: "user" | "assistant", speaker: string | null, content: string }]

Build speaker-attributed context prompts so all speakers appear as named turns rather than undifferentiated "user" entries.

3. Clarification loop scoped to triggering speaker — track triggering_speaker; only accept follow-up bot:in_call_request from the same speaker during the 60s window.

4. Action items carry speaker attribution — post-call actionable extraction (#3510) tags each item with the speaker who committed to it.

Acceptance criteria

  • [ ] Responds in 3+ participant calls — Tiny responds when addressed by wake phrase with 3 or more humans on the call.
  • [ ] Event reaches orchestrator — Instrumentation confirms bot:in_call_request is received, dispatched, and produces an orchestrator response in multi-participant calls.
  • [ ] Silent failure surfaced — If bot:in_call_request is emitted but the response is empty/malformed, an error is logged and a fallback ("I didn't catch that") is posted to the meeting thread rather than silent dropout.
  • [ ] Speaker-attributed transcript — recentTranscript entries carry speaker field; orchestrator context prompt shows named speaker turns.
  • [ ] Clarification loop speaker-scoped — Follow-ups during the 60s window only accepted from the triggering speaker.
  • [ ] Action items attributed — Post-call actionables list the responsible speaker per item.
  • [ ] 1:1 regression-free — Existing 1:1 and 2-participant call behaviour unchanged.
  • [ ] Diff coverage ≥ 80% — Fix PR meets the changed-lines coverage gate.

Related

  • Backend contract (bot:in_call_request schema): #3514
  • In-call request reception + orchestrator routing (PR-6): #3512
  • Post-call summary + actionables (PR-4): #3510
  • End-to-end join flow: #4274
  • Auto-activate without wake phrase: #4368
  • Meeting Assistant epic: #3505

Al629176 avatar Jul 07 '26 14:07 Al629176

Reviewed this against the current code — the behavior described is already handled, and every remedy this issue proposes is on main.

The multi-participant address-gating for the meeting bot lives in the backend recall-bot service (tinyhumansai/backend: src/services/recallBot/meetingStream.ts + addressGate.ts), which the desktop client drives via bot:in_call_request. That path was reworked in tinyhumansai/backend#1062 (merged to main on 2026-07-02), which replaced the old single-speaker rolling buffer with per-speaker attribution. Walking the four suspected failure points:

1. "Speaker identity lost in transcript context" — not the case. Every caption is tagged [Speaker] and the tag is preserved end to end:

  • The gate transcript keeps all speakers' tags — buildGateTranscript() (meetingStream.ts:594), whose own comment reads "Unlike the old single-speaker rolling buffer, this lets the model actually follow the conversation."
  • The handoff to the brain carries speaker-tagged turns — emitInCallRequest() sends recentTranscript: this.turns.slice(-20) plus the resolved speaker (meetingStream.ts:960).
  • The client renders the name inline ([Name] text) in the transcript content it feeds its brain (meet_agent/store.rs, agent_meetings/in_call.rs:690).

2. "Undocumented participant-count threshold on backend" — there is none. No participant-count branch exists on this path; the same gating runs at 1:1 and at 3+.

3. "Speaker diarisation confusion silently drops events" — handled. The authorized-speaker resolver scans all [Speaker] tags in a segment, not just the first, precisely so a 3+ call where someone speaks right before the addresser doesn't drop the command — resolveAuthorizedSpeaker() (meetingStream.ts:767). Name nesting ("Alice" vs "Alice Smith") is handled by speakerMatches() (meetingStream.ts:541).

4. "Role collision in transcript" — doesn't happen. Roles are user/assistant for turn structure; the speaker name lives in the content tag, so multiple humans never collide — the model sees [Bob] … vs [Alice] ….

The other proposals are also already in place:

  • Triggering-speaker scoping for follow-ups: wake detection is scoped to the authorized speaker's captions — recentText() (meetingStream.ts:683) — and only the authorized speaker drives the bot even inside an open reply window.
  • Explicit dispatch-path logging: present at every drop/dispatch decision (meetingStream.ts:773, :792, :969; addressGate.ts:252).

Covered by tests for the exact multi-participant cases (tinyhumansai/backend: src/services/recallBot/__tests__/meetingStream.test.ts):

  • drops utterances from unauthorized speakers even with the wake phrase
  • authorizes when the authorized speaker appears after another speaker in the same segment
  • does not let an unauthorized speaker's wake name address the bot for the authorized one
  • ignores an unauthorized speaker even while the window is open

One thing worth flagging: the gate fails closed to silent on any provider error/timeout, or when the model self-reports confidence < 0.6 (addressGate.ts). That's intentional (never barge in), not a dropped event.

Since all of the proposed remedies already landed with #1062, there isn't a code change to make from the description alone. If a silent-dropout is still reproducible on a current build, it would help to attach the app:recallBot:* gate logs and the correlationId for one failing call — the remaining runtime suspects are a Recall diarisation display-name that doesn't match the configured respondTo, or the confidence floor, both of which the existing logging surfaces. Happy to dig in with a concrete repro.

YellowSnnowmann avatar Jul 08 '26 08:07 YellowSnnowmann

Closing this as no longer applicable — the subsystem it describes has been removed.

src/openhuman/meet/ and integrations/recall_calendar/ are both absent from main; DomainGroup::Meet has zero occurrences in src/core/all.rs, and meet_agent, MeetConfig, join_meeting and BackendMeet each match zero files. There is no multi-participant call surface left for the described behaviour to occur in.

Thank you for the report — the transcript detail in it was genuinely useful while that surface existed. If call support comes back, this failure mode is worth testing for again. Please reopen if you think the path still exists somewhere I have not looked.

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