Skip to content

Console: project AI panel — collab agent chat #130

Description

@hevayo

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)

  1. 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).
  2. 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.
  3. 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.
  4. Available on all project pages (not requirements-tab-gated like legacy); useCase: requirements-chat v1.
  5. Not copied from legacy: always-mounted width-0 collapse, hardcoded rgba colors, markdown-lite renderer, MOCK-tagged layout wiring.
  6. 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    consoleAEP Console (apps/console) workfeatureFeature issue: body = feature doc, decisions land as comments (console flow ADR-0001)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions