Commit Graph

55 Commits

Author SHA1 Message Date
alan 19aa726e7f Wash the operator's bubbles softly in the chat colour
A coloured chat's own messages blend 22% of its shade over the host's
neutral bubble fill; text keeps the host colours and uncoloured chats
are unchanged.
2026-11-10 11:27:29 +00:00
alan cf9f71f27c Show dismissed commands as an answer footer chip; move Copy to the left gutter
Dismissed shell runs leave the transcript and fold into a "N commands"
chip in the footer of the first answer at or after each run (the last
answer for newer runs, or a row of its own without any answer). The chip
opens the turn sheet (wide) or a full-screen page (narrow) listing the
commands; each opens its output read-only with Copy output, Send to agent
and Restore.

On a wide conversation the answer's Copy button moves out of the footer
into a 48 px gutter left of the reading column (chatCopyGutter), shown on
hover or focus on desktops and always on touch; narrow widths keep it in
the footer.
2026-11-09 23:47:14 +00:00
alan 55ef6558e0 Hug the turn activity row's hover on desktop
On macOS, Linux, Windows and desktop browsers the "Thought · tool calls ·
background tasks" row is as wide as its label, so its hover and click area
no longer span the transcript. Phones keep the full-width touch row. The
check uses the device platform because web themes are pinned to Android.
The scroll fixture gains ?turnactivity=1 for captures.
2026-11-09 20:46:22 +00:00
alan 15939fcf09 Colour the turn change chip's counts
"3 files changed +9 −2" now shows additions in green and removals in red,
using the run Changes colours, in light and dark themes.
2026-11-09 19:01:09 +00:00
alan 96b71d122e Merge branch 'worktree-agent-aae8756320b8309f6'
# Conflicts:
#	app/lib/features/chat/conversation/chat_thread_view.dart
#	app/tool/perf/perf_fixture.dart
#	internal/protocol/message.go
#	internal/server/chat_hub.go
2026-11-09 16:56:55 +00:00
alan 3ab029cd7b Render Pipelines-shown files, images, HTML views and phone notifications in the chat transcript 2026-11-09 16:17:34 +00:00
alan 3374bea2ef Show a chat turn's changed files as a chip that opens its diff
The answer footer shows '3 files changed +9 -2'; tapping opens the turn's
files in the sheet (wide) or a full-screen page (narrow), and a file opens
the run Changes diff viewer. Patches load through the chat's own gateway.
2026-11-09 16:08:35 +00:00
alan bbcfcd32a2 Keep Cupertino chat summaries and contextual prompts readable 2026-11-07 21:08:05 +00:00
alan 004979ccd0 Expose horizontal chat overflow with native scrollbars and keyboard controls 2026-11-07 20:35:52 +00:00
alan 4340c3e72f Add hover copy actions for fenced and inline chat code 2026-11-07 02:52:29 +00:00
alan 5cb2da9028 Use day-first written dates and 24-hour chat timestamps 2026-11-05 22:14:48 +00:00
alan 9180e84109 Show discreet local timestamps on chat messages 2026-11-05 22:00:13 +00:00
alan 9e7140449f Fix web transcript cross-message selection 2026-11-05 16:34:58 +00:00
alan 5b17794179 Chat: code blocks and inline code use the monospace font 2026-11-04 02:15:50 +00:00
alan 0d459f69af Merge: answered chat questions collapse into their turn like tool calls 2026-11-03 19:39:19 +00:00
alan fc94210595 Chat: answered questions collapse into their turn like tool calls 2026-11-03 19:38:52 +00:00
alan 7f313cf5ef Chat links: a mouse click opens the link even when the pointer drifts
The selection area claimed a primary mouse press on a link as a selection
drag once the pointer moved 2 px, so in the browser ordinary clicks with a
little hand or trackpad movement opened nothing. A link's recognizer now
accepts a primary mouse press on pointer down, as an anchor does; the click
still cancels past the tap slop, drags from plain text still select across
links, and touch long press keeps Copy link.
2026-11-03 18:35:43 +00:00
alan 0ac9c5a8a9 Merge: clickable links in chat 2026-11-03 16:17:54 +00:00
alan 9bfd16c6e5 Chat: highlighted, clickable links in messages
Markdown links, autolinks and bare http(s)/www. URLs open externally through
url_launcher (http, https and mailto only) in assistant markdown and operator
messages; code is never linkified. Links use the host primary colour with an
underline that thickens on hover, and offer Copy link on long press and
right-click without breaking text selection.
2026-11-03 16:17:26 +00:00
alan 493e950195 App uses the Material host and controls on every platform
iOS and macOS no longer switch to the Cupertino host or Cupertino controls by
target platform; they render the same Material UI as web and Android.
Cupertino paths remain for an explicit cupertino: true host. Flutter's
automatic platform behaviours (scroll physics, text selection, back-swipe
transitions) are unchanged.
2026-11-03 16:07:48 +00:00
alan 1a9db0206c Chat: group consecutive background-task notices into one collapsed chip
Two or more consecutive Claude Code task notices fold into one
task_notices row: a chip 'N background tasks' (tinted when one failed)
that opens a sheet with one compact row per task (outcome icon, summary,
outcome word), like the tools and permissions chips. A lone notice stays
one line. The server also treats Claude Code's [SYSTEM NOTIFICATION]
banner as harness text, so a bannered notification without an origin is
still a notice, never the operator's turn. The chat fixture gains
?tasks=N.
2026-11-03 12:44:57 +00:00
alan d02d5ea11d Chat transcript: wheel and trackpad scrolling always reaches the transcript
Root causes found in release web captures (1280x800 and 560x900):
- Follow mode undid small wheel/trackpad ticks at the end: each tick is its
  own scroll, re-judged as following within 32 px and jumped back. A user
  scroll toward older rows now releases the end however small; the jump
  control appears once streamed content moves the end beyond the threshold.
- The end-of-scroll jump ran inside the position's activity switch, so a
  touch or scrollbar drag released near the end recursed without end (stack
  overflow during the gesture). The jump now runs after the notification.
- Horizontally scrolling code blocks and tables claimed diagonal trackpad
  gestures whole. HorizontalScrollView gives mostly vertical gestures to the
  enclosing list; sideways and Shift + wheel still scroll the block.
- The wheel over the floating chat bar, composer and jump control moved
  nothing. VerticalWheelForwarder scrolls the transcript from them unless
  something under the pointer claims the event.

Adds widget tests per content kind and scroll mode, follow/touch/Load older
tests, a capture-kit check (tool/capture/examples/chat-wheel-scroll.json)
with eval/expect steps, wheel dx/repeat, --params and eval: targets, a
transcript scroll probe and fixture options, and fixes the kit ignoring a
script's size. Notes in notes/chat-wheel-scroll.md.
2026-11-02 20:37:36 +00:00
alan 07d4740d0c Show injected Claude input as agent reports and notices, not operator bubbles
Claude Code records subagent/peer reports, task notifications, reminders and
skill bodies as user-role entries. Classify them server-side (history and live
stream) by origin/isMeta/queued_command mode: reports become kind agent_report,
task notifications kind notice, harness meta is hidden, and the mid-turn
wrapper is unwrapped to the operator's text. The app draws a collapsed Agent
report card and a one-line system notice on the agent's side.
2026-11-02 16:44:07 +00:00
alan 20bf6202b3 Rebuild only the live chat turn while replies stream
Reuse unchanged transcript rows, the composer bar and the header across
streamed deltas, and share parsed markdown by text so rows scrolled back
into view are not parsed again. Adds a rebuild/parse harness and a
release-web frame-timing probe with a long-transcript fixture.
2026-11-01 23:59:40 +00:00
alan 8193626076 Restore activity row touch targets 2026-10-31 23:40:18 +00:00
alan 49afcba2d3 Preserve activity row layout changes 2026-10-31 23:39:27 +00:00
alan 4bc99f490b WIP: message delivery status and refresh safety; fix reconcile listener recursion
The transcript listener read the lazily built _controller while _attach was
still building it (load() notifies synchronously), so it built another
controller, recursively, until the test process ran out of memory.
2026-10-31 19:54:48 +00:00
alan 9de87d5a2b Separate chunked reply paragraphs with an empty-line gap
Consecutive text parts of an agent turn (including folded messages) and
markdown blocks within a part are now separated by ~0.9x the scaled body
font size; a heading stays 8px from what it introduces. Adds a ?paras=1
chunked reply to the composer probe and gap tests at 1x/2x.
2026-10-31 17:05:10 +00:00
alan fde086cc4a feat(app): glass viewer bars, graph controls and immersive image viewer
Review findings F12, F13, F25 and F1 for viewers: the artifact viewer's
actions/pager and the Changes pager float as glass pills over content,
file facts move to the top bar, graph overlay controls are one glass pill
(duplicate fullscreen glyph removed), the image viewer is immersive, and
diff/artifact/graph views let content pass behind the bar. Implemented by
pipeline run #204 (Terra); its Review stopped after three rejections, the
last being an empty glass bar for a single unresolved artifact, which the
manager fixed here with a regression test.
2026-10-31 04:26:22 +00:00
alan 3501b31172 Merge branch 'worktree-agent-a5d62c9e29fb46c27' into integrate/bars-artifacts 2026-10-31 00:29:54 +00:00
alan 0582bfc34f feat(app): segmented glass top bar across the app
Extract the chat's segmented bar into lib/ui/adaptive (SegmentedBar,
GlassPill, SegmentedBarOverlay) and use it for the shell bar, DetailPane
and every page-level bar. Pieces are frosted glass over a fading scrim;
only pills take taps. Actions keep their natural width so the title gives
way before a model name. The chat transcript scrolls behind its header.
2026-10-31 00:21:27 +00:00
alan b00dff864c feat(chat): frame attachment thumbnails with a subtle hairline
Sent images and composer thumbnails share ChatAttachmentFrame: rounded
corners plus a faint outline in the host's outline role, so a dark
screenshot no longer melts into a dark page. Adds a web probe that
renders the streaming activity line at several text sizes.
2026-10-31 00:21:22 +00:00
alan 6dbfdc6e64 fix(chat): centre the pending dots on the activity text
The dots were period glyphs sitting on the baseline, so they read low
beside the label. They are now round dots sized from the surrounding
text, vertically centred with it and scaling with it.
2026-10-30 23:54:22 +00:00
alan 8c421952db feat(chat): show sent images as thumbnails with a full-screen viewer
Operator-attached images render as rounded thumbnails above the user
bubble and open a zoomable Material/Cupertino viewer. Inline data: URIs
decode locally; file:// attachment-store URIs load through the new
chat_attachment_image websocket request, which serves only regular image
files directly inside the private attachment store (os.Root, <= 4 MiB,
sniffed raster types). Missing files show an 'Image no longer available'
placeholder; other files keep the file row.
2026-10-30 20:53:03 +00:00
alan 44b2cff347 fix(chat): Return breaks lines on phones and align the activity line
On Android and iOS the keyboard's Return now inserts a newline and the
Send button sends; desktop keeps Enter to send. The Material activity
line drops TextButton's inset so it starts at the answer's edge now that
replies have no bubble.
2026-10-30 20:07:27 +00:00
alan 027c2f800e feat(chat): ChatGPT-style transcript and composer
Agent replies sit on the page without a bubble and get a copy control;
the operator's turn is a neutral rounded bubble; the composer is one
filled pill with +, a borderless field and a round Send, and its
placeholder names the chat's folder. Also fixes two picker tests left
stale by the native picker.
2026-10-30 15:56:39 +00:00
alan a828c44ce9 fix(chat): place the activity chevron beside its text and space it from the bubble 2026-10-28 22:14:54 +00:00
alan 7027da4248 Keep chat activity stable in one live disclosure and distinguish unread attention 2026-10-28 16:45:05 +00:00
alan 18d43cadc3 Show an animated assistant bubble before response tokens 2026-10-25 17:38:56 +00:00
alan 5cb43b6dc8 Make chat reasoning a footer chip that opens a live sheet like tools 2026-10-24 18:13:03 +01:00
alan 2740bb0673 feat(chat): fold answered permissions into a turn chip like tool calls 2026-10-24 16:05:47 +01:00
alan b355679507 fix(chat): place per-message reasoning left of the tools count 2026-10-24 11:47:07 +01:00
alan da44001ab2 perf(chat): reuse unchanged markdown render trees 2026-10-24 11:12:47 +01:00
alan fa818341cf fix(chat): keep provided reasoning visible during live replies 2026-10-24 01:59:52 +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 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 bc98b6cab8 fix(app): wide Cupertino sidebar, compact run tabs, web-like chat bubbles 2026-10-22 12:25:12 +01:00
alan 5b85c8dd6d refactor(app): split markdown parsing into cohesive files 2026-10-21 23:42:01 +01:00