The app subscribes to the notification stream on every connection and
delivers chat_notify notices: a toast when the page is focused (none if
that chat is in view), a browser notification titled '<chat>: <title>'
plus a '(n)' tab title count when it is not, and on insecure http pages a
toast, the title count and a short chime. Low priority posts only when
hidden. Replays within an hour show once; ids persist in the ledger.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The notify tool now records a chat_notify app notification with its own
id per call (no dedupe of repeated words) and the tool's priority, so
every subscribed client gets it and a reconnecting client replays it.
ntfy delivery is unchanged; the tool result names where it went.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After Ctrl+A switched Pipelines/Runs, Alt+K sometimes did nothing while
Ctrl+K worked: the framework still held Ctrl from a lost release, so Alt+K
read as Ctrl+Alt+K. Each key event's own modifier flags now release any
modifier the framework holds that the browser reports up.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A chat opened from the list, Ctrl+Tab or the quick switcher opened behind
the floating windows. Choosing a docked chat now hides the window group
(Alt+Y-style chord brings it back); choosing a floating chat shows its
window as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ntfy uses the link only beside a web run view; otherwise it keeps the
run click and the receipt says why (app click stays the link).
- The outbox retry of a hook's failed publication re-resolves the stage's
link=, so the ntfy and app tap targets keep it.
- A valid link file is never the attached artifact.
- Notification artifacts are read through os.OpenRoot with O_NOFOLLOW.
- The link note is recorded once, on the first receipt, and never becomes
the run-level failure reason.
- Android: a recents relaunch does not reopen the link, and a run thread of
several entries opens the run rather than the latest external page.
- Docs and the protocol comment say "first non-empty line".
On Chat the chord now toggles a centred dialog (bottom sheet on a phone)
with an autofocused filter over the open chats in list order; Ctrl+N/Down
and Ctrl+P/Up move the wrapping selection, Enter opens the chat as Ctrl+Tab
does (pane reused, composer focused), Esc or the chord closes it. From other
destinations the chord still jumps to Chat. Ctrl+N/Ctrl+P are handled so the
web page prevents their defaults (Ctrl+P no longer prints); a browser tab
keeps Ctrl+N reserved, documented in the help and notes/chat-quick-switch.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A stage's notify block may name `link=<pattern>` (validated like `open=`).
When the hook fires, the newest public/ match is read (at most 4 KiB); its
first non-empty line, if an absolute http(s) URL ntfy accepts as a click,
becomes the ntfy Click and the app notification click, with the run kept
as the app's run action and ntfy's browser view. A missing file or invalid
URL keeps today's tap target and is noted on the receipt diagnostic.
Android opens such an http(s) click in the browser (after clearing the
notification) instead of handing it to Flutter as a route.
The web app is built with --wasm (skwasm, JS/CanvasKit fallback beside it).
The proxy serves it with COOP same-origin + COEP credentialless so skwasm
renders on a worker; an installed build loads from /_v/<buildId>/ cached as
immutable, other files revalidate by ETag, and the installer precompresses
.br/.gz variants the proxy sends by Accept-Encoding. The bootstrap no
longer registers Flutter's deprecated service worker (a reload per install).
Read aloud on the web uses the Web Speech API through package:web: the
flutter_tts web plugin's interop casts fail under wasm. Bench kit: isolation
and headed modes, renderer and memory reporting.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A socket that outlived a sleep or network change looked open, so every
queued request waited its own 30 s timeout behind the last until the page
was reopened. The client now replaces a socket whose request times out
unheard (or after two timeouts in a row), and probes it with a ping after
a quiet spell or on returning to the foreground.
The terminal's blinking cursor ran a Ticker (a frame every vsync); a 530 ms
timer now flips it. Streamed deltas no longer flood the markdown cache and
evict finished answers.
Adds tool/perf/idle_session_bench.mjs (idle frames, long-session heap,
snapshot census) and notes/perf-hangs-idle.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ctrl+Tab / Ctrl+Shift+Tab on the Chat destination now steps through the
chat list's open chats in list order (wrapping) instead of the workspace
panes: only the starred chats when any open chat is starred, otherwise all
open chats. From a chat outside the cycle it goes to the first (Shift: last).
The target opens as a list click does, focusing the pane already showing it.
The terminal's claim on Ctrl+Tab and floating-window cycling are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A prompt queued behind a scheduled prompt (the app's auto-continue at a
usage limit's reset) stayed queued after that head was removed: unqueue
never woke the runner, which slept until the removed prompt's send_at.
unqueue now wakes it, and the runner re-checks a scheduled head at least
every 30 s.
Safety net: a due prompt held by a turn the room only observed (its end
lost, or a reattach watcher that gave up) is delivered once the harness
reports itself idle for a settle period and its probe confirms it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Claude account dialog shows 'Auto-switch account when usage runs out'
(claude_account_auto_switch) when the server reports it. The usage-limit
banner schedules no auto-continue while the server's auto-switch continue
prompt is queued. A chat refused after another chat already switched the
Claude home gets a fresh switch stamp, so its banner clears too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When Claude Code refuses an operator chat's turn for a usage limit, the
server marks the refused account until its reset and, if the chat's Claude
home allows it (claude_account_auto_switch / `pipelines claude-account auto
on|off`, on by default, kept in pipelines-accounts/settings.json), switches
the home to the saved account with the most usage left through the
claude_account_use path. Switches of one home are serialized, so chats
refused together switch once. Each refused chat gets one queued prompt,
marked as sent automatically, that asks the agent to check it is on track
before continuing; the app's auto-continue-at-reset prompt for the refusal is
removed (and refused if it arrives later), and the operator gets a
low-priority notification.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
usage.account now carries the email and organization of the account
Claude Code is signed in to (from its initialize account, or the saved
account just switched to), sent at process start and after a switch.
The app shows it as the send tooltip's usage prefix, the Claude account
menu subtitle, the usage-limit banner's status line and the info sheet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The account requests carry the chat in a claude_account body, which the
multi-machine gateway neither routed by nor stripped of its chat@ prefix,
so the server refused them as 'a valid chat session id is required'.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The usage-limit banner now reads 'Out of usage credits' (or the refusal's
own 'You've hit your 5-hour limit'), 'Auto-resuming at <time>', an
'Auto-continue when limits reset' checkbox and Try again, keeping the
account switcher's 'Switch to <account>'.
- Auto-continue (a shared, persisted preference, on by default) hands the
server a durable scheduled prompt (send_at = reset + 1 min) with an
idempotent auto-continue-<refusal id> operation id: the refused operator
message again, or 'continue' when the refused turn had already worked.
Unchecking unqueues it; Try again unqueues it and sends now.
- Remove the approaching-limit banner, its SnackBar announcements and their
marks; the send-button usage ring replaces them.
- Claude Code's rate_limit_event overage fields (overageStatus,
isUsingOverage/overageInUse, overageDisabledReason, overageResetsAt) reach
clients as usage.account.extra_usage; the ring tooltip and the banner say
'Extra usage available' or 'Using extra usage'.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The thread controller records numbered (seq) deltas that arrive while the
newest page is read and folds back those the page does not include, onto its
live parts or parts it lacks; a delta the page already included is not added
again when it arrives late. The page's order now leads when a reply streamed
during the initial read, so the reply stays below its prompt.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude Code writes a content block to its session file only once the block
is complete. A client that read history while a block streamed (opening the
chat mid-reply, a reconnect, a resync) got only the deltas after its read,
and nothing re-sent the block's beginning, so the reply showed with its first
part cut off. Deltas are now numbered (seq) and their text retained for the
newest assistant messages; the newest history page adds every retained part
the transcript lacks and reports the last included seq (live_seq) and the
overlaid parts (live_parts).
History now numbers empty text/thinking blocks as the live stream does, so a
thinking block after an empty display-omitted one keeps one part id live and
in history. Text a content_block_start carries is published, not dropped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Saved accounts live under <CLAUDE_CONFIG_DIR>/pipelines-accounts/<slug>/
(0700 dir, 0600 files). Switching changes what /login changes: the
claudeAiOauth entry of .credentials.json and oauthAccount of .claude.json
(atomic temp+rename, mode and other keys kept) and the org caches /login
drops, under Claude Code's own refresh, storage and config locks, so
running CLIs continue on the new account without a restart. The active
login's rotated tokens are written back to its slot first.
Server: claude_accounts / claude_account_save / _use / _remove, chat-scoped
and Claude-only; a switch moves the home's open chats to the new account's
quota (usage.account.switched_at), clearing a reached limit.
CLI: pipelines claude-account list|save|use|remove [--dir].
App: Claude account in the chat menu, and Switch to <account> on the
usage-limit and usage-warning banners, with a confirmation snack.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A thin ring around Send shows the harness account's 5-hour window used share
(the most used live window when there is no 5-hour one): barely visible
normally, tertiary from 80%, error from 95%. The button's tooltip (hover,
long-press on touch) adds every window with its reset time. No ring when the
quota is unknown or unsupported. Painted behind the unchanged button, so its
size, target, states and animations stay as they were.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A session file over 64 MiB made the whole chat history unavailable. The
history now reads only the file's newest 64 MiB (from a whole line) and
opens with a notice that earlier turns are left out and how to see them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A compact banner above the composer when any quota window of the chat's
harness account reaches 80% (error colours from 95%), naming the most
constrained window and a second one also at 80%+. Dismissing it holds per
harness+window until the next level (80/90/95) or a reset, across chats and
reloads; a newly crossed level is announced once with a root SnackBar. The
usage-limit banner wins. Fixture: quota=warn80|warn95.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Over plain http on a tailnet address the page is not a secure context and
navigator.clipboard is undefined, so the web engine refused every copy.
ClipboardReportingMessenger now answers clipboard calls through the
browser's legacy clipboard when the API is missing (web only, conditional
import): copy uses execCommand('copy') with a one-shot copy-event listener
(no focus or selection change); a paste key's Clipboard.getData takes the
browser's own paste event, the key reported not-handled so the browser
still fires it. A Paste button/menu says to use Ctrl+V or the https address.
Secure pages keep the engine path. Capture kit: --insecure and clipboard=.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Omarchy's Super+C sends Ctrl+C by setting the modifier state with no Ctrl key
event while Super is held. Flutter's web engine only presses a modifier on its
own key event, so the app saw a plain "c": the chat selection was not copied
and the terminal typed the letter. A key modifier sync in front of the
framework's key handler now presses the modifiers the browser event's flags
hold (and outside Apple platforms lets go of a held Meta for Ctrl+C/V/X/A/
Insert), installed by the app's binding.
The terminal copies a selection on Ctrl+C without sending ^C, treats the
injected copy key as copy only, and pastes on Shift+Insert. A refused
clipboard write or read now shows a message instead of failing silently.
Server: before the login completes, Ctrl+C and Ctrl+\ erase the typed
password (Ctrl+U) and Ctrl+Z is dropped, so su is not killed and the terminal
no longer ends.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thirteen colours in hue order. Each has a light and a dark shade checked by
the existing contrast test; teal moves a shade deeper so it stays apart
from cyan on light surfaces.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server-stored open-chat set kept a /new'd chat's old session unless the
restarting device's own write landed, so another device (the phone) came
back to the old conversation. chat_new_session now replaces the session in
the stored set in place (position and floating kept) and pushes the new
revision to every connection.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
Retrying the Daily brief (workspace ~/caplens) was refused while a change
run worked in ~/caplens/repos/fix-d, with a message that read as if the
retry reused the next run number. Nested workspaces now overlap only
within one repository, and the refusal names the blocking run's own
workspace.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
- 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>
- 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>
- 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>
- 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>