Commit Graph

45 Commits

Author SHA1 Message Date
alan f6c90e96db feat(app): dark mode uses a near-black gray with lighter layers instead of pure black 2026-10-23 23:12:57 +01:00
alan c200ecdaa1 feat(app): an open chat takes over the app bar instead of adding its own 2026-10-23 22:36:42 +01:00
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 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 97d09436c8 feat(app): artifact viewer previews the text family (logs, JSON, code, config) in bundled monospace 2026-10-23 14:54:00 +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 afd1943b73 fix(app): chat conversation bar leads, outside the transcript scroller 2026-10-23 12:36:26 +01:00
alan 6bf0a700d5 wip(app): design-chat-thread (retained from the blocked run) 2026-10-23 01:40:57 +01:00
alan 2bd2de5f67 feat(app): show attachments in optimistic chat turns 2026-10-22 23:15:24 +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 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 0acd7346bb feat(chat): add Claude Code chat backend 2026-10-22 18:20:10 +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 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 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 dc6b963170 feat(app): render markdown in chat messages and artifact previews 2026-10-22 00:26:36 +01:00
alan 421831b585 feat(app): add native chat composer with persisted drafts and stop 2026-10-21 23:49:04 +01:00
alan 8d7ceffdbd merge(app): land live Chat destination after retained-deadline recovery 2026-10-21 22:58: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 565cdaaa1b feat(app): add native chat composer draft and send state
Persist the exact per-session draft, send one plain prompt with a stable operation/native identity, restore a refused draft without overwriting newer typing, track the reply's queued flag and stop through chat_interrupt. No UI, transport, server or platform change; the optimistic/rejection callbacks and loadDraft are the thread integration seam.
2026-10-21 21:25:51 +01:00
alan c970aa5d16 fix(app): expose refused chat watches without losing readable history 2026-10-21 20:09:36 +01:00
alan 76437db018 feat(app): add chat thread controller for live conversations
Owns one open chat session: subscribes with chat_subscribe, reads the newest
history page, folds only this session's chat_event frames, pages older history
with the opaque cursor, and replaces the held turn on resync. Failures keep the
held transcript and surface an error; disposal only cancels the local stream.

Co-authored-by: C2 pipeline <noreply@pipeline.local>
2026-10-21 20:04:38 +01:00