Commit Graph

1637 Commits

Author SHA1 Message Date
alan fd5d4b783c Quick switch: a new request retargets the switch in flight instead of waiting
Peek taps, chords and programmatic activations during a mobile quick
switch start the next switch at once from what is on screen. Swap styles
continue from each card's current rect, pose, opacity and bar reveal;
the tape takes a fresh picture of the frame above the incoming chat and
continues its loop. The incoming chat keeps its speed and brakes once.
The arriving peek takes pointers while it moves; leaving cards do not.
The capture kit's film step gains a taps option for rapid-tap reviews.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 15:20:47 +00:00
alan daf290e39e Questions: agents write their findings before asking; an open question isn't 'Stopped'
An agent put its whole analysis in thinking (not shown) and asked a
question straight away, so the operator saw only the question form under
a 'Stopped after 2 tools' row. The Pipelines tool instructions now tell
agents to write what they found before asking, and an activity row with
an open question reads '... · waiting for your answer'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 14:08:38 +00:00
alan b023720617 Merge branch 'worktree-agent-afe96053a37e02d6f' 2026-11-26 03:27:28 +00:00
alan 9d46ac1c03 Terminal notes: client throughput round 3 (hot spots, changes, benches)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 03:26:54 +00:00
alan a3149eef03 Terminal feed: on the web, show streaming output at most every 32 ms
In the browser a frame rasterises on the thread that parses output, so a
stream drawn at 60 frames a second spends half its time drawing. With
deferShows (the web default) output written less than a gap after the
last show is shown when the gap has passed; output after a quiet spell
(an echo) still shows at once. Natively frames rasterise on their own
thread and written output keeps showing at once. The stream bench
measures the stream without its final 600 ms wait for frame timings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 03:14:17 +00:00
alan ae07fe14db Terminal feed: message-task yields, slices sized to speed, one show per frame
- On the web a turn yields through a MessageChannel task: a chain of
  zero-length timers is clamped to 4 ms each, which left the emulator
  idle for a third of a burst.
- Slices are cut to what the measured speed writes in the budget left,
  so a turn ends near 6 ms however costly the output is to parse; the
  first write takes 4 Ki units to measure.
- Writes no longer notify the view each: the feed shows the emulator's
  state once everything queued is written, and while output still waits
  after a turn at most every 32 ms, so a flood draws its final state per
  frame instead of a frame per turn.
- Stream bench: producer follows a flow window (256 KiB past drawn, 32 KiB
  frames, rate by elapsed time), reports time spent parsing, ?show=each
  for the old per-write notify; tool/perf/terminal_stream_profile.mjs
  prints a CPU profile of one workload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:52:41 +00:00
alan 0c4f008045 Merge branch 'worktree-agent-ad4dacaa0da379451'
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:44:31 +00:00
alan c5af000453 Terminal: text input for IMEs, Capture browser keys, touch key row
- Desktop and web terminals use the text-input path too, so IMEs, dead
  keys, the emoji picker and dictation work; the key handler still
  encodes special keys and chords first (handled keys are never typed
  again), composing text is drawn at the cursor and sent on commit, the
  platform editable sits at the cursor, and a closed input reopens on
  the next key. The editable terminal is a semantics text field so web
  typing also works with semantics on.
- Web: "Capture browser keys" (terminal menu and right-click menu) goes
  full screen and calls navigator.keyboard.lock(); hold Esc to leave.
  No-op where unsupported; cheatsheet and menu note give alternatives.
- Touch: scrollable key row with sticky Ctrl/Alt (tap once, double-tap
  lock), Esc, Tab, arrows, Home/End, PgUp/PgDn and symbols through the
  hardware encoder; soft keyboard types per key (delete detection,
  Return as Enter); the line field moves behind the row's Line button.
- Capture kit: compose=, --semantics false, --user-agent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:43:57 +00:00
alan f7ef4d1445 Terminal emulator: faster write path (ASCII runs, reused lines, no per-char allocation)
- Parser reads the written strings directly (no rune list per write) and
  handles printable ASCII runs and C0 controls straight from the string;
  a run is written into the line in one call (Buffer.writeAscii,
  BufferLine.setAsciiCells), as writeChar would one by one.
- A line leaving a full scrollback (or a one-line region scroll) is
  cleared and reused instead of allocating a 4 KiB line; lines with
  anchors (selection ends) still leave detached. Lines track the cells
  written since made or cleared, so a clear touches only those.
- Grapheme join rejects characters that cannot join before reading the
  cell (it built a String per character); width table covers plane 1.
- Switch dispatch for C0 controls, direct calls for CSI and SGR (torn-off
  handlers are slow in JavaScript); CSI params emptied without clear();
  circular buffer index without %; insert keeps the start index wrapped.
- Terminal.write(notify: false) lets a host notify once per frame.
- tool/perf/terminal_parse_bench.dart: parse throughput in the VM or V8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:34:08 +00:00
alan 9c6fdc9043 Terminal tabs: a short title keeps a select target wider than its close button
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:27:40 +00:00
alan a60ca4cc4e Merge branch 'worktree-agent-a34c5b595a9afef6e' 2026-11-26 02:25:52 +00:00
alan b59ab5fad7 Terminal round 3: readable palettes, panel and card sizing, rail, tabs
- Colours: terminal background is the theme's lowest surface; the 16 ANSI
  colours come from a chosen palette (Theme colours, Classic, Calm, Vivid;
  Settings > Terminal > Colours, saved as `palette`) adjusted in lightness
  to the background: colours 4.5:1, bright ones lighter than normal,
  white light and black dark in both themes so white-on-red/blue/magenta
  and black-on-green/yellow/cyan (ls setuid, setgid, sticky) keep 3:1.
  Selection, find matches and the current match keep text at 4.5:1.
- Bottom panel opens at 40% of the window, at least 16 rows, until
  dragged; the dragged height is remembered (old saved 300 px default
  reads as never resized).
- Navigation rail scrolls its tabs (and below 240 px Settings too), so
  items never overlap under a tall panel.
- Chat command cards: Expand / Collapse grows a live terminal to 60% of
  the window (finished output only to its rows); collapsed stays 12 rows.
- Terminal tabs: ellipsised titles (220 px) with the whole title in the
  tooltip, selected tab filled, outlined and bold, close buttons are
  IconButtons (48 px touch, 40 px desktop).
- Capture fixture: ?terminalColors=1 and ?terminalPalette=.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 02:25:16 +00:00
alan e072794ab3 Merge branch 'main' into worktree-agent-a3f5466412d4c7d5d 2026-11-26 01:58:57 +00:00
alan 0e5a06ae88 Fix the 11 failing application tests: two product fixes, stale fixtures
Product:
- Settings jump index scrolls instead of overflowing a short wide window
  (overflowed by 48 px at 1200x800 once Open in chat added a section).
- Chat: a route to the retained workspace's active pane shows it in the
  same frame again; ec3c1e4c deferred it a frame behind a post-frame callback.

Tests updated to intended behaviour:
- first-run walkthrough (30ba70ad): seed a device that has seen it and was
  offered it for the fixture server;
- Output section open by default (22af093e);
- chat page Back closes its own route explicitly (19b1d132);
- open-chat sync (c48a1559): answer chat_open_workspace statefully;
- keyed session list (0a51add9) no longer re-reads chat_sessions on open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 01:58:57 +00:00
alan e526150b1e Merge branch 'worktree-agent-a9a25296deadb0eaa'
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 01:15:53 +00:00
alan 018d37f103 Terminal: grapheme-aware widths, drawn box/Powerline glyphs, line pictures
Emulator (vendored xterm):
- Widths follow glibc wcwidth on generated Unicode 16 tables
  (tool/gen_unicode_tables.py); combining marks, variation selectors,
  ZWJ sequences, skin tones, flags and Hangul jamo join the previous cell,
  stored as interned clusters (CellContent.clusterFlag) and drawn and
  copied whole. U+FE0F and flags take two columns, as modern terminals
  do; a wide character never starts in the last column.
- Box drawing, block elements and Powerline separators are drawn as
  geometry filling the cell; rows are whole pixels high.
- Backgrounds merge per colour; each line is a picture reused until the
  line changes (BufferLine.version); a line drawn unchanged settles into
  one laid out paragraph with a span per style. TerminalStyle and
  TerminalTheme compare by value.

App: bundled Symbols Nerd Font Mono subset (568 KiB, MIT) as the
terminal's first fallback, loaded on first use; line height 1.1;
?terminalUnicode=1 fixture showcase; bench gains a progress workload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 01:14:48 +00:00
alan eaed2583a7 Merge branch 'worktree-agent-a2220433c67c864f1' 2026-11-26 00:57:20 +00:00
alan e13cb99ade Terminals: keep screen state on the server; snapshot on reload and gaps
A headless xterm-compatible emulator (internal/termstate) follows each
machine terminal's PTY output under the same lock as the 1 MiB tail. A
terminal_output from before the retained tail (new page, reload, gap)
now gets output_snapshot: an escape stream that resets the client and
restores scrollback (1000 lines), main screen, the alternate screen when
in use (via ?1049h so the program's exit brings the shell back), saved
cursors, tabs, scroll region, cursor incl. pending wrap, modes (mouse
tracking/encoding, bracketed paste, DECCKM, keypad, autowrap, origin,
focus, ...), charsets, pen and title, as of output_end; frames continue
there. Reads inside the tail stay raw.

No Go library was adequate: charmbracelet/x/vt and vito/midterm scroll at
0.2-4 MB/s and hide modes/pen/region; vt10x is unmaintained. termstate
runs at 160-200 MB/s.

The app treats a snapshot reply as a replay without the dropped-output
line, and every replay now starts with RIS so stale modes end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:56:49 +00:00
alan 9ab7f50cce Terminal: find field takes the keyboard; docs, capture kit right-click
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:52:19 +00:00
alan e65354496a Terminal round 2: tests for every feature; split find host and tab events
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:48:11 +00:00
alan 6832ec789e Terminal: find, zoom, scrollback, scroll keys, context menu, bell, link hover, OSC 52/7, cursor blink, stale selection
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:33:53 +00:00
alan f4ffda7130 Terminal stream bench: frame timings while streaming generated output
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:24:50 +00:00
alan fc5d3bc42b Test that a query answered in a later feed slice goes to onReply
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:08:54 +00:00
alan aaed57e105 Merge main into the terminal flow-control branch
Conflicts resolved keeping both sides: main's active-client rules, input
lane, reply marking and key input, and this branch's flow control,
acknowledgements, subscriptions and sliced emulator feed. terminal_ack
joins the terminal lane; the feed marks each live slice it writes as
drawing, so the emulator's answers still go to onReply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:03:20 +00:00
alan 0963a071d0 Terminals: flow-controlled output, immediate echo, sliced emulator writes
Machine terminals no longer skip output for live viewers. Each connection's
subscription is a cursor into the 1 MiB retained tail, drained by the
connection's writer as soon as the PTY reader writes (no 50 ms tick; a
streaming frame gathers for at most 2 ms). A subscription opened with
flow: true gets window (256 KiB) in its reply and acknowledges drawn output
with terminal_ack; while one is full the reader stops reading the PTY, so
the program waits. A subscription full for 3 s without acking stops holding
the terminal and later sees a gap; a gone connection drops its
subscriptions. Clients that never ask for flow keep the old pacing (newest
64 KiB per 50 ms). terminal_open/terminal_output replies precede the frames
that follow them, which start exactly at the reply's output_end.

Chat shell runs share the buffer code: output is pushed as it arrives,
oldest first, while the chat's watchers keep short queues; 256 KiB unpushed
stops the reader, and watchers behind for 3 s get the old pacing.

The app asks for flow, takes offsets from the server (frame end, reply
output_end) instead of re-encoded text length, acks per quarter window, and
writes replays and bursts into the emulator in slices that yield to the
event loop (ChatShellTerminalFeed, shared with chat shells).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:57:18 +00:00
alan f7cda341ac Merge branch 'worktree-agent-acd04dfbcf1f35152' 2026-11-25 23:45:40 +00:00
alan 85cdc845fa Terminal fixture: opt-in emulator attribute showcase
?terminalAttrs=1 prints colon-form SGR, underline styles, strikethrough,
overline, conceal, swallowed DCS/APC/OSC strings and a block cursor over a
character in the build terminal, for browser captures of the vendored
xterm's rendering. Without the parameter the fixture is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:45:06 +00:00
alan e08afcaffd Drop an unnecessary import in the xterm attribute paint test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:43:36 +00:00
alan fea34941d3 xterm: answer DSR 6 one-based; list the local patches
The cursor position report sent zero-based coordinates (the app's
terminal session overrides it with the same fix, which keeps working).
The vendored README now lists every local patch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:39:00 +00:00
alan 2bcb62b5d8 xterm: draw strikethrough, concealed text, overline and underline styles
SGR 9 (strikethrough) and 53 (overline) were stored but never drawn, and
SGR 8 (conceal) still showed the text. They are drawn now, and underline
styles use the matching line style: double (21, 4:2), curly (4:3, wavy),
dotted (4:4) and dashed (4:5). Concealed cells keep their background.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:38:35 +00:00
alan fafaa46afb Merge branch 'worktree-agent-ab9de97501bc94a9c'
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:38:04 +00:00
alan c3458d8a7f Terminals: one active client per terminal; keystrokes skip the request queue
Several clients drawing one terminal (machine terminal or chat terminal
command) no longer interfere. The server tracks, per terminal, the
connections drawing it, most recently active first: the active client
(the opener, then whoever last typed or focused it) owns the PTY size and
is the only one whose emulator's automatic query answers reach the
process; other clients' answers are acknowledged and dropped, and their
sizes recorded but not applied. When the active connection closes the next
most recent client's size is applied.

Protocol (backwards compatible; all new fields optional):
- terminal_input / chat_shell_input: reply (emulator answer), cols/rows
  (the typist's size, applied before the input).
- terminal_resize / chat_shell_resize: activate (the client focused it).

Latency: PipelinesClient sends terminal_input, terminal_resize,
chat_shell_input and chat_shell_resize at once rather than behind the
previous request's reply. The server reads those onto a per-connection
terminal lane handled in order beside the ordinary request loop, and
terminal_open (up to 5 s waiting for su) now runs off the read loop.

Client: ChatShellTerminalSession routes what the emulator emits while
drawing output to onReply and reports focus through activate();
ChatShellInputPipe keeps answers and typing in separate requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:37:16 +00:00
alan 822d77b1df xterm: report focus changes (?1004)
Terminal.focusInput sends CSI I / CSI O while the program has enabled
focus reporting, and TerminalView calls it when its focus node gains or
loses focus (not for read-only views). The mode was parsed but never
acted on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:37:09 +00:00
alan 9b90806093 xterm: fix mouse wheel, drag, motion and middle-button reporting
- Wheel buttons were encoded as 68/69 (64 + 4/5, i.e. Shift + wheel down/
  wheel right); they are 64 up and 65 down.
- Wheel, click and drag positions use the view's own screen cell: the
  wheel used the window position, and clicks used the buffer row
  (counting scrollback) instead of the screen row. Default encoding sent
  the row one too high.
- A new TerminalMouseListener reports mouse presses, releases, drags
  (1002) and motion (1003, also without a button) from pointer events,
  with Ctrl/Alt modifiers. Before, a drag became a text selection and
  motion was never sent. Holding Shift at the press leaves the pointer to
  selection while the program owns the mouse.
- The middle button's press and release were reported as the right
  button. SGR releases name the released button.
- With mouse tracking on, the wheel is reported on the main screen too.
- TerminalController reports every pointer input kind by default; the
  program's mouse mode decides what is sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:36:32 +00:00
alan 7d1ffe8ad3 Terminal: xterm key encoding, no live reflow on resize, Alt+T/Ctrl+T reach the shell
- Live terminals no longer reflow (xterm.dart 4.0.0 left the cursor on the
  wrong row); narrowing cuts and erases cells past the width, rows scroll
  into scrollback keeping the cursor row; finished output still reflows.
- App-side key encoding before xterm.dart's defaults: Alt as Meta (ESC +
  the typed character), Ctrl symbol table, xterm modifier parameter for
  arrows/Home/End/PgUp/PgDn/Ins/Del/F-keys, DECCKM and DECKPAM, Alt+BS.
- Settings > Appearance > Terminal: Use Option as Meta key (Macs, on).
- Inside a focused terminal only Cmd+T and Ctrl+` toggle it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:32:29 +00:00
alan 8f758bc721 xterm: answer OSC 10/11/12 queries; OSC 8 links, OSC 52 and OSC 7
OSC 10/11/12 ; ? is answered with rgb:rrrr/gggg/bbbb from the view's theme
(RenderTerminal reports it through Terminal.setReportedColors), terminated
like the query (BEL or ST). OSC 8 hyperlinks are stored on the cells (a
16-bit id in the attributes; Terminal.hyperlinkAt), survive SGR resets and
end with an empty URI. OSC 52 sets reach Terminal.onClipboardSet decoded;
clipboard reads are not supported. OSC 7 reaches onWorkingDirectoryChange.

OSC bodies keep their semicolons (titles, URIs), and an OSC cut short by
another escape no longer swallows that escape's first byte.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:32:21 +00:00
alan bbb2d112ed xterm: DECSCUSR cursor shapes; block cursor shows the character
CSI Ps SP q is stored as Terminal.cursorShape / cursorShapeBlinks (Ps 0
returns to the view's configured cursorType; RIS clears it) and reported
by DECRQSS " q". The painter draws the requested shape. A focused block
cursor now redraws the character under it in the background colour
instead of hiding it, spans both columns of a wide character, and the
underline and bar cursors are drawn in the cursor's cell (they were drawn
at the top of the terminal).

Blinking is stored but not animated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:30:10 +00:00
alan 31d00e057c xterm: implement RIS (ESC c) and DECSTR (CSI ! p)
ESC c was ignored, so `reset` could not recover a terminal left in the
alternate screen with a hidden cursor, a scroll region or mouse modes.
RIS now resets every mode, the attributes, character sets, tab stops,
margins and saved cursors, returns to the main screen and clears it
(scrollback is kept, as in xterm). DECSTR resets modes, attributes and
margins without touching the text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:27:50 +00:00
alan 30b32921fe xterm: restore the cursor leaving 1049; arrow keys follow DECCKM
Resetting mode 1049 switched back to the main screen without restoring the
cursor saved when it was set. The keytab input handler read application
cursor keys from the keypad mode (DECKPAM) instead of DECCKM (CSI ?1 h/l);
Terminal.cursorKeysMode is the mode to read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:26:47 +00:00
alan 326e7710d4 xterm: add SCOSC/SCORC, CHT, CBT, HPA, HPR and VPR; fix HTS
CSI s / CSI u save and restore the cursor (without parameters; prefixed
forms such as the kitty keyboard query CSI ? u are left alone). CSI I and
CSI Z move by tab stops, CSI ` sets the column, CSI a and CSI e move
relative. ESC H (HTS) set no tab stop because it called isSetAt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:26:18 +00:00
alan 7592aa1a82 xterm: consume DCS, SOS, PM and APC strings; answer DECRQSS
ESC P, ESC X, ESC ^ and ESC _ now open a control string whose body is
swallowed up to ST (ESC \), across writes; CAN/SUB or a non-ST ESC abort
it. Previously the bodies were printed (nvim's DECRQSS ESC P $qm ESC \
showed as "$qm"). DECRQSS m and r are answered with DCS 1 $ r ... ST,
other requests with DCS 0 $ r ST. ESC ESC restarts the escape.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:25:14 +00:00
alan e94f4856e3 xterm: parse colon subparameters, intermediates and empty CSI params
CSI parameters now record colon subparameters (ITU T.416), so SGR 4:3 is a
curly underline instead of 4 and 3 = 43 (yellow background), and
38:2::r:g:b, 38:2:r:g:b and 38:5:n set colours. Underline styles 4:0-4:5
and 21 (double) are stored on the cell; 58/59 underline colours are
consumed and ignored; 53/55 toggle overline; 22 clears bold and faint;
truncated 38;5 no longer throws.

Intermediate bytes and private prefixes are kept, so CSI > 4;2 m
(modifyOtherKeys) is no longer applied as SGR. An empty parameter reads as
0 (default), so CSI ;5H and CSI 3H position the cursor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:23:47 +00:00
alan 5b47db180f Depend on the vendored xterm through a path dependency
The app now builds against app/third_party/xterm instead of the pub.dev
4.0.0 release. The vendored package is excluded from the app's lints; its
README records the upstream version and that we patch it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:20:08 +00:00
alan a6e04895ba Vendor pristine xterm.dart 4.0.0 under app/third_party/xterm
Unmodified copy of lib/, LICENSE (MIT), pubspec.yaml and CHANGELOG.md from
pub.dev xterm 4.0.0; the upstream README is kept as UPSTREAM_README.md.
Committed on its own so later patches are reviewable as diffs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:17:41 +00:00
alan d1390994cc Chat: offer the session's Claude Code skills and slash commands in the palette
The server reads the commands Claude Code's initialize response lists (bundled,
user, project, plugin and claude.ai-synced skills plus CLI commands, with
descriptions and argument hints), drops terminal-only ones, and serves them per
chat over a new chat_commands request without waiting for a CLI start. The
composer palette lists them after the recorded commands; choosing one inserts
"/<name> " and sending passes it to the harness as an ordinary prompt.
Codex, OpenCode and Pi chats reply with an empty list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:53:57 +00:00
alan 4d91720849 Format speech_controller.dart
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:32:59 +00:00
alan 94798b2224 Merge branch 'worktree-agent-afa6a05b31a0831e8' 2026-11-25 19:23:57 +00:00
alan 54be08994b Show selection over inline code; link URLs inside code
An opaque inline-code fill painted over the selection highlight, so a
selected code span looked unselected; it now keeps half the fill. Bare
URLs inside inline code, fenced blocks and operator messages' backticks
are now links like any other.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:23:47 +00:00
alan 85a7284fba Stages: optional skills block loading pinned library skills per visit
A model stage may declare a skills block (name or name@N per line).
Drafts and publications are validated against the server skill library;
human/ntfy stages reject the block. Each run resolves unpinned names to the
latest version at admission and records name@N per stage (run
stage_skills, step skills); retry reuses the recorded versions. Every visit
gets a private read-only copy of exactly those bundles under the run's
artifact tree, and the harness loads only them: Claude via a session
plugin (--plugin-dir, Skill tool with per-skill allow rules, bundled skills
off, ambient loads fail the visit), Pi via --skill under --no-skills, and
OpenCode via per-session instruction entries (V2 only). The app shows the
block in the stage definition and the resolved versions on each visit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:17:16 +00:00
alan 509d4c624f Render agent questions as markdown
A question's text, its description and its options' descriptions now
use the transcript's markdown renderer (bold, code, lists, links) in
the card's own text styles; tapping an option's formatted description
still selects it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:23:24 +00:00