Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

1.7 KB
Raw Blame

ADR message-quotes-and-side-chats: Message Quotes and Renderer-Owned Side Chats

Context

Long conversations carry earlier prompts and answers the user wants to reuse, and the only shipped paths were copying by hand or re-pasting into the composer. The existing session.fork (ADR 0023, D134) already produced an independent durable child, but every dialog that used it activated the child, which is wrong for a side question because the fork replaces the visible main conversation.

Decision

Every user message and assistant turn gained a Quote action that prefilled a Markdown blockquote into the active session's composer draft under the existing composer-prefill contract, and an Open side chat action that kept a renderer-owned draft tab until the first Send forked a durable child without activating it. The feature reused session.fork, the existing prompt and abort paths, and the work-panel surface, with quoted text staying plain draft text under D209's smart Stop and D301's per-session draft retention.

Consequences

  • Quote prefill, the selection overlay, and the side-chat panel were removed with this record, so the composer again offers no quote entry point.
  • A child created by a side chat is an ordinary durable session and remains listed, searchable, and openable like any other.
  • The session.fork capability the panel routed to survives and is used by the Fork action.

Superseded by

ADR 0268 removed quotes, annotations, and side chats.