Skip to content

Fix channel agent mode membership leakage#609

Merged
rogerchappel merged 3 commits into
mainfrom
codex/fix-crew-channel-agent-leak
Jun 1, 2026
Merged

Fix channel agent mode membership leakage#609
rogerchappel merged 3 commits into
mainfrom
codex/fix-crew-channel-agent-leak

Conversation

@rogerchappel
Copy link
Copy Markdown
Owner

Summary

  • Reject channel-scoped realtime agent mode sessions when the selected agent is not an eligible channel member.
  • Disable channel agent mode in the chat UI unless the selected agent can speak in the active channel.
  • Carry channel scope through thread sends and realtime voice session requests.

Verification

  • pnpm test -- 'src/app/api/runtimes/[id]/talk/realtime/session/route.test.ts' src/lib/realtime-voice-client.test.ts src/app/api/chat/route.test.ts
  • pnpm typecheck
  • git diff --check origin/main
  • Pre-push hook: pnpm typecheck && pnpm build

Risk

Medium: affects channel-scoped agent invocation and realtime voice session routing. Changes are limited to membership checks, chat UI gating, and request scope propagation.

@rogerchappel rogerchappel marked this pull request as ready for review June 1, 2026 00:54
@rogerchappel rogerchappel merged commit fff9b50 into main Jun 1, 2026
1 check passed
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