feat(studio): render structured AI conversations
Add reusable UI2 conversation balloons, tool cards, native Markdown, copy actions and controlled streaming scroll. Preserve typed ACP tool updates and chat lifecycle, add Alt+Enter sending, update specifications and qualify the UI through desktop tests. Include the Pong asset cache.
This commit is contained in:
@@ -66,12 +66,37 @@ it; edits made while sending MUST survive. The submitted text and failures MUST
|
||||
remain in the conversation. Recover last request MUST copy that text only into an
|
||||
empty draft. Failed work MUST NOT be automatically resubmitted.
|
||||
|
||||
The log MUST show user text, streamed agent text, tool activity and terminal
|
||||
result/error/cancellation. Thought content MUST NOT be stored or shown; generic
|
||||
working activity MAY be shown. Current activity and connection state MUST remain
|
||||
visible, including the running chat identity when another chat is selected. The
|
||||
Studio log is a bounded plain-text view (last 200,000 characters per chat), not an
|
||||
authoritative persisted agent history.
|
||||
The conversation MUST retain separate typed items for user messages, streamed
|
||||
assistant segments, tool calls and terminal results. Thought content MUST NOT be
|
||||
stored or shown; generic working activity MAY be shown. Current activity and
|
||||
connection state MUST remain visible, including the running chat identity when
|
||||
another chat is selected. Presentation follows specification 15.
|
||||
|
||||
The JavaFX-free port MUST preserve tool identity, title, category, state, input,
|
||||
output and supported content from ACP tool_call/tool_call_update notifications.
|
||||
Updates MUST route by session and toolCallId. Omitted/null optional fields MUST
|
||||
retain prior values; explicit empty content MUST clear content. Supplied snapshots
|
||||
MUST replace their corresponding fields rather than being concatenated as deltas.
|
||||
Unsupported content MUST NOT be presented as invented shell output. Missing terminal
|
||||
tool status at turn completion MUST remain an unconfirmed/interrupted outcome.
|
||||
|
||||
Studio's conversation remains transient and bounded, not an authoritative persisted
|
||||
agent history. Its reducer MUST limit each message/content/output field to 64,000
|
||||
UTF-16 code units, tool input to 16,000 and title to 1,000. New tool identities MUST
|
||||
be nonblank and at most 512 code units. A turn MUST admit at most 256 content items
|
||||
plus its terminal result, with a shared 200,000-character budget across message text,
|
||||
titles, input and output; terminal error detail MAY add at most 1,000 characters.
|
||||
Omitted fields MUST remain unchanged even at the budget boundary. Truncation MUST
|
||||
preserve UTF-16 surrogate pairs and be indicated visibly. Oversized transport fields
|
||||
MUST also be bounded before dispatch and carry an explicit truncation marker.
|
||||
|
||||
Completed older turns MUST be retired as complete turns to retain at most 200,000
|
||||
characters, 512 items and 20 turns, subject to retaining the newest turn intact
|
||||
within its own admission limits. The active turn MUST remain retained while running
|
||||
and MAY temporarily coexist with that completed history budget. History retirement
|
||||
and admission limits MUST produce a visible localized notice. Virtualization MUST
|
||||
NOT be treated as a data-memory limit. Repeated deltas or snapshots after reaching a
|
||||
limit MUST NOT create unlimited empty balloons or entries.
|
||||
|
||||
Connection loss MUST invalidate bound session IDs. Retained transcripts MUST remain
|
||||
readable, with explicit guidance to create a new chat after reconnecting. Studio MUST
|
||||
|
||||
Reference in New Issue
Block a user