Files
LLeMbas-Android/contract/event_done.json
T
HomerandClaude Fable 5.2 e35bf3004c
CI / check (push) Canceled after 0s
Contract at server dev 5044168: done is the end of a reply, the chat's name follows
The server now sends `done` as soon as the reply is saved and names a new
chat afterwards: `done.chat.title_pending`, then one `title` frame before
`close` (up to the naming's time limit).

- The chat screen finishes the reply at `done` (the row replaced, nothing
  live, a queued prompt's reply followed at once) and keeps the stream only
  for the `title` frame, which renames the chat. It used to wait for
  `close`, which with this server would have left a first reply undrawn for
  the seconds the naming takes.
- The assistant's sheet follows the stream to `done` only, so a spoken
  answer is read aloud without waiting for the name.
- Fixtures: event_done (title_pending), event_done_title_pending,
  event_title. Tokens and strings are unchanged at this ref.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-12 10:06:37 +00:00

96 lines
2.0 KiB
JSON

{
"message": {
"id": "msg2",
"role": "assistant",
"created_at": "2026-01-02T03:04:05+00:00",
"complete": true,
"stopped": false,
"error": null,
"queued": false,
"machine": false,
"origin": "",
"model": "qwen",
"attachments": [],
"steps": [
{
"index": 0,
"kind": "thinking",
"open": false,
"text": "The reader wants a recipe.",
"label": "for 1 second · 6 tokens"
},
{
"index": 0,
"kind": "text",
"open": false,
"markdown": "Here is how it is made:\n\n```sh\nbake --slow\n```\n"
},
{
"index": 0,
"kind": "tools",
"open": false,
"calls": [
{
"id": "call1",
"name": "bash",
"kind": "shell",
"status": "ok",
"args": {
"command": "bake --slow"
},
"purpose": "Bake one loaf",
"text": "baked\n",
"exit": 0,
"block": {
"kind": "shell",
"title": "bake --slow",
"chips": [
"exit 0"
],
"added": 0,
"removed": 0
}
}
]
},
{
"index": 0,
"kind": "steer",
"open": false,
"messages": [
{
"id": "msg9",
"text": "and add honey"
}
]
},
{
"index": 1,
"kind": "text",
"open": false,
"markdown": "Done. *Wrap it in a leaf.*"
}
],
"plan": null,
"metrics": {
"prompt_tokens": 120,
"completion_tokens": 40,
"total_tokens": 160,
"context_tokens": 160,
"context_limit": 8192,
"estimated": false,
"elapsed_ms": 4000,
"rounds": 2,
"thinking_ms": 1200,
"percent": 2,
"tok_s": 10.0
}
},
"chat": {
"id": "chat1",
"title": "Waybread",
"title_pending": false
},
"next": null
}