agentcall icon indicating copy to clipboard operation
agentcall copied to clipboard

Bug report: collaborative mode never attaches, screenshare.stop leaves Meet stuck (+ question on Zoom support)

Open ZivLi opened this issue 1 month ago • 4 comments

Hi AgentCall team,

We are building an internal meeting assistant at InfStones on top of AgentCall: a Claude-powered brain drives the bot in direct mode through bridge-visual.py (webpage-av-screenshare) and can answer questions, query Jira/GitLab, and present slides. Most of it works well. Below are the issues we hit in two days of testing on Google Meet, ordered by impact, with call IDs and exact reproduction steps. At the end is a question about Zoom support.

Environment

  • Platform: Google Meet
  • Skill: join-meeting from pattern-ai-labs/agentcall (commits 9b96f67 and 38831e8), scripts/python/bridge-visual.py and join.py
  • Python 3.10 / 3.12, aiohttp 3.14, websockets 16.1 / 17.2
  • Hosts: macOS 15.5 and Ubuntu 22.04
  • Four accounts tested, including one on a paid plan. Account emails can be shared privately if helpful.

1. Collaborative mode: GetSun never attaches (blocking)

When a call is created with voice_strategy: "collaborative", the bot joins and transcription works, but GetSun never attaches to the call.

Steps

python scripts/python/join.py "https://meet.google.com/xxx-xxxx-xxx" \
  --mode audio --voice-strategy collaborative --bot-name "Claude" \
  --trigger-words "claude,cloud,clod,clawed,clause,klaus" \
  --context "You are Claude, a friendly AI assistant. Keep answers short."
  1. Admit the bot and wait for call.bot_ready and participant.joined.
  2. Send {"type": "inject.verbatim", "text": "Hi, I am here.", "priority": "high"}.
  3. Say "Claude, can you hear me?" in the meeting.

Expected: voice.state events (listening, actively_listening, thinking, speaking), the injected greeting is spoken, and the bot answers.

Actual

  • Zero voice.* events for the whole call. No call.degraded either.
  • transcript.final arrives correctly and contains the trigger word (for example "Hi Claus, are you there?"), but nothing responds.
  • inject.verbatim, inject.natural and trigger.speak get no ack, no error and produce no audio.
  • GET /v1/calls/{id} shows voice_strategy: "collaborative" with the right trigger_words, so the config is received.
  • tts.speak does work on these calls, even though the docs say it is direct-only. This suggests the backend is treating them as direct calls.

Affected calls (reproduced on 4 accounts, including a paid one)

Call ID Created (UTC)
call-a338aa33-f459-4d8e-bf7e-fc9b951b5105 2026-10-20 08:41
call-60287239-fbe5-4101-b5ae-8408008a2819 2026-10-20 10:02
call-5389a03b-3fe9-4165-8277-0df6013b4ac4 2026-10-21 03:38 (paid plan)

Collaborative mode is the main reason we chose AgentCall, because of its sub-second responses and built-in barge-in. Could you check whether it needs to be enabled for our accounts, or whether something is wrong on your side?


2. screenshare.stop does not stop the Meet presentation, and every later screenshare.start fails

Reproduced deterministically on 2026-10-22 in call call-c2a1268c-c33f-4453-bb21-73f355df9c27. We used a local test page with a live clock so we could tell from screenshots whether the share was live. Mode: webpage-av-screenshare via bridge-visual.py.

Step Event received What Meet actually shows (bot screenshot)
screenshare.start (local port) screenshare.started Page shared, clock live ✅
screenshare.stop screenshare.stopped Still "You, presenting" with a "Stop presenting" button. The "Present something else / Stop sharing" menu is open, but "Stop sharing" was never clicked. The shared page is frozen on its last frame (clock stopped).
screenshare.stop again screenshare.stopped The menu closes. Still presenting, still frozen.
screenshare.start (same or different port) screenshare.error, message: "unknown", within about 1 s Unchanged: frozen old frame.

After the first screenshare.stop, sharing cannot be recovered in the same call. Leaving and rejoining is the only fix. screenshare.swap fails the same way, because it sends stop first.

Control test (call call-120273e6-c0f3-43b4-8618-1fa9143a8c84): if screenshare.stop is never sent, the share stays live for the whole call. When a human participant presents, the two presentations coexist (Meet multi-present) and no screenshare.stopped is emitted. When they stop, the bot's share returns to the main view, still live.

Our workaround: we never call screenshare.stop and only change the page content. This means the bot cannot truly close its share; the host has to click "Stop presenting" on it. We would appreciate a fix so that stop really ends the presentation and a later start works. Step-by-step screenshots are available on request.


3. Webpage modes: no agent-side way to stop audio immediately (feature request)

In webpage modes, interruption is handled by agentcall-audio.js on the avatar page, with a debounce of 2 seconds or 2 words. Two problems in practice:

  • No hard stop from the agent. The agent knows exactly when a participant says "stop" from transcript.final, but in webpage modes it has no command that clears playback and the backend TTS queue. tts.audio_clear seems to be emitted only by GetSun, and audio.clear applies to audio mode.
  • Multi-sentence replies keep playing after an interrupt. If the agent streams a reply as several tts.speak commands (one per sentence, to reduce latency), the page's interrupt cuts only the current utterance. The next queued sentence fires tts.started, which reopens the chunk gate, so the bot keeps talking.

Request: an agent command, for example {"type": "tts.clear"}, that flushes the backend TTS queue and broadcasts tts.audio_clear to the webpage. We patched a custom template to work around this, but a supported command would be much more robust.


4. Smaller issues

  1. bridge-visual.py crashes with websockets ≥ 14. BridgeTunnelClient._heartbeat uses self._ws.closed, which no longer exists on ClientConnection (AttributeError: 'ClientConnection' object has no attribute 'closed'). Checking self._ws.state fixes it.
  2. The tunnel does not proxy binary responses. Serving a PNG through the screenshare tunnel returns 502; HTML and JSON work. We now serve images as base64 text.
  3. The bot occasionally joins muted. In call-31812605-3456-4995-b05b-68cfc8c4145b (2026-10-20, about 09:54 UTC) the bot joined with its mic off. meeting.mic on and toggle were acked but had no effect, and the host could not unmute it. Rejoining fixed it.
  4. Audio mode: audio.clear does not stop queued tts.speak audio. Only meeting.mic off silences the bot.
  5. Transcription is English-only. Many of our participants speak Chinese. Is multilingual or Chinese real-time transcription on the roadmap? We currently stream raw audio with audio_streaming and run our own STT.

5. Question: Zoom support

We also need the bot in Zoom meetings. The README lists Zoom as Beta, while agentcall.dev/ai-agent-zoom presents it as supported. Could you clarify:

  1. Is Zoom production-ready today, or still beta? If beta, is there an expected GA date?
  2. Does Zoom support the same API surface as Meet: webpage-av / webpage-av-screenshare modes, screenshare.*, screenshot, chat, audio_streaming, and collaborative mode?
  3. Are there Zoom-specific requirements or limitations? For example: a Zoom Marketplace app or SDK approval, passcode or waiting-room handling, recording consent prompts, or account type.
  4. Is anything needed on our side, such as account enablement, a plan tier, or a different bot setup?

Thank you. We are happy to run more tests or share logs and screenshots.

ZivLi avatar Oct 22 '26 02:10 ZivLi

Thanks for the thorough write-up, the call IDs and the screenshots.

Collaborative mode: fixed and verified in a live meeting. voice.state / voice.text events and inject/trigger commands work again.

Screenshare stop/swap: tracked in #20. Your step-by-step trace and call IDs are very helpful.

Agent-side hard stop (tts.clear): already on our list, tracked with #19.

Smaller issues: websockets ≥ 14 crash → #17, binary bodies through the tunnel → #18, audio.clear in audio mode → #19. For the bot joining muted, we'll check call-31812605-3456-4995-b05b-68cfc8c4145b.

Chinese transcription: not on the near-term roadmap. The recommended setup is to turn off our transcription (transcription: false, which also drops the STT charge) and run Whisper or another multilingual STT on the meeting audio. In webpage modes, your page can capture that audio through the browser mic: the bot's browser grants mic access automatically, and it carries the meeting audio.

Zoom:

  • Zoom works like the other platforms: same modes and API (webpage-av / webpage-av-screenshare, screenshare.*, screenshot, chat, audio_streaming, collaborative mode).
  • No Zoom Marketplace app or SDK approval is needed; that's all handled on our side.
  • No account enablement or plan tier is required.
  • Certain restricted meeting types aren't supported on Zoom.
  • If you run into anything, open an issue and we'll look into it.

We'll update #15 as each fix ships.

jomon003 avatar Oct 22 '26 07:10 jomon003

On the bot joining muted (call-31812605-3456-4995-b05b-68cfc8c4145b): if your bridge logs still have it, could you share the meeting.mic.result event(s) returned after meeting.mic on/toggle for that call? That event shows whether the unmute click took effect, was a no-op, or failed, which tells us where to look.

jomon003 avatar Oct 22 '26 07:10 jomon003

Thanks for the detailed answers. The Zoom and Chinese-STT guidance is very helpful. Collaborative-mode stability findings are in #15.

Muted join (call-31812605-...): unfortunately the logs for that call were not kept. The bridge we ran at the time only surfaced command.ack for meeting.mic (no meeting.mic.result in our event file). We now keep full event logs and will post the meeting.mic.result events if it happens again.

Screen share: one extra observation for #20

  • When the call is created with screenshare_port, the share starts automatically as soon as the bot joins (a second bot participant appears, presenting). A later screenshare.start then returns screenshare.error with message unknown, even though the share is live. Is the auto-start intended?
  • That auto-started share stayed in sync for all 9 slides in call-22e9def1-d13e-4120-b398-119a660fd86c: the Meet view showed the right slide within ~2.5 s of each change. In call-d4fb0980-28d5-49af-b4a6-892456451cc1, where the share was started mid-call with screenshare.start, the Meet view froze: 30 s after we switched to slide 6 (and our page had rendered it), the meeting still showed slide 4. During the same period we also got ~40 s with no transcripts at all.
  • We would really like a working screenshare.stop, so the bot can end its presentation itself and share again later in the same call. Any ETA for #20?

Latency question: how do we get the response speed shown in your demo videos? The conversations in your YouTube demos feel very fluid. In our setup (a Mac in Asia and a US cloud VM, same result), there are 2–4 s from the moment the user stops talking until the bot starts speaking, and a large part of it is before our agent even receives the text. A typical turn from call-d4fb0980-... (direct mode, bridge-visual.py --vad-timeout 0.8):

step time (UTC)
last transcript.partial ("Please present slides one, two, three again.") 03:08:09
transcript.final 03:08:10
user.message delivered to the agent (after the bridge's VADBuffer cooldown) 03:08:11.3
agent's first tts.speak / tts.started 03:08:13

So ~1 s for STT endpointing, ~1 s of bridge cooldown and ~1.5–2 s for our LLM plus TTS start, before any audio playback latency.

Questions:

  1. Which mode and settings do the demos use: collaborative/GetSun, or direct with a custom agent? Which vad_timeout / endpointing?
  2. Can the STT endpointing (partial → final) be tuned per call? What is the lowest --vad-timeout you recommend for the bridge's VADBuffer?
  3. Is there a recommended pattern for starting the response early, e.g. acting on transcript.partial, or audio_streaming with our own VAD?
  4. Does region matter? Where are the bots and STT/TTS hosted, and should our agent run close to them?
  5. What tts.speak → audible latency should we expect, and is there a lower-latency TTS option or a streaming input mode (sending text as the LLM produces it)?

ZivLi avatar Oct 22 '26 08:10 ZivLi

@ZivLi Thanks — answers below.

Screen share auto-start: yes, that's intended. A screenshare_url / screenshare_port at call creation starts sharing as soon as the bot joins. Because a share is then already running, a second screenshare.start returns an error; use screenshare.swap to change the content. Start/stop/swap is now fixed (see #20), please retry.

Latency

  1. Demo setup: the voice demos use webpage-audio mode (audio played from a webpage, with interruption handling); the screen-share demos use webpage-av-screenshare. Where the spoken replies are fastest, the demos use the collaborative voice strategy: the voice engine answers directly, without a round trip through the agent's LLM. Direct mode adds your agent's own LLM and TTS time to each turn.
  2. Endpointing: the speech-to-text end-of-speech detection can't be tuned per call at the moment. What you can tune is the bridge's VAD wait (--vad-timeout, default 1.25 s). You can set it as low as 0: in direct mode each transcript.final is then passed to your agent as soon as it arrives, with no extra wait. Raise it if the bot answers before people finish a thought (e.g. when they pause mid-sentence).
  3. Starting early: you can act on transcript.partial (e.g. start your LLM call early and discard it if the final text differs), or use audio_streaming: true with your own VAD. Both trade speed for more false starts.
  4. Region: our API runs in the US, and the bots run on cloud servers. Running your agent in the US reduces network round trips.
  5. TTS: the bridge splits a multi-sentence tts.speak into sentences, so the first audio usually starts within about a second regardless of length. For a faster start, send the first sentence as soon as your LLM produces it instead of waiting for the full reply. There's no separate lower-latency TTS option right now.

Closing this one, since everything left is tracked in #15 (collaborative stability), #18 (tunnel binary bodies), #19 (tts.clear hard stop) and #20 (screen share). Feel free to reopen or file a new issue anytime.

jomon003 avatar Oct 22 '26 13:10 jomon003