Commit Graph
13521 Commits
Author SHA1 Message Date
VladislavandNeil d2ba67d109 fix(claude): register a short PostCompact hook command (#25211)
* fix(claude): register a short PostCompact hook command

Claude Code echoes every PostCompact hook's full command into the
post-compact transcript, so Orca's ~3KB portable wrapper landed in the
model's context after every /compact. On POSIX hosts (local macOS/Linux and
SSH remotes) PostCompact now gets only the POSIX branch of the wrapper;
every other event, and Windows, keep the full wrapper.

Fixes #25209

* fix(claude): guard runtime home and verify hook process identity

---------

Co-authored-by: Neil <neil@stably.ai>
2026-10-10 21:25:20 -07:00
Neilandmmarabel e4f599df05 perf(worktrees): preserve Git scans when saving sidebar order (#27343)
* perf(worktrees): preserve Git scans when saving sort order

Credit @mmarabel for identifying the repeated scans and the host-only approach in #27271.

Co-authored-by: mmarabel <166927047+mmarabel@users.noreply.github.com>

* perf(worktrees): skip Git scan invalidation for order saves on desktop hosts too

The desktop window notifier ran the worktree-change invalidators unconditionally,
so a desktop (or paired-host) Orca still cleared Git scan caches on every sidebar
order save. Carry the invalidateGitScans flag through the notifier; every other
caller keeps the default.

---------

Co-authored-by: mmarabel <166927047+mmarabel@users.noreply.github.com>
2026-10-10 21:24:34 -07:00
Jinwoo Hong 74856c83b3 fix(dev): keep Node-only Quick Open path accumulator out of the renderer (#27372)
The renderer imports quick-open-listing-limits for the result cap, but the
same module also held a Buffer-backed accumulator that imports the CommonJS
@orca/process-host dist. Vite dev serves that dist as raw ESM, so the named
import failed and the workspace workbench and right sidebar crashed. Move the
accumulator to its own main-only module.
2026-10-11 00:22:18 -04:00
Neil dae2cc9110 test(runtime): enforce ANSI preview-final pre-filter invariant (#27376)
Follow-up to #27344. isTerminalPreviewLineControl now gates on
isTerminalPreviewLineControlFinal, so the normalizeTerminalChunk
pre-filter cannot drop a final the predicate accepts. Add a test over
every CSI final 0x40-0x7e and replace String.prototype.charCodeAt spies
with behavior assertions.
2026-10-10 21:21:27 -07:00
Neil f49d0bc764 test(main): guard against a shared journal no-row sentinel returning (#27375)
Follow-up to #27342: the existing tests also pass on the old module-level
Error, so add one that fails if a single error object is reused.
2026-10-10 21:19:50 -07:00
F8 Team 810c262b1e fix(computer-use): release macOS screenshot memory after each request (#27374)
The macOS helper serves each sidecar connection on a dedicated thread
that lives as long as the connection, and the sidecar keeps one
connection open while the helper runs. Encoding a screenshot with
NSBitmapImageRep leaves autoreleased objects that keep the captured
image alive, and that thread never drained its pool, so every
screenshot kept a window-sized buffer in WindowServer until the helper
restarted.

Drain an autorelease pool around each request.
2026-10-10 21:11:59 -07:00
YEONGUK LEE 1e5031e134 fix(i18n): correct Korean CI check translations (#27367)
* fix(i18n): correct Korean CI check translations

* fix(i18n): clarify Korean GitLab pipeline requirement
2026-10-10 21:11:29 -07:00
Neil c2d5430489 [CI] Fix test fixtures and reduce unnecessary test setup (#27330)
* [CI] Fix E2E folder and catalog fixtures

* [CI] Strengthen folder readiness and reuse composer fixtures

* [CI] Repair E2E catalog owners and retain stronger unit checks

* [CI] Defer optional unit deletions to avoid extra CI jobs

* [CI] Forward Monaco test mocks to the real editor API

* [CI] Make agent launch fixtures handle probes and terminal resize

* [CI] Avoid unused test initialization and flush version probe output
2026-10-10 21:06:11 -07:00
NeilandMatheus Breguêz 41de89a626 fix: spell source NUL separators as Unicode escapes (#26864)
Co-authored-by: Matheus Breguêz <23284276+matbrgz@users.noreply.github.com>
2026-10-10 21:04:49 -07:00
Neilandoutof-place bc02f3ce6e perf(main): release startup allocations held by journal sentinel (#27342)
Credit to outof-place for identifying the retention and proposing the focused fix in #27335. Independently validated 15.19 MiB of collectible startup allocations.

Co-authored-by: outof-place <contact@outofplace.space>
2026-10-10 21:01:23 -07:00
Neilandoutof-place b411bf33fd perf(runtime): reduce terminal ANSI scanning work (#27344)
Adapted from outof-place normalization work in #27170. Preserve tail behavior while avoiding repeated CSI scans and newline-density regressions.

Co-authored-by: outof-place <contact@outofplace.space>
2026-10-10 21:00:37 -07:00
NeilandRishabh Jain a2c2f8b859 fix(computer-use): clean up completed permission helpers asynchronously (#27347)
* fix(computer-use): clean up completed permission helpers asynchronously

Stop the helper belonging to each finished status check without waiting
for a process scan on the main thread. Keep concurrent probes, setup
prompts and agent helpers running.

Adapted from #22451; fixes the cleanup gap reported in #22436.

Co-authored-by: Rishabh Jain <18290665+jrishabh55@users.noreply.github.com>

* test(computer-use): derive cleanup expectations from host paths

---------

Co-authored-by: Rishabh Jain <18290665+jrishabh55@users.noreply.github.com>
2026-10-10 20:55:35 -07:00
Neilanddrakeo338 56d25b00bd fix(settings): reenable terminal link Actions after an old opt-out (#26853)
An explicit Actions, Open URL, or Leave to terminal choice now also writes the
legacy terminalLinkActionPopoverEnabled switch, so an older opt-out no longer
snaps the Actions selection back to Leave to terminal.

Fixes #25576

Co-authored-by: drakeo338 <paranoyouz@gmail.com>
2026-10-10 20:47:45 -07:00
Jinwoo Hong 666d990bc0 Record a display-only snapshot of each paired server's tabs (inert) (#27359)
* feat(layout): record a display-only snapshot of each paired server's tabs

Records the session.tabs.subscribeAll frames main already relays to the window
into a new remoteLayoutSnapshots profile domain (design 6.3, D3). No new server
requests; written only by the recorder; dropped when the server is removed.
Nothing reads it yet.

* fix(layout): keep only what the snapshot draws and save it on structure changes

Drop retirement proofs (sent as deltas) and one-shot navigation from recorded
workspaces; save immediately only when tabs or groups change, letting title
ticks ride the next save; drop the protocol field.
2026-10-10 23:36:37 -04:00
e0625521ac fix(files): a managed terminal links and opens a host file outside its workspace (#27364)
* fix(files): a managed terminal links and opens a host file outside its workspace

A paired-server terminal checked out-of-workspace paths on this computer, so a
host file such as /tmp/screenshot.png never became a link, and a click was
refused. Link detection now asks the host the same question a click asks, with
the printing terminal's handle, and a granted file opens read-only through the
host's existing terminal-artifact grant.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(files): a restored server-granted tab is never this computer's file

Co-Authored-By: Claude <noreply@anthropic.com>

* test(e2e): keep the external-image journey's /tmp outside every workspace

The default folder workspace is /tmp, so the image resolved into it instead of
exercising a host file outside all workspaces.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: m4air <m4air@Mac.localdomain>
Co-authored-by: Claude <noreply@anthropic.com>
2026-10-10 20:36:10 -07:00
OrcaWinandm4air 5f350a3786 fix(ssh): restore saved port forwards on managed hosts and show their Ports tab (#27361)
* fix(ssh): restore saved port forwards on managed hosts; show Ports for managed workspaces

* test: annotate the mock connection casts

---------

Co-authored-by: m4air <m4air@Mac.localdomain>
2026-10-10 20:01:11 -07:00
cf36928a69 test(native-chat): unmount the cut-turn notice hooks after each test (#27358)
A rendered hook left mounted can commit after happy-dom is torn down, which
fails the shard with "window is not defined" from React's scheduler.

Co-authored-by: m4air <m4air@Mac.localdomain>
Co-authored-by: Claude <noreply@anthropic.com>
2026-10-10 19:44:23 -07:00
Jinwoo Hong 24ea55a511 infra(relay): pin staging c4 to the step-5 image again after the reserve guard drill (#27360) 2026-10-10 22:42:16 -04:00
Jinwoo Hong 73575f4a0a infra(relay): point the staging deploy at the pre-step-5 image for the reserve guard drill (#27357) 2026-10-10 22:26:27 -04:00
Jinwoo HongandClaude f69bbe8dca List the cold-relaunch tab-order swap as known on main (#27353)
* List the cold-relaunch tab-order swap as known on main

The cold-daemon-restart oracle scenario intermittently finds the tab rows in swapped order after
the relaunch. The relaunch's exits for the killed daemon's terminals retire both tab rows, the
respawns re-add them in the order they bind, and the window's next save keeps main's row order.

Co-Authored-By: Claude <noreply@anthropic.com>

* Wrap the known-on-main comment to the line limit

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-10 22:15:50 -04:00
Jinwoo Hong 8f24508bb6 infra(relay): pin staging c4 to the step-5 image again after the director identity bootstrap (#27352) 2026-10-10 21:54:54 -04:00
OrcaWinandm4air 1dde4c0049 fix(projects): create on a server's SSH project; Add Project SSH lists the server's targets (#27331)
* fix(projects): create on a server's SSH project; Add Project lists the server's SSH hosts

* fix(projects): derive server SSH states; drop redundant casts

* fix(composer): a server's SSH project gets its agents from the server

* fix(composer): only agent detection treats a server's SSH project as the server's

---------

Co-authored-by: m4air <m4air@Mac.localdomain>
2026-10-10 18:41:46 -07:00
Jinwoo Hong f30631cddb infra(relay): keep staging c4 on the serving director image until the director identity bootstrap (#27351) 2026-10-10 21:39:54 -04:00
OrcaWinandm4air e6af89741f feat(ssh): a paired client can manage the server's own SSH hosts (ssh.target-management.v1) (#27329)
* feat(ssh): manage a paired server's own SSH targets over RPC (ssh.target-management.v1)

* fix(ssh): keep a browsed remote path untrimmed

---------

Co-authored-by: m4air <m4air@Mac.localdomain>
2026-10-10 18:25:54 -07:00
Jinwoo HongandClaude f6d536dcda Save runtime-started tabs in the tab bar before their terminal starts (#27083)
* Write runtime-started panes with their tab bar entry and group before they spawn

Co-Authored-By: Claude <noreply@anthropic.com>

* List the headless reorder's row-order finding and mark the headless group writer for the switch

Co-Authored-By: Claude <noreply@anthropic.com>

* Admit runtime-started tabs into the targeted or focused tab group

A phone, CLI or orchestration create on a headless host with two tab groups was written into the
first group, so after a restart the tab moved groups. The phone's targetGroupId, else the host's
focused group, now reaches the pane admission.

Co-Authored-By: Claude <noreply@anthropic.com>

* Admit an untargeted runtime-started tab into the first tab group

Defaulting to the host's focused group moved a CLI-created tab to the right group after a restart
and in the desktop window, while main and the live view keep it in the first group. Only the
phone's explicit targetGroupId now picks the group.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-10 21:22:45 -04:00
github-actions[bot] be787967f7 Update README downloads badge 2026-10-11 01:12:37 +00:00
OrcaWinandm4air db309a5777 test(e2e): cover SSH user journeys on an orcad-managed host (#27323)
* test(e2e): cover SSH terminal and workspace journeys on a managed orcad host

* test(e2e): port the provisioned-root recipe journey; read ports from the host scan

* test(e2e): fix the provisioned-root spec's catalog refresh call

* test(e2e): wait for the shell prompt, open file links directly, and mark forward restore fixme

* test(e2e): record launches for teardown, match the prompt robustly, park the link test

* test(ci): list the journeys job in the workflow permission matrix

* test(e2e): run the terminal image-link journey again

* test(e2e): park the external-path link journey on its product gap

---------

Co-authored-by: m4air <m4air@Mac.localdomain>
2026-10-10 18:07:50 -07:00
OrcaWinandm4air 43fbd2389f test(e2e): pass the catalog owner to the remaining catalog fetches and creates (#27338)
* test(e2e): pass the catalog owner to the remaining project-group and folder fetches

* test(e2e): pass the owner to folder-workspace and project-group creates

---------

Co-authored-by: m4air <m4air@Mac.localdomain>
2026-10-10 17:49:32 -07:00
Neil 91f9744d3a fix(settings): return current preferences after slow updates (#27199)
* fix(settings): return current preferences after reconciliation

* test(settings): run SQLite reply regressions in Node
2026-10-10 17:36:49 -07:00
Jinwoo Hong 7ecc61a8a7 infra(relay): pin staging c1, c2 and c4 to the step-5 image for the staging e2e (#27339) 2026-10-10 20:34:28 -04:00
OrcaWinandm4air 77d5de1f6c fix(orcad): provide the orca CLI in Windows managed-host terminals (#27324)
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-10-10 17:18:01 -07:00
outofplaceandoutof-place ee8cd8e58f perf(ai-vault): pipeline fresh transcript discovery with bounded I/O (#27009)
Overlap transcript stat/sidecar reads in ordered batches (4 workers per root, 8 global slots); WSL stays sequential.

Fixes #27008

Co-authored-by: outof-place <contact@outofplace.space>
2026-10-10 17:14:25 -07:00
OrcaWinandm4air b4d8e370da fix(orcad): install agent status hooks when a managed host starts (#27319)
* fix(orcad): install agent status hooks when a managed host starts

* fix(orcad): read login-profile Grok/Kiro homes before installing hooks

* refactor(agent-hooks): run the login-shell home probe through process-host

---------

Co-authored-by: m4air <m4air@Mac.localdomain>
2026-10-10 17:08:36 -07:00
Neilandpetersindex 884575a797 fix(github): verify cached integration PRs after tracking is removed
Use the existing REST PR mapping to read the head repository's default
branch when no tracked remote or origin can identify it. Require matching
repository and head metadata, and preserve the PR if the lookup fails.

This clears both closed and merged integration PRs cached by a fork
checkout after its upstream tracking is removed.

Co-authored-by: petersindex <287557875+petersindex@users.noreply.github.com>
2026-10-10 17:08:10 -07:00
Neilandpetersindex 82c5484f66 fix(github): scope PR selection and clear rejected cached links
Apply the default-branch policy while probing each repository, so an
integration PR cannot preempt a valid result or suppress the same number
in another repository. Check branch heads by repository and server.

Invalidate remote defaults when their review scope or SSH provider changes.
Report rejected PR URLs through an optional refresh-result field, so merged
integration PRs clear from both caches even at the current worktree head.
Share the manual and coordinator cache update implementation.

Co-authored-by: petersindex <287557875+petersindex@users.noreply.github.com>
2026-10-10 17:08:10 -07:00
Neil 0bc07c9954 fix(github): validate implicit default-branch PR repository identity 2026-10-10 17:08:10 -07:00
petersindex 7ac9f4d2f1 fix(github): compare a tracked upstream with its own remote's default branch
A fork's upstream remote can default to a different branch than origin.
Read refs/remotes/<remote>/HEAD for the tracked remote and fall back to
origin's default only when git never recorded it. Reuses the default-branch
resolver's host routing and cache.
2026-10-10 17:08:10 -07:00
petersindex ae861b76c1 fix(github): don't link a PR headed by the default branch a branch tracks
A branch made with `git switch -c feature/x origin/develop` tracks the
default branch. When its own PR lookup missed, the tracked-upstream fallback
attached the newest PR whose head is `develop` (an unrelated develop to
release PR) and cached its number, so the wrong link survived restarts.

Drop a match headed by the tracked upstream when that upstream is the default
branch of a repo PRs target. The check runs only after such a match, so normal
polling adds no git calls, and it also heals numbers cached before the fix.

Fixes #26948
2026-10-10 17:08:10 -07:00
Jinwoo Hong 6404b7e83d test(relay): load generator can send two concurrent assigns per host (--duplicate-assign-probes) (#27107)
Rebased onto main as one commit; kept both sides of the package.json test-list conflict with #27096.
2026-10-10 20:06:42 -04:00
Jinwoo Hong c2da6337b4 fix(relay): staging sleep runs under the admission selector instead of refusing (#27126)
* fix(relay): staging sleep runs under the admission selector instead of refusing

The selector generation is monotonic and staging is past 0, so the nightly sleep could
never run again. Under a selector, admission belongs to the selector and the selector-era
wake restores it, so the sleep proves every cell empty and not reserve, never writes a
cell's admission, and refuses if the selector moved during the sleep.

* fix(relay): staging sleep re-reads reserve cells just before stopping the MIGs

The cell-flags workflow runs outside the staging lock, so a reserve flip can land
while Cloud Run scales down.
2026-10-10 20:05:33 -04:00
Jinwoo Hong 15ee25e3a6 feat(relay): a free-form staging load mode on Prove Relay Asia Staging (#27115)
Staging auth mints relay load principals for one workflow file only, so the step-5
staging run's load lives as a mode of that workflow. Load runs take their own
concurrency group and no Cloud SQL lease, so deploys and switch writes can run
under load. Origins, region, principals and sharding are pinned by the workflow.
2026-10-10 20:05:29 -04:00
Jinwoo Hong c445584584 feat(relay): a staging cell-flags workflow, trusted by the staging relay deploy identity (#27113)
Rebased onto main as one commit after its parent squash-merged.
2026-10-10 20:05:13 -04:00
Neil 8b2c795d8a test(native-chat): seed large transcript fixtures in one transaction 2026-10-10 17:05:02 -07:00
Neil dac3ae167c test(native-chat): verify ZCode readers on every desktop platform 2026-10-10 17:05:02 -07:00
Neil b74e9464eb fix(native-chat): prepare SQLite readers for ZCode-only WSL homes 2026-10-10 17:05:02 -07:00
Neil 3d51f67f2f test(native-chat): seed ZCode through the execution host 2026-10-10 17:05:02 -07:00
Neil 4fd7398013 test(native-chat): run ZCode SQLite fixtures on the production runtime 2026-10-10 17:05:02 -07:00
Neil 45c4d6ecbb fix(native-chat): preserve ZCode store selection and transcript order 2026-10-10 17:05:02 -07:00
star-nebula ecc3433bdf feat(native-chat): read ZCode session transcripts through the OpenCode SQLite reader
ZCode's CLI persists an OpenCode-v1-shaped history in its own SQLite store
(~/.zcode/cli/db/db.sqlite). The Agent Session History scan already lists
those sessions, but opening one in the native chat found nothing: the chat
transcript path had no ZCode awareness.

Resolve a zcode transcript against the ZCode database (native home, then WSL
homes) before any OpenCode install, tag every read (signal, page, subscribe)
with the agent, and apply the same hidden-transcript filter the scan uses so
ZCode's hidden bookkeeping rows stay out of chat renders.
2026-10-10 17:05:02 -07:00
Jinwoo Hong 7d81ce26c4 infra(relay): staging c1 gets a 600/60 cap, and c1/c4 get rehome trust, for the step-5 e2e (#27117)
* infra(relay): staging c1 gets a 600/60 cap and c1/c4 get rehome trust for the step-5 e2e

The reserve and demote routes answer only on cells with rehome trust, and Terraform
requires a rehome source to carry explicit connection limits. Staging only.

* infra(relay): pin staging c1 to c2's cap-capable image with its new cap

The legacy 2d0f6e6 image cannot report capped connection telemetry, so main holding it
with a 600/60 cap would leave any c1 apply failing its heartbeats for good.
2026-10-10 20:03:55 -04:00