Commit Graph

16 Commits

Author SHA1 Message Date
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 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 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 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 68d291602b feat(app): create, rename, star, close and hide chat sessions 2026-10-22 03:22:44 +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 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