Chat: draw agent follow-ups and automatic continues apart from the operator
The server now names a user turn's origin (followup, auto_continue, auto_switch, scheduled) on chat messages, user frames and queued prompts, from the prompt's operation id while it holds the prompt and from its own text prefixes in history read later. Origin is a new field, so older clients keep treating these as ordinary user turns. The app draws an agent follow-up, auto-continue and account-switch prompt as a quiet outlined card on the agent's side with an icon, label and the schedule facts from the preamble; the operator's own scheduled message keeps its bubble with a small Scheduled mark. Find searches the drawn text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -332,6 +332,7 @@ func (p *chatQueuedPrompt) wire() protocol.ChatQueuedPrompt {
|
||||
Text: p.text,
|
||||
Client: p.client,
|
||||
Attachments: p.parts,
|
||||
Origin: chatPromptOrigin(p.operationID, !p.sendAt.IsZero()),
|
||||
}
|
||||
if !p.queuedAt.IsZero() {
|
||||
out.QueuedAt = p.queuedAt.UnixMilli()
|
||||
|
||||
Reference in New Issue
Block a user