* fix(browser): run unwatched serve browser tabs at a low frame rate
Offscreen serve pages composite on their own 60 fps frame clock even with
painting stopped, so every unwatched tab kept the GPU and its renderer busy.
Tick unwatched pages at 5 fps and raise them to full rate while a command,
capture or screencast lease needs frames, keeping full rate for 20 s after so
an agent's next step finds a fresh frame.
* fix(browser): reapply the serve page frame rate when a navigation commits
The new-tab page sends GET / to every scanned workspace port to read a page
title and favicon. The Android emulator's modem simulator is a qemu listener
on [::1]; that request leaves it in CLOSE_WAIT spinning a CPU core at 100%
until the emulator is restarted.
Skip the page probe for qemu-system-* processes bound to [::1]. qemu hostfwd
listeners bind IPv4 and keep being probed, and the prefix match survives
Linux's 15-character /proc/<pid>/comm truncation.
Fixes#42748
Co-authored-by: Neil <neil@stably.ai>
On macOS the PTY root is /usr/bin/login and the shell is its only child.
Close sends SIGTERM and SIGKILLs survivors after a 2 s grace, but an idle
interactive zsh or bash ignores SIGTERM, so every idle terminal close took
about 2.1 s.
When the login wrapper's only descendant is a bare interactive shell (argv0
is a shell, args are only -l/-i/--login), the shutdown sweep now also sends
it SIGHUP with its identity-checked SIGTERM, so it exits through the normal
hang-up path. Shells running scripts or -c commands, shells with other
descendants, exec'd programs, unreadable commands, daemon-wide disposal and
retired-daemon recovery keep the SIGTERM grace unchanged, so agents still
run their exit hooks.
Fixes#42675
Co-authored-by: Neil <neil@stably.ai>
Align the Windows update harness docs and CLI help with the implemented
cold-restore/survival profiles, document the daemon-log reader, drop
links to unavailable plan/postmortem docs, and fix relocated script and
source paths in freeze-repro, process-host, and crash-survival docs.
Remove stale French Windows RC claims in favor of the stable latest asset.
Fixes#42765
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
* fix(browser): stop screenshots tiling when the page is taller or denser than its pane
* fix(browser): plan full-page tiles on the pixel grid and read the ratio over CDP
* fix(browser): stop full-page tiling once a tile reaches the page end
* fix(browser): bound the whole full-page capture and its measurement
* fix(native-chat): make Claude steers interrupt instead of waiting on foreground work
A steer sent while Claude ran a foreground subagent or command sat at
"Sending…" until that work finished, because Claude only reads queued
input between tool calls. Steers now move foreground work to the
background first, then send with priority "now" so Claude ends the
current step and answers the steer right away.
* fix(i18n): match the Steer hint fallback to en.json
* fix(native-chat): steer Claude without killing a subagent's work, in the same turn
Background only top-level foreground subagents and commands, by tool
call, so a subagent's own commands stay with it. A step the steer cuts
short now leaves its turn open for the steer instead of ending it as a
finished turn; without a pending steer, an aborted step reads as
interrupted.
* fix(native-chat): keep a steered turn's Interrupted ending if the steer never runs
A Stop or idle before the steer's own cycle starts now ends the held turn
as the cut-off step ended, not as completed, and the cut-off step's root
reasoning ends with it while a subagent's streams continue.
* fix(native-chat): let real Claude results keep their own ending after a steer hand-off
The held ending of a step a steer cut short now applies only when idle
ends the turn without a verdict, and the hand-off ends only root text so
a subagent's streamed text continues.
* fix(native-chat): tidy the Claude steer hand-off
Re-check the turn after the background wait so a turn that ended becomes
a plain send with its own choices; forget only the root stream's blocks
at the hand-off; end leftover work at the real settle time; await the
fake background route.
* fix(native-chat): end a subagent's streamed text when a steered turn goes idle
A steer hand-off keeps subagent text open, so the turn's real settle now
ends and drops it; an idle end takes the held verdict at idle's time.
* fix(native-chat): keep a subagent's text streaming when a new prompt supersedes the turn
Only a real settle ends and drops leftover streamed text; superseding a
turn ends reasoning only, as before, so a background subagent's block
keeps its row.
On the start screen the stored session names no workspace, but
resolveActiveWorktreeContext still borrowed the first renderer tab with an
active pane, so workspace.readContext and workspace.changed reported a
workspace the user had not opened. The stored session always exists when a
store does, so the session's focus is now the only answer and the start
screen reads null, matching the plugin API contract.
Fixes#42752
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
* Bound retained desktop browser guests by idle page count
* Type the browser guest retention regression fixtures
* Update document visibility after React commits
* Preserve current page recency and private document audio protection
* Avoid observer handshakes on child-frame load completion
* Complete the browser certificate replay WebContents fixture
* test(browser): complete guest protection fixture contracts
* fix(browser): retain the saved page catalog after guest reclamation
* fix(browser): preserve inventory ownership and global tab order
* fix(browser): scope inventory ownership work to browser workspaces
* Complete browser cleanup mocks after main sync
* fix(browser): retain edited documents and earlier history
* test(browser): complete document guest history fixture
* test(browser): assert history transition publication
* Restore reclaimed browser pages before commands and retain active owners
* Fix native idle-page eligibility and retain canonical reclaim order
* Keep browser inventory recovery fixtures faithful to saved pages
* fix(browser): retry eligible guests and avoid default debugger acquisition
* fix(browser): publish owner protection before discard retries
* test(browser): isolate protection acquisition before release
* test(browser): keep preview input fixture native-shaped
* Fix browser lifecycle fixture typecheck coverage
* fix(browser): finish guest discard admission before replying
* fix(browser): retire only the hidden page surplus
* fix(browser): retain cold recovery and modal ownership boundaries
* test(browser): complete successful native load before stopping
* Preserve browser page ownership across profile replacement
* Typecheck connected browser profile fixtures in their owning project
* Import browser disposal operations from their owning module
* WIP: interrupted command-target repair (stopped 11-14 for Brennan's no-cap ruling)
* Keep browser commands on the selected page after idle discard
* Limit page-close routing cleanup to its current references
* Guard page close against unrelated routing work
* Type the routing retention probe by its owner
* Add a Memory Saver setting for idle browser pages
Settings > Browser gets a Memory Saver switch (on by default, kept under the
existing kill-switch key) and an "Unviewed for" hours field (1-168, default 4).
Main re-keys idle deadlines live from when each page hid, so turning it off
stops pending frees and changing the hours applies without a restart.
* Let main alone gate Memory Saver and key idle deadlines by hide time
Changing the hours no longer walks every tracked page: the heap is keyed by
when each page hid and the shared offset is applied at the head. The renderer
no longer vetoes on the setting or reinstalls its listener on toggle, so a
toggle sends no visibility replay and can't strand an in-flight page.
* Document the fixture casts in the browser inventory publication test
* Await the now-async window graph sync in browser inventory tests
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
`orca orchestration inbox` rejected --run even though the
orchestration.inbox RPC already accepted a run filter. Accept --run in
the CLI spec and forward it; the server now refuses an unknown Run
(hinting when a run:<id> mailbox address was passed instead of a bare
id), and the CLI refuses rows from other Runs when an older server
ignores the filter.
Fixes#42732
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Plugin skills were scanned under their bare folder/frontmatter name, so an
unclassified 'fwx:discuss' command from Claude's pre-init catalog never
matched a scanned skill and was inserted as plain text. Carry the plugin
name on scanned plugin roots/skills and name them '<plugin>:<folder>' in
the picker, the way Claude invokes them. The plugin name is the
installed_plugins.json id prefix; native discovery also reads the manifest
name from <installPath>/.claude-plugin/plugin.json. WSL discovery keeps the
id prefix and launches no extra wsl.exe.
Plugin workflows (commands/*.md with no SKILL.md) are out of scope.
Fixes#42746
List PowerShell in the code block language picker and register the
highlight.js PowerShell grammar with the rich markdown lowlight instance,
since lowlight's common set omits it.
Fixes#42744
Co-authored-by: Claude <noreply@anthropic.com>
* refactor: group process and platform modules by ownership
* refactor: preserve moved module workflow routing
* refactor: preserve native loader and embedded bundle origins
The Stats & Usage summary grids switched to four columns on xl viewports,
but the settings column is capped at 784px, so each tile was ~160px wide and
a five-digit estimated cost spilled out of its tile. Use container queries
(@md:grid-cols-2 @4xl:grid-cols-4) so four columns only apply when the pane
itself is wide enough, and let StatCard values wrap as a last resort instead
of overflowing.
Fixes#42724
Co-authored-by: Neil <neil@stably.ai>
- Mention routing notes and terminal_busy / chat-session refusal pointers
now include the required --subject and --body flags for
`orchestration send`.
- `orchestration send --to <ctx_id>` refusals for a bare id of an existing
Dispatch now suggest `--to dispatch:<id>`.
- `orchestration check --help` documents its own --format meaning instead
of the screenshot image-format text.
- Remove an unused agent-reference test fixture.
Fixes#42735
Co-authored-by: Claude <noreply@anthropic.com>
A Jira Cloud site connected through the self-hosted form was saved with
authType 'server', so issue lists hit /rest/api/2/search, which Atlassian
removed from Cloud and now answers with 410. Resolve the auth type from the
host: atlassian.net and jira.com sites are always Cloud, both when
connecting and when reading saved site records. Emailless server records
(PAT sites) stay server so they are not dropped and their tokens orphaned.
Fixes#42722
Co-authored-by: Neil <neil@stably.ai>
The selection Add to chat popover is a visible overlay, and the composer
refuses focus while an overlay is open. After selecting transcript text,
a Cmd/Ctrl+V or plain typing was routed into the composer's text but focus
stayed on the transcript, so later keystrokes such as Space scrolled the
transcript instead of reaching the editor.
Mark the popover content data-focus-behavior="page" so overlay focus
ownership ignores it (it never takes focus itself), and drop the flushSync
close that only existed to work around the same guard.
Fixes#42714
Co-authored-by: Claude <noreply@anthropic.com>
Adds a terminal.copySessionId action under Terminal Panes in Settings >
Shortcuts (no default chord). Pressing it in an agent pane copies the
same session ID as the context menu item via a shared resolver, swallows
held repeats, and shows a localized toast when no live session exists.
Fixes#29729
Co-authored-by: Neil <neil@stably.ai>
Rich mode blocked any file with a line matching /^\[[^\]]+\]:\s+\S+/m,
so prose like "[Bug]: Backspace at the start ..." forced code-only
mode with the reference-style links banner.
Keep that regex as a pre-filter, then confirm a real definition before
blocking: either a line the rich-mode encoder would strip, or a
definition the production Tiptap/marked parser collects from the
encoded source. Lexer failures fail closed. Bodies over 50k code units
keep the existing block so the per-edit parser cost stays bounded, and
footnotes are checked first so footnote files skip the lex.
Fixes#19795
Co-authored-by: Neil <neil@stably.ai>
On Linux the desktop app installs its CLI as `orca-ide` (GNOME's screen
reader owns `orca`), but help text, typo suggestions, missing-subcommand
hints, and runtime-unavailable hints all printed `orca`, so copied commands
launched the screen reader. Resolve the invoked command name (Orca terminal
shim via ORCA_CLI_COMMAND, `orca-dev` for dev launchers, `orca-ide` for the
Electron-run-as-node app launcher, `orca` elsewhere) and render it in those
outputs. macOS/Windows and SSH Node CLIs keep `orca`.
Fixes#42682
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Kimi Code v2 writes state.json createdAt/updatedAt as epoch milliseconds,
but the parser read them with extractString, leaving session timestamps
null so session search --since dropped the session. Pass the raw values
to updateTimeline, which already normalizes ISO strings and numbers.
Refs #27918
Co-authored-by: szsip239 <88223778+szsip239@users.noreply.github.com>
Add an unbound-by-default `editor.toggleChangesView` keybinding that
switches the active editor tab between Edit and Changes, mirroring the
toolbar toggle. The shortcut shares the toolbar's Changes gate (now
`canToggleChangesModeForFile`), skips binary previews, claims the chord
so Monaco does not also run it, and flushes custom editor frames before
switching modes.
Fixes#11095
Co-authored-by: Neil <neil@stably.ai>
* fix(native-chat): open chats saved by journals that predate later tables
A journal last opened by v1.4.219 through v1.4.245 has no outcome tables. The
new store reads that file read-only and never adds them, so converting any of
its chats failed with "no such table: journal_outcome_epochs" and no chat opened.
The original is now opened as the old writable open would have shaped it:
every table this build's legacy open would create but the file lacks reads as
empty through a private TEMP table. The file is never written. The profile
copy's per-table version guard and the empty-chat table guard are no longer
needed and are removed.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(native-chat): keep refusing a schema-4 journal missing its record tables
Only tables the file's version could legitimately lack are presented as empty.
The PR-watch counter is read from the file itself, not a TEMP sequence table.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* chore: record the legacy source opener in the worker-only SQLite baseline
It runs only on the chat store's writer and reader worker threads, like the
other journal files listed there; the two files it replaced shrink.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(native-chat): import profile rows whose chat record the old store already removed
A receipt left behind by a removed chat failed the first-launch copy with
FOREIGN KEY constraint failed on every launch, so no chat could open. The copy
now keeps the original rows as saved, as a file copy would.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* test: drop an assertion the store open already guarantees
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copy, fork and continue-session context fed SerializeAddon's replay
stream into a cleaner that drops every CSI sequence, so gaps that the
serializer encodes as ESC[nC (cursor moves, tab stops, styled blanks)
vanished and adjacent words were joined. Read the visible xterm cells
instead with translateToString, joining soft-wrapped rows before trimming
so a printed space at a wrap boundary survives. Interior gaps and leading
indentation are kept exactly; trailing whitespace is trimmed per logical
line and blank rows below the output are dropped. Normal-buffer history
stays ahead of an active alternate screen.
Fixes#38888
Co-authored-by: Neil <neil@stably.ai>
undici's HTTP/1 writer calls socket.setTypeOfService before each write,
outside any fetch promise. On macOS the syscall fails with EINVAL once the
peer has reset the socket (VPN, Wi-Fi switch, proxy), so a network change
became an uncaught main-process exception and a modal error dialog. Treat
the TOS syscall as best effort, as Node already does on Windows; the write
then fails through undici's normal ECONNRESET path. Argument validation
errors still throw.
The test resets a real peer connection and calls setTypeOfService on the
reset socket, reproducing the native EINVAL on macOS.
Fixes#39579
Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
Workspace cards, refresh sweeps, the status bar and the palette keyed and
fetched linked issues by number only, so a fork workspace linked to
fork#247 showed upstream#247 (the number-only lookup is upstream-first).
Derive the repository from the workspace's saved GitHub issue URL (or a
matching GitHub attachment in linkedItems), pass it through gh:issue /
github.issue as an optional ownerRepo, and include it in the issue cache
key. Number-only links keep the existing heuristic.
Fixes#24378
Co-authored-by: Neil <neil@stably.ai>
* Move environment store operations off the main thread
* Preserve CLI startup speed with the serialized environment owner
* Handle absent paired host labels in the producer regression fixture
* Preserve publication ownership and copy selected environment results
* Correct publication and WSL readiness regression fixtures
* Include environment store worker in deployed server artifacts
* Check fresh listing publication across an intervening store update
* Await store-backed results in new recovery coverage
* Retire failed page publications and retain CLI worker support entries
* Unpack environment store support modules for the installed CLI
* Align async store callers with their return contracts
* Avoid hardening work for absent environment store files
* Keep permission repair bounded to one hardening attempt
* Align store test fixtures and await pairing replacement
* Use the semantic store operation for external pairing fixtures
* Provide the live sender frame in the timed subscription fixture
* Share pending server lookups and settle retired phone requests
* Keep the relay error type import
* Keep status ownership and transport imports acyclic
* Await replacement pairing in status retirement cases
* Keep asynchronous server rows bound to their admitted pairing
* Keep inventory snapshots and queued delivery at one publication boundary
* Await saved-host and graph test setup through publication completion
* Finish async fixture types and remove foreground timing probe
* Await renderer surface transitions in process identity coverage
* Await nested graph publication fixtures through their callers
* Await restored pane graph publication before hook assertions
* Include imported store worker and sidebar files in web typecheck
* Prepare saved host storage in source-based WSL test rigs
* Await saved server lookups in the source retirement diagnostic
* Preserve newer WSL status across async saved-host reads
* Fence stopped probes when a newer WSL Ready arrives
* Keep saved WSL host selection covered when admission is off
* Check WSL probe ownership after async admission
* Preserve WSL stop authority without cancelling Ready persistence
* Prune removed WSL E2E real-time wait from flaky-test baseline
* Limit WSL callback invalidation to confirmed stops
* Retire pending WSL notices on every confirmed stop
* Close the WSL picker dialog explicitly between scenarios
* perf(layout): skip unused normalization reports in pane commands (#42615)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* Clarify cleanup pinning and ignored-file protection (#42616)
* test: remove 55 low-value suites and assertion driver (#42605)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
* fix(skills): skip Claude sync scratch folders during skill discovery (#42610)
Claude Code parks replaced skill copies in `.trash` and in-progress syncs
in `.staging` under its skills roots. Discovery walked into both, so each
synced skill showed up as duplicates. Prune those directory names in the
native file walk and in the generated WSL `find` command.
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
* test: remove 78 low-value suites and trim redundant cases (#42621)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
* Keep quit teardown within the source line budget
---------
Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: OrcaWin <alpha-eng@stably.ai>
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
Co-authored-by: BingZ <zzb@gxsmjx.com>
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
The appearance methods first shipped in v1.4.251 and editor.readTypography
in v1.4.257, so a plugin requiring the old floors installed on Orca that
lacks them.
The untitled save dialog stripped `.md` and always re-appended it, so a
plugin-created untitled file such as `untitled-2.excalidraw.svg` was
saved as `architecture.md`. The dialog now splits the current name into
stem and (possibly compound) extension, shows that extension next to the
name input, strips it if the user re-types it, and saves extensionless
files as-is. The extension is held through the close animation so the
suffix label does not flicker.
Co-authored-by: Kien Le <122910950+kien-ship-it@users.noreply.github.com>
Co-authored-by: Neil <neil@stably.ai>
* feat(plugins): check host API calls against released Orca at validation
orca plugin validate and pnpm validate:plugin now read the literal host
method names a plugin's worker, panel and editor code calls, and report
methods this Orca does not have, proposed methods, wrong-surface calls,
and methods newer than engines.orca (unless guarded by orca.host.has).
Deprecated methods warn with a stable 'deprecated host method <name>'
prefix. Adds the Host API minor to first-Orca-release table.
* fix(plugins): avoid host-call validation false positives
Guarded proposed and wrong-surface calls warn instead of failing, and an orca.api.minor comparison counts as a floor guard. Only host.call/has receivers count, comments are stripped, files are stat-capped and read through their real path inside the plugin, root-relative script sources resolve, and each file is read once.
* fix(plugins): keep has-guarded host calls as errors before orca.host.has existed
* fix(plugins): fail only certain host-call problems and bound the scan
Floor and wrong-surface findings are warnings, since guards and per-surface reachability are not visible to a text scan; unknown and proposed methods without a literal has guard stay errors. Read attempts, references per file and queued files are capped, has?.() counts as a guard, and HTML script and comment scanning is linear.
* fix(plugins): treat any orca.host.has call as feature detection for unknown methods
* build(cli): ship the host-call validation module with the packaged CLI
* fix(browser): start a profile's extensions with its first page, not at launch
Every local browser profile attached its enabled extensions at startup, so
each profile's service workers ran even with no tab open. A profile now
starts its extensions when it gets its first page or when Settings acts on
it, and that page's first load waits (up to 3 s) until they have loaded.
* fix(browser): keep extension startup out of import cycles
The loopback callback used to answer "Signed in to Orca" as soon as it
received the authorization code, before the app exchanged it for a
session. A failed exchange left the app signed out while the browser
claimed success.
Keep the callback response open and answer it once connect finishes:
connected (200), cancelled/superseded (200, neutral), or failed (500
with the error code). A 45s fallback answers with
orca_cloud_auth_response_timeout if the app never responds.
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
Cancel only reached the lane token installed at spawn, so a Cancel during
the staged-context read or agent-env preparation was ignored and the agent
still ran. Register a pending lane token for the whole request: it settles
the request as canceled immediately and blocks the later spawn; a spawned
agent replaces it with its own kill token as before, and the latest
request on a lane wins.
Closes#10855
Co-authored-by: Neil <neil@stably.ai>
The toast shows the error plus the client's Orca/OS/shell details and asks
users to file an issue, but copying it meant drag-selecting the monospace
text. Add a copy icon beside dismiss that copies the error together with the
same environment footer the toast renders.
Move the generic { text, label } copy icon button out of the editor checks
panel into components/clipboard as CopyTextButton so the checks panel and
the terminal toast share it, and fold showClientEnvironment into the footer
so the copied text and the rendered footer share one guard.
Fixes#30061
Co-authored-by: Claude <noreply@anthropic.com>
Add `orca fill --value-stdin` so passwords and other secrets stay out of
argv and shell history. Fill drops one trailing newline from stdin (secret
readers end with one) and rejects empty stdin so a failed reader cannot
silently clear the field; `--value ''` still clears.
Share one flag-or-stdin reader with `orca computer type`/`set-value` and
the `--body-file -` reader. Computer commands keep their existing
semantics: no newline trimming, set-value still accepts empty stdin, and
`--text-stdin=true` style keeps reading stdin.
Fixes#29849
Co-authored-by: Neil <neil@stably.ai>
* fix(browser): enable offscreen painting for headless pages
* test(browser): verify hidden backend capture pixels in Electron
* test(browser): capture without forced viewport or clip
* test(browser): use current process-host API in capture proof
* test(browser): handle already-loaded capture fixture
* fix(browser): stop delivering unused offscreen paint frames and prove serve captures on Linux
* test: drop the serve screenshot spec that also passes without the fix
* fix(browser): keep extension observers on offscreen serve pages
---------
Co-authored-by: oliver-mee <102673257+oliver-mee@users.noreply.github.com>