Skip to content

Require active agent participants for channel agent mode#611

Merged
rogerchappel merged 3 commits into
mainfrom
codex/active-channel-agent-mode
Jun 1, 2026
Merged

Require active agent participants for channel agent mode#611
rogerchappel merged 3 commits into
mainfrom
codex/active-channel-agent-mode

Conversation

@rogerchappel
Copy link
Copy Markdown
Owner

@rogerchappel rogerchappel commented Jun 1, 2026

Summary

  • Require shared-channel agent mode and realtime voice sessions to target an active agent participant: on_call or proactive.
  • Keep mention_only agents available only for explicit mentions/wake phrases, not ongoing two-way agent mode.
  • Treat direct agent DMs as active agent conversations even when their stored participation mode is mention_only.
  • Split chat UI channel agents into mentionable vs active participants and route plain channel messages to a single active agent participant when present.

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: changes shared-channel agent routing semantics and agent-mode availability. Scope is limited to channel invocation guards and chat-page routing behavior.

@rogerchappel rogerchappel marked this pull request as ready for review June 1, 2026 01:23
@rogerchappel rogerchappel merged commit b5253ca 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