Feature
A right-hand Agent Chat panel available on every project page (overview, spec, builds, deployments): send a message → a room-scoped collab turn (#86 phase 4) — the agent joins the project's spec room as a live peer, narrates in the panel, and its file edits appear live in the shared doc (visible to anyone in the spec workspace). Rebuilds the legacy console's ChatPanel experience on the new stack.
Decisions (grilled 2026-07-08)
- Placement: right-hand panel, 380px, content shrinks (no overlay); Sparkles toggle in the header, project routes only; mounted in
AppLayout beside the Outlet (the spec route bypasses ProjectLayout).
- Legacy experience kept: user/assistant bubbles, tool cards (verb + filename chip + status), error bubbles, thinking dots, Sparkles empty-state greeting, per-project conversation (uuid in localStorage), rehydrate from
GET /agents/{conv}/messages, re-attach to a running turn on mount, input disabled while a turn runs, 409 → inline error.
- Collab-first internals (delta from legacy): turns are
collab: true — no client-side file folding, snapshot seeding, or spec-page mirroring; the room IS the file surface. Panel = narration + tool cards.
- Available on all project pages (not requirements-tab-gated like legacy);
useCase: requirements-chat v1.
- Not copied from legacy: always-mounted width-0 collapse, hardcoded rgba colors, markdown-lite renderer, MOCK-tagged layout wiring.
- Ephemerality accepted for now: agent edits live in the room only; the phase-3 committer (next slice on
feature-collab-with-agents) makes them durable before the integration PR to aep-rewrite.
Lands on feature-collab-with-agents (not aep-rewrite) per the #86 branch strategy.
Related: #86 (phase 4 + design comments), ex-PR #128 (agents-as-peers), #113/#80 (spec workspace).
Feature
A right-hand Agent Chat panel available on every project page (overview, spec, builds, deployments): send a message → a room-scoped collab turn (#86 phase 4) — the agent joins the project's spec room as a live peer, narrates in the panel, and its file edits appear live in the shared doc (visible to anyone in the spec workspace). Rebuilds the legacy console's ChatPanel experience on the new stack.
Decisions (grilled 2026-07-08)
AppLayoutbeside the Outlet (the spec route bypassesProjectLayout).GET /agents/{conv}/messages, re-attach to a running turn on mount, input disabled while a turn runs, 409 → inline error.collab: true— no client-side file folding, snapshot seeding, or spec-page mirroring; the room IS the file surface. Panel = narration + tool cards.useCase: requirements-chatv1.feature-collab-with-agents) makes them durable before the integration PR to aep-rewrite.Lands on
feature-collab-with-agents(not aep-rewrite) per the #86 branch strategy.Related: #86 (phase 4 + design comments), ex-PR #128 (agents-as-peers), #113/#80 (spec workspace).