Commit Graph

33 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 b44cecf35c feat(app): section titles read as dividers; one Rendered/Raw switch per definition; schedule rows with labelled facts and a status pill 2026-10-23 22:09:46 +01:00
alan d373f4c48e feat(app): Runs and Chat tabs badge running runs and unread chats; unread chat rows carry a New badge 2026-10-23 20:15:01 +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 b0d23185e7 WIP chat list actions 2026-10-23 18:51:57 +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 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 fd496a7b20 fix(app): mark deep-linked chat sessions read 2026-10-22 23:59:13 +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 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 d0d2ced3ca wip(app): chat-cmd-session (retained from the failed lane tree) 2026-10-22 22:20:50 +01:00
alan faa5cc003b wip(app): live New marks from pushed chat frames (run 151, tests and lint pending) 2026-10-22 18:36:47 +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 98c02c0c09 Merge branch 'main' into flutter/chat-model-picker 2026-10-22 12:28:15 +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 bc98b6cab8 fix(app): wide Cupertino sidebar, compact run tabs, web-like chat bubbles 2026-10-22 12:25:12 +01:00
alan 68d291602b feat(app): create, rename, star, close and hide chat sessions 2026-10-22 03:22:44 +01:00
alan 5b85c8dd6d refactor(app): split markdown parsing into cohesive files 2026-10-21 23:42:01 +01:00
alan 90fc9e8a18 Merge branch 'main' into flutter/chat-markdown 2026-10-21 23:34:35 +01:00
alan a5afc55a9d feat(app): render native transcript markdown
Port the web markdown subset to a pure Dart parser and a native
Material/Cupertino block renderer, with a caller seam for assistant text
parts and safe http(s) link activation.

- parser: entities, paragraphs, H1-H6, fenced code, quotes, lists, tables,
  rules, inline code/emphasis/links; entity overflow stays literal
- renderer: host text roles, inline/fenced code fills, table header fill,
  heading level and list/columnHeader semantics, horizontal code/table
  scrolling, native selection
- tests cover parser safety, both hosts, the seam and real taps
- probe plus note record the web evidence and remaining limits
2026-10-21 23:34:33 +01:00
alan 86a9b4a664 feat(app): register the live Chat destination with read-only history 2026-10-21 22:57:08 +01:00
alan 2088d4607e fix(app): preserve unknown user parts and native transcript typography 2026-10-21 21:12:50 +01:00
alan 9e4a925587 feat(app): add native chat transcript message row
Render one transcriptRows row with native controls: role-labelled user and
agent messages, verbatim user text, client and attachment names (own name,
URI basename, else file), ordered agent parts, and collapsed reasoning, tool
and unknown-part bodies using ExpansionTile or a Cupertino disclosure.

Blank known parts draw nothing so they no longer fall through to the
unknown-part disclosure; closed bodies build lazily. Adds focused widget
tests, the fixture probe pair and the C2 evidence note.
2026-10-21 20:44:00 +01:00
alan 41d30a4280 feat(app): split chat sessions into native Material and Cupertino views
Split the 406-line chat session browser into a controller, body, shared
adaptive primitives and separate standard Material and Cupertino lists and
dialogs. Preserve the existing server directory/backend catalogs,
instructions field, closed/starred grouping, directory headings and
empty/no-match states.

- keep refresh generations so stale replies are discarded
- open a created chat immediately and refresh the list in the background
- disable rename Save while the trimmed name is blank
- label row actions per session, with the id on duplicate titles
- wrap Cupertino empty/no-match/error messages instead of clipping, and
  give them a Cupertino text style under a bare MaterialApp
- allow the Material rename helper to wrap at large text scales
- cover both native branches, lifecycle ordering, create/rename/close/star
  and the Cupertino theme path with widget tests
2026-10-21 17:42:39 +01:00
alan 13d8ddac5d Tidy chat catalog error handling 2026-10-21 13:49:18 +01:00
alan a2b02b3810 Improve chat session catalog creation 2026-10-21 13:48:35 +01:00
alan 48059247d1 feat(app): add native chat sessions browser 2026-10-21 13:37:03 +01:00