Commit Graph

69 Commits

Author SHA1 Message Date
alan e507f554c3 feat(chat): files upload over HTTP before the prompt, up to 100 MiB each 2026-10-23 21:25:41 +01:00
alan 24e465e521 feat(app): a pasted or picked image shows a thumbnail in the chat composer 2026-10-23 19:00:39 +01:00
alan 35e343fe40 feat(app): a chat names its model (recorded, last reply's, or the agent default) and each reply shows the model that answered 2026-10-23 18:57:36 +01:00
alan 04c6e82a4d feat(app): chat list drops search, New chat and Refresh are bar actions, and rows show agent, model and ~ paths 2026-10-23 18:54:46 +01:00
alan f2aa559d0e feat(app): chat reasoning is a chip beside the tool chip, opening its own sheet 2026-10-23 16:22:31 +01:00
alan 522729ad57 feat(app): chat turns show reasoning above the answer and tool calls as one chip with a formatted call sheet, as the web 2026-10-23 15:52:51 +01:00
alan c46a46ee14 fix(app): chat turns are content-sized bubbles without role labels, as the web 2026-10-23 15:43:07 +01:00
alan ef078db80b feat(app): chat composer sends with an icon; no filler running line 2026-10-23 15:39:32 +01:00
alan 37c155e6e9 fix(app): a sent message keeps its place in the transcript, so each reply follows it 2026-10-23 15:34:46 +01:00
alan 45b3e65f2f fix(app): an empty Cupertino composer is as tall as its wrapped placeholder 2026-10-23 13:46:08 +01:00
alan 52b37c88d8 fix(app): Cupertino approval and question cards line up with the transcript 2026-10-23 13:42:45 +01:00
alan d4df1f787c feat(app): chat list toolbar keeps New chat beside search, as the web 2026-10-23 13:10:14 +01:00
alan c5119146f2 fix(app): chat rows put the state word on the title line and recency in the meta, as on the web 2026-10-23 12:40:37 +01:00
alan afd1943b73 fix(app): chat conversation bar leads, outside the transcript scroller 2026-10-23 12:36:26 +01:00
alan b7a5aa43db fix(app): clarify shared session rename wording 2026-10-23 00:31:49 +01:00
alan fd496a7b20 fix(app): mark deep-linked chat sessions read 2026-10-22 23:59:13 +01:00
alan 2bd2de5f67 feat(app): show attachments in optimistic chat turns 2026-10-22 23:15:24 +01:00
alan 3085de9f30 feat(app): chat row refusals can be dismissed with OK 2026-10-22 22:37:27 +01:00
alan 865616608c feat(app): chat create dialog matches the web create flow 2026-10-22 22:34:46 +01:00
alan a3b40faa10 feat(app): /stop reports the web's accepted line 2026-10-22 22:31:31 +01:00
alan ab230e2192 merge(app): bring main into chat-cmd-session; /new /close /rename tests 2026-10-22 22:29:33 +01:00
alan 2dadd05708 fix(app): live New marks clear the active chat on leave; lint and regression tests 2026-10-22 22:26:24 +01:00
alan 852d336258 Merge branch 'main' into flutter/chat-cmd-stop 2026-10-22 22:22:44 +01:00
alan 57b0765628 wip(app): chat-paste-2 (retained from the cancelled overrun lane) 2026-10-22 21:59:06 +01:00
alan 65b175b8e5 wip(app): chat /stop and /help commands (retained from the cancelled lane) 2026-10-22 21:16:13 +01:00
alan 76d3ac040c test(app): make the model fixtures use an unsupported backend and answer the directory read 2026-10-22 18:48:50 +01:00
alan 88e9209434 merge(app): land chat-tasks 2026-10-22 17:56:21 +01:00
alan a26bfe2b0c fix(app): bound the background-task output pane and row labels
Review 139 found the selected task's output page unbounded, overflowing a
phone-height conversation. The bar now keeps half the viewport and scrolls
its own body, the output pane is capped at twelve scaled lines, row labels
elide instead of overflowing, and a reply without a page reads as
unavailable rather than empty.
2026-10-22 17:56:00 +01:00
alan e4c196d75b feat(app): follow streamed chat and restore its read position
Transcripts pin to the newest end while following, release on the operator's upward scroll, and offer a native Jump to latest control carrying the count of messages that arrived meanwhile. The chat destination keeps each conversation's saved position so reopening restores it.
2026-10-22 17:15:51 +01:00
alan 2cb4a0c555 feat(app): show a session's running background tasks
The conversation reads the session's recorded chat_shells snapshot and folds
pushed shell frames, so only tasks the server still reports as running appear.
The list is capped at three visible rows and scrolls beyond, and a task that
exits leaves it.

Selecting a task opens its recorded command, identity and running status plus
one bounded chat_shell_output page (cursor 0, 64 KiB). Empty, unavailable and
refused reads are reported with native Retry/Refresh controls, and a refused
snapshot is shown with its reason instead of claiming there are no tasks.
Both reads carry the session id, linking every task to its conversation.
2026-10-22 17:14:56 +01:00
alan 63babc597a feat(app): offer the chat slash command palette
A leading slash opens the recorded command palette above the composer,
filtered by name prefix and driven by Up/Down, Enter, tap and Escape.

Slash drafts never reach the prompt path: a recorded command reports
locally that its action is not implemented yet, and an unknown word takes
the web client's no-send report with an explicit Send as message offer.
Enter and the primary control share that route.

Adds the chat commands domain vocabulary, the palette widget, composer
wiring and regression tests; notes/C9-commands.md records behaviour and
the remaining command-action gap.
2026-10-22 15:47:46 +01:00
alan d1ffa7c79b feat(app): compact chat session rows and thread header
Follow the web chat layout on both hosts without changing request shapes or
bubble/composer behaviour.

- Session rows (Material and Cupertino): title with trailing relative
  recency, muted `directory · model` line with the `New`/`Closed` word at
  the trailing edge. Shared row content keeps one arrangement; native tiles
  keep their own padding, separators and subtitle size. The state word keeps
  its intrinsic width and the metadata ellipsises first, so it is never
  clipped at 320px/2x.
- Thread header: one row of compact icon-only Back, ellipsised title,
  bounded model control and Chat information. Back keeps the destination as
  its accessible name and both hosts share `Key('chat-back')`.
- Share the epoch-millis parser as `chatSessionMillis`, and match the web's
  relative-time words, including `Sept`.
- Cover the row content, status word at narrow widths, header layout and
  Back accessibility in widget tests; update existing tests for the
  separate trailing status word.
2026-10-22 15:01:21 +01:00
alan dc0a52380b merge(app): land chat-model-picker micro-slice 2026-10-22 12:30:43 +01:00
alan 2a66be7b27 feat(app): choose a chat model from the conversation header
Native model control and chooser in the chat thread header, matching the web
chat_models/chat_model exchange. Fixes the chat_models list parsing, keeps the
accepted server echo across Back/reopen, and resolves the session row for
/chat/:id deep links.
2026-10-22 12:28:13 +01:00
alan c0eac5fc8b fix(app): keep chat attachment send analysis clean
Remove the redundant dart:typed_data import so integrated analysis is
clean, restore immediate composer focus on send, and cover operation-id
reuse for refused attachment retries plus duplicate-name removal.
2026-10-22 12:14:26 +01:00
alan 87bb518c33 feat(app): send chat attachments with the composer prompt 2026-10-22 11:52:42 +01:00
alan ce0e51357c Merge main into flutter/chat-notices: keep chat info beside dismissible notices 2026-10-22 11:14:01 +01:00
alan c1b87dea54 feat(app): dismiss recorded local chat notices in the thread
Show dismissible notices for refused history reads, refused live watches and a running compaction. A dismissal lasts only while the recorded condition is unchanged; a syncToken gap hides pre-gap notices until fresh state arrives.
2026-10-22 11:10:42 +01:00
alan 36fb2255d0 merge(app): land chat-info-facts micro-slice 2026-10-22 11:09:47 +01:00
alan d88efe46e0 feat(app): show removable attachment chips in the chat composer 2026-10-22 10:26:48 +01:00
alan f487257081 feat(app): show recorded chat usage in a native info panel
The chat thread header gains an Info action that opens a platform sheet (Material bottom sheet, Cupertino popup) with the four harness-reported usage facts in the web order and wording: rate, tokens, context and reported cost. Unknown facts read Unavailable; reported zeros stay zero. A live usage frame replaces an open panel without adding messages or touching turn state.
2026-10-22 10:21:53 +01:00
alan 24bc3f7d6e merge(app): land chat-attach-send micro-slice 2026-10-22 09:50:21 +01:00
alan 3c4ce4c57f feat(app): encode chat prompt attachments on the wire
Build the chat_prompt attachments array in draft order with the web's
{name, mime, data} shape, trimming and 8-file/1 MiB bounds, and read a
recorded history file part back to an attachment.
2026-10-22 03:45:52 +01:00
alan 39fffeb181 Merge branch 'main' into flutter/chat-activity-overlay 2026-10-22 03:34:39 +01:00
alan 4aee83c262 feat(app): pick chat attachments from the host file input 2026-10-22 03:32:33 +01:00
alan af5bda520e Merge branch 'main' into flutter/chat-activity-overlay 2026-10-22 03:31:42 +01:00
alan 1d648c520e feat(app): expand a recorded chat activity line in place
The summary line now carries the host's own disclosure control and, when expanded, the recorded lifecycle, input, output, error, duration and edit diff. Each absent field keeps an exact sentence; no value is inferred from answer text.
2026-10-22 03:31:21 +01:00
alan 68d291602b feat(app): create, rename, star, close and hide chat sessions 2026-10-22 03:22:44 +01:00
alan c98e6baec6 merge(app): land chat-attach-model micro-slice 2026-10-22 03:11:54 +01:00
alan 67427e0231 feat(app): add the chat attachment draft model
Record picked attachment metadata and keep the web composer's 1 MiB
total budget with a refusal that leaves the draft unchanged.
2026-10-22 02:39:56 +01:00