mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-26 10:26:26 +01:00
PAP-11123 / PAP-11099 Phase 3b. The Conference Room now runs a real-agent conversation over the reusable SelectedAgentChat surface (default target = company CEO) instead of the board-concierge SSE relay. Backend: add POST /api/board/chat/conversations to resolve-or-mint the backing board_chat issue without spawning the concierge subprocess (the web client can't mint it directly — originKind is stripped by the create schema). Gated like /board/chat/stream on the experimental flag + instance admin + company access. Factor the resolve-or-create logic into a shared helper reused by the stream relay. UI: BoardChat resolves/mints the board issue and renders the connected SelectedAgentChat for the room's center column; the history Sheet, new-chat control, and split-pane ActivityFeed are kept. Durable history is the issue's comments and live output is the target agent's active run (real reply comment surfaced by polling) — the streaming-token bubble is gone. Tests: new server unit test mirroring the selected-agent-chat route test; BoardChat.test.tsx reworked for the new transport (SSE-stream + staged-intro assertions dropped; shell/history kept). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>