Skip to content

fix: the mic starts a call with the agents in the real app (0.13.4) - #334

Merged
ralyodio merged 1 commit into
masterfrom
fix/mic-members
Oct 26, 2026
Merged

ralyodio merged 1 commit into
masterfrom
fix/mic-members

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Anthony on 0.13.3: "voices are still not using elevenlabs".

Cause: in the real app the mic in the Agents group did dictation, not a call. His messages carried the 🗣️ dictation marker and his phone's built-in voice read the replies. The mic looked for agents in useChatStore.conversations, but the sidebar keeps its own list, so the store's copy can be empty and the mic saw no agents. Meanwhile the agents sat in the call, speaking ElevenLabs into an empty room.

Fix

  • The composer loads the chat's members itself (GET /api/chat/conversations/[id]/participants) and uses them for the mic, the voice bar and voice mode.
  • That endpoint now also returns users.account_type.

Verified: in Chromium with an empty store and the endpoint returning the Agents group, the mic reads "Voice call with riotcoder, cha0spunk" and a tap calls startCall (no dictation bar). bun run test:ci passes 825/825.

🤖 Generated with Claude Code

Anthony on 0.13.3: "voices are still not using elevenlabs". The mic did
dictation (his messages were 🗣️ and his phone read the replies), never a call:
it looked for agents in the chat store's conversations, but the sidebar keeps its
own list and the store's copy can be empty, so it saw no agents. The agents were
in the call speaking ElevenLabs into an empty room.

- The composer loads the chat's members itself
  (GET /api/chat/conversations/[id]/participants) and uses them for the mic, the
  voice bar and voice mode.
- That endpoint now returns users.account_type, so agents can be told apart.

Tested in Chromium with an empty store and the endpoint returning the Agents
group: the mic reads "Voice call with riotcoder, cha0spunk" and tapping it calls
startCall, with no dictation bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

ThreatCrush Security Scan

16 finding(s)

MEDIUM: 12 | LOW: 4

Severity Rule Location
MEDIUM js-unescaped-html-sink src/app/blog/[slug]/page.jsx:38
MEDIUM js-unescaped-html-sink src/app/blog/[slug]/page.jsx:66
MEDIUM js-unescaped-html-sink src/app/faq/page.jsx:57
MEDIUM js-unescaped-html-sink src/app/layout.jsx:142
MEDIUM js-unescaped-html-sink src/app/layout.jsx:146
MEDIUM js-unescaped-html-sink src/app/page.jsx:50
MEDIUM redos-nested-quantifier src/lib/auth/dns-name.js:88
MEDIUM redos-nested-quantifier src/lib/chat/voice-mode.js:116
MEDIUM redos-nested-quantifier src/lib/chat/voice-mode.js:121
MEDIUM js-unescaped-html-sink src/lib/components/chat/MessageItem.jsx:85
MEDIUM js-unescaped-html-sink src/lib/components/chat/MessageItem.jsx:130
MEDIUM js-unescaped-html-sink src/lib/components/PitFooter.jsx:15
LOW secret-generic-credential src/app/api/auth/register-anon/route.test.js:32
LOW secret-jwt tests/debug-sms.js:10
LOW secret-generic-credential tests/private-key-import-export.test.js:252
LOW secret-generic-credential tests/private-key-import-export.test.js:264

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit a9f98ab into master Oct 26, 2026
11 checks passed
@ralyodio
ralyodio deleted the fix/mic-members branch October 26, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant