- 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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
- Date once per calendar day: a muted centred divider above each day's
first timed row (chatDayDividers); rows show only their time ("10:16"),
with the full date and time kept in the tooltip and semantics. The user's
time shares the delivery line; a harness notice's time trails its line.
- Activity line and turn chips are secondary: bodyMedium, regular weight,
onSurfaceVariant (error colour kept for failures), a small chevron_right
that turns down while its details are open (replaces expand_less).
- Copy / Read aloud: 18 px muted icons; on pointer devices shown only while
the reply is hovered or an action is focused (also without the gutter);
touch keeps them visible with a full tap target. The time leads the
footer so hidden actions leave no gap.
- Settled questions: the question on one line, the operator's answer in
full on its own line beneath it.
- Meta rows (activity, chips, notices, compaction line) start at the reply
text's leading edge; turn chips sit in their own column under the answer.
- Scroll fixture: ?timestamps=1 spreads messages over two days.
Row keys are unchanged; the divider joins a row without replacing it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tool-only turns, thinking-only turns and background-task notices that sit
between two content rows become one collapsible activity_group row, e.g.
"Ran 7 commands · used 9 tools · 8 background tasks finished · 1 failed",
the failure count in the error colour and never ellipsized. Expanding it
shows the folded rows as they render on their own. A run's task notices
fold into one chip at the newest notice; a notice whose id recurs later is
counted only at its latest position.
Grouping is a pure domain step (groupChatActivity) applied last in the
thread view's row pipeline; group rows list every member id so ChatRowKeys
keeps their identity, unchanged runs return the identical group object, and
the transcript anchor accepts a group's agent-turn ids. The scroll fixture
gains ?bgwork=1 for the shape.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The chips stayed until the server accepted the prompt, a few seconds
after the sent turn already showed the files. They now leave the field
with the text as the prompt goes out; a refusal that gives the composer
its text back restores the same chips.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Typing in a question card's answer box asked the transcript to reveal
the caret on every keystroke; the split, bottom-following transcript
jumped and followed back, so the conversation shook. The request now
stops at the card, which is on screen while the operator types.
A free-text answer now behaves like the chat composer: it grows to six
lines, Enter sends it (desktop and web keyboards) and Shift+Enter
breaks the line; an open IME candidate keeps its Enter.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the open chat's account has an exhausted quota window, a banner above
the composer reads "Usage limit reached · resets at HH:MM" and offers to
send the last message (or the current draft) a minute after the reset, via
chat_prompt send_at. Queued prompts with a future send_at read
"Scheduled · sends at HH:MM" and keep Remove.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The open chat's row now has a strong fill in its colour, a full outline
with a thick leading bar, a bold title and a pointer on its trailing
edge toward the conversation shown beside the list. A selected chat
that is not shown keeps a lighter fill; a chat visible in another pane
keeps its thin bar.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude's question forms now accept a free-text answer beside the
offered options and can be dismissed. A dismissal tells Claude the
operator will reply in the chat instead, the card's button reads
Dismiss, and the composer takes the keyboard so the reply can be typed
at once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server's chat activity now counts each session's unanswered
approvals and questions (awaiting_operator) and pushes it to every
connection when it changes. A waiting chat's list row pulses in the
error colour with a solid bar on its leading edge, its avatar wears a
ringing bell in place of the spinner, and its state line leads with a
bold "Waiting for you". Reduced motion holds the pulse and the bell
still.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A composer outside the active pane (a floating chat window, a side pane)
refused file pastes even while focused, so the field's own text paste
ran instead: a Finder copy pasted its file name and an image nothing.
The focused composer now always takes the paste.
On macOS the Edit > Paste menu item owned Cmd+V and sent paste: to the
native text view, which pastes plain text only and never lets the key
reach Flutter. The item keeps working from the menu but no longer claims
the shortcut, so Cmd+V reaches the composer's file paste.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pasteboard reader now also takes any image AppKit can read (JPEG,
HEIC, PDF and others, converted to PNG) and the legacy Finder filenames
list. A paste with no files, no image and no text now shows which types
the clipboard held instead of doing nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One file at a time or all files stacked is saved in the app's
preferences and restored when the app starts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Live chat events name a message by id and carry no time, so messages the
client created from them had no created_at. A running turn then had no
timed rows, and an item the agent showed mid-turn (show_file, show_diff)
was placed after the last timed row: above the prompt and the whole
running reply, usually off screen, until a reload brought the server's
times. Messages created from live events are now stamped with their
arrival; a history read still replaces them with the server's times.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured at 4K it saved nothing (602 ms -> 621 ms over a streamed reply):
on the web the engine rebuilds every drawn path from its recorded
operations, so keeping the measured outline in Dart does not avoid the
CanvasKit path work. The border needs a path-free drawing instead.
This reverts commit 9d37db59.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A markdown table measures each cell's paragraph at infinite width before
laying it out. Cells rebuilt when a row scrolls back in or a chat is opened
again now reuse those widths from a bounded cache keyed by the cell markdown
and its paragraph style, cleared when fonts change. Layout is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ChatTranscriptRows keeps each message run's rows while the run holds the
identical message objects; applyChatEvent and the controller keep untouched
messages' identity. Shown-item filtering, task-notice groups and row-key ids
are held per row object, and the view reads message ids once per list.
Tests check the incremental path equals a full derivation across streaming,
appends, shown items, cards, turn diffs and prepended pages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The transcript's scroll view kept every text run of every mounted row as
its own selectable and merged newly mounted runs into that list by
comparing global transforms, which dominated slow scroll frames at 4K.
Each row now wraps its content in a SelectionContainer, so the scroll
view orders rows and each row orders only its own runs once on mount.
Cross-row selection and copy order are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without one, CircularProgressIndicator looks its controller up on every
frame, walking the widget tree for the ambient Theme (89 ms over a
streamed reply at 4K). AppSpinner is the stock indicator with its own
controller and the stock period.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The highlight's outline was rebuilt and measured (computeMetrics) on
every animation frame of a running turn, the largest app cost while a
reply streams (about 600 ms of CPU over 15 s at 4K). The painter now
keeps the measured outline for its size and only extracts the moving
pieces per frame.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tool/perf/chat_4k_bench.mjs opens the full-app fixture at 3840x2160 with
12 rich chats and measures opening, scrolling, streaming, switching and
typing (frame timings plus a source-mapped CPU profile). The capture
kit's --gpu mode now uses ANGLE on Vulkan on Linux. notes/perf-4k-chat.md
records the baseline and the hotspots it found.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Native hosts reported clipboard-file paste as unsupported, and Flutter's
Clipboard carries text only, so Cmd+V of a Finder file or a screenshot in the
macOS app pasted nothing (or the file name). The macOS Runner now answers a
pipelines/clipboard_files channel with the pasteboard's file URLs, else its
image as PNG; the composer's Cmd+V reads it and attaches the files, falling
back to the pasteboard text when there are none.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A list ended at the first line that was not an item, so a numbered list
with nested bullets, wrapped lines or blank lines between items became
one-item lists that each showed 1. Lists now nest (an item holds the
blocks indented under it), continue across blank lines, join wrapped
lines, and number from their first item.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffs join the app's window system: Open in a window on a diff page or a
chat diff card shows the same files, on the same file, in a draggable,
resizable window with the full diff viewer (keys, search, all-files
view). Offered only where floating windows show; a diff window's files
live in memory, so it is not restored after a reload.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The check dropped every per-server failure and showed one generic
message. It now lists each machine with its reason (sign in first, a
feed key this app does not trust, a timeout), and an APK signed with
another certificate than the installed app is named plainly with how
to install it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Left/right and h/l step between files (or headers in the all-files
view), up/down and j/k scroll, / opens find-in-diff (highlighted
matches across every file, n/N or Enter/Shift+Enter to move, Escape to
close), and a top-bar toggle switches between one file at a time and
every file stacked with collapsible headers, like a pull request's
Files changed tab.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/new already released the old native session through the chat-close
release path, but two gaps let the replaced session stay alive, and the
client told the operator it could still be resumed in a terminal:
- Claude Code: ReleaseSession only closed a host this server was
attached to. A host registered for the session but not attached (a
failed reattach, or one left by an earlier server) kept running. It is
now asked to close over its socket and killed as a fallback.
- Codex: ReleaseSession only interrupted an active turn. It now also
sends thread/unsubscribe so the App Server unloads the thread; a later
prompt reloads it through the existing "thread not found" resume path.
- The /new notice now says the previous session was stopped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>