Motivation
Consolidate the separate chat entry point into an integrated studio panel. Chat becomes a thin conversation orchestrator that connects to studio's MCP server instead of owning its own Project and McpBridge.
Parent epic: #9 — Unified Authoring Architecture
Scope
Pass 4b-A: ChatSession Refactor
Pass 4b-B: Adapter Interface Update
Pass 4b-C: Studio Chat Panel + Canvas Layout
Pass 4b-D: Inline Canvas AI Actions
Pass 4b-E: Interview -> Scaffold Flow
Acceptance Criteria
McpBridge class deleted, chat connects via ToolContext to studio's MCP server
- Single workspace: canvas and chat panel share one Project instance
- Scaffold delivered as a changeset with accept/reject review
- Inline canvas AI actions route through MCP and produce changesets
- All separate chat entry points consolidated
- No regressions in chat conversation quality
Layer
SaaS Platform (Layers 5-6)
Dependencies
Spec Reference
thoughts/specs/2026-03-24-unified-authoring-architecture.md — Section 4 (Chat Integration)
Motivation
Consolidate the separate chat entry point into an integrated studio panel. Chat becomes a thin conversation orchestrator that connects to studio's MCP server instead of owning its own Project and McpBridge.
Parent epic: #9 — Unified Authoring Architecture
Scope
Pass 4b-A: ChatSession Refactor
McpBridgedependency fromChatSessionToolContextwithgetProjectSnapshot()for state inspectionToolContextconnected to host's MCP server via InMemoryTransportChatSession.replaceBridge()methodPass 4b-B: Adapter Interface Update
AIAdapter.generateScaffold()as optimized fast-path for initial creationproject.setDefinition(), recorded by middleware)McpBridgeclass deleted entirelyPass 4b-C: Studio Chat Panel + Canvas Layout
main-chat.tsx,chat/,chat-v2/into integrated panel within studio shellPass 4b-D: Inline Canvas AI Actions
Pass 4b-E: Interview -> Scaffold Flow
generateScaffold()loaded as first changesetAcceptance Criteria
McpBridgeclass deleted, chat connects via ToolContext to studio's MCP serverLayer
SaaS Platform (Layers 5-6)
Dependencies
Spec Reference
thoughts/specs/2026-03-24-unified-authoring-architecture.md— Section 4 (Chat Integration)