feat(ms22-p2): add Discord channel → agent routing #688

Merged
jason.woltje merged 1 commits from feat/ms22-p2-discord-router into main 2026-03-05 14:04:07 +00:00
Owner

Summary

  • Add Discord channel → agent routing via env var
  • Route messages in configured channels to specific agents via ChatProxyService
  • Handle SSE streaming responses with Discord's 2000 char message splitting
  • Add workspace owner lookup for chat proxy authentication
  • Comprehensive unit tests for agent channel routing (9 new tests)

Configuration

Set with format:

Test Plan

  • Unit tests pass (3547 tests)
  • Lint passes
  • TypeScript compiles
  • Manual test with Discord bot

Closes #TASKS:P2-007

🤖 Generated with Claude Code

## Summary - Add Discord channel → agent routing via env var - Route messages in configured channels to specific agents via ChatProxyService - Handle SSE streaming responses with Discord's 2000 char message splitting - Add workspace owner lookup for chat proxy authentication - Comprehensive unit tests for agent channel routing (9 new tests) ## Configuration Set with format: ## Test Plan - [x] Unit tests pass (3547 tests) - [x] Lint passes - [x] TypeScript compiles - [ ] Manual test with Discord bot Closes #TASKS:P2-007 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jason.woltje added the apiapi labels 2026-03-05 14:03:20 +00:00
jason.woltje added 1 commit 2026-03-05 14:03:21 +00:00
feat(ms22-p2): add Discord channel → agent routing
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
c53a4a4c7d
- Add DISCORD_AGENT_CHANNELS env var for channel-to-agent mapping
- Route messages in agent channels to specific agents via ChatProxyService
- Handle SSE streaming responses and Discord's 2000 char limit
- Add workspace owner lookup for chat proxy authentication
- Add comprehensive unit tests for agent channel routing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jason.woltje merged commit 413ecdb63b into main 2026-03-05 14:04:07 +00:00
Sign in to join this conversation.