Commit Graph

26 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 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 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 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 b7a5aa43db fix(app): clarify shared session rename wording 2026-10-23 00:31:49 +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 852d336258 Merge branch 'main' into flutter/chat-cmd-stop 2026-10-22 22:22:44 +01:00
alan d0d2ced3ca wip(app): chat-cmd-session (retained from the failed lane tree) 2026-10-22 22:20:50 +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 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 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 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 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 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 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
alan 4a86f0db77 feat(app): show a recorded chat activity sequence as one line
Lift recorded activity/compaction parts out of an assistant turn into a
single activity row before the answer. Running kinds use the web's phase
words; terminal records keep the label the server recorded.
2026-10-22 02:33:08 +01:00
alan 221a2582dc feat(app): native permission and question cards in the chat transcript 2026-10-22 02:01:45 +01:00
alan 86a9b4a664 feat(app): register the live Chat destination with read-only history 2026-10-21 22:57:08 +01:00
alan 7cdb9e8338 feat(app): add chat foundation 2026-10-21 13:24:49 +01:00