Commit Graph
3823 Commits
Author SHA1 Message Date
Neil ddbc12131e ci(cloud): egress probe through the control plane and orca CLI; boot-twice premerge step
The egress probe now needs no Vercel token. It uses dev workspaces with a dev-JWK user, runs its
commands in a workspace terminal through the shipped orca CLI's pairing code, and uses
postman-echo.com as the echo host for bogus keys. It covers the custom-base-URL swap,
chatgpt.com through the relay, api.github.com, #758 anonymous git and the App repo clone.
Premerge runs boot-twice-check.sh for image/** changes. The step has its own omarchy slot and
a 10 min limit, and fails open with a warning without Docker.
2026-11-15 04:09:58 -08:00
Neil e8313a82af chore(cloud): CODEX-RELAY register the relay's vitest runner 2026-11-15 00:25:51 -08:00
Neil c1acb65ea0 chore(premerge): gate sandbox-control's own typecheck (clean since #733) 2026-11-13 11:18:55 -08:00
Neil 6fc2b8951b chore(premerge): typecheck each touched cloud/ package that is listed as clean
The root pnpm typecheck covers no cloud/ package and vitest strips types, so cloud
packages' own type errors went unseen (261 in sandbox-control). premerge-check.sh now
runs the own pnpm typecheck of every touched cloud/apps or cloud/packages package listed
in premerge-typecheck-packages.txt, after installing the cloud workspace and building its
packages. The list holds the 11 packages that are clean today; sandbox-control joins once
its errors are fixed.
2026-11-13 11:08:52 -08:00
Neil a4c9a8bbbc feat(main): build-time service URL defaults for packaged builds (#667)
Auth API, relay director, push gateway, connector and artifacts URLs can now be
set per build (ORCA_BUILD_CLOUD_API_URL, ORCA_BUILD_RELAY_URL,
ORCA_BUILD_PUSH_GATEWAY_URL, ORCA_BUILD_CONNECTOR_URL,
ORCA_BUILD_ARTIFACTS_API_URL, or the matching keys in
config/cloud-build-defaults.json). Unset keys keep today's built-in defaults,
and dev run-time env overrides still win. No values change.
2026-11-13 05:45:21 -08:00
Neil aa8088dd13 test(vitest-temp): keep POSIX test bases short so the 50-char /tmp fallback can't kick in
Under a long TMPDIR (the omarchy premerge lane's) the run root falls back to /tmp, so
'leaves an unmarked one with the same name alone' tested /tmp instead of its own base
and failed for unrelated PRs (#667). Bases now live under /tmp on POSIX.
2026-11-13 03:02:16 -08:00
Neil 5a888324d7 fix(premerge): always run source-scanning lint tests (premerge-always-tests.txt)
cloud-glossary-lint.test.ts globs and reads src instead of importing it, so
neither name matching nor vitest's module graph ever selected it; #610 broke
it unnoticed. premerge-check.sh now appends every path listed in
config/scripts/cloud-integration/premerge-always-tests.txt to the targeted
set (still subject to the base-list filter).
2026-11-12 21:27:28 -08:00
Neil fdedb8d093 fix(cloud): PAIRED-BADGE no primary badge on a cloud workspace's own row in the live card; delete dead card header paths (#574)
* fix(cloud): PAIRED-BADGE no "primary" badge or star on a cloud workspace's own row in the LIVE card; delete dead card header paths

#560 gated the badge in worktree-card-header.tsx, which only the unrendered
WorktreeCardParentContent used; the live card (default-workspace-card.json via the element registry)
drew PrimaryBadge/PrimaryStar with no cloud check, so a paired-from-birth row kept "primary". The
gate now sits in the template parts themselves (NotOnCloudRow, useIsCloudHostRow). Deleted the dead
header, parent content and meta row so a fix can't land there again.

* chore(cloud): PAIRED-BADGE drop the deleted meta row from the localization allowlist (path-literal ratchet)
2026-11-12 21:00:54 -08:00
Neil 8cf078076f fix(premerge): resolve TMPDIR to its realpath (macOS /tmp -> /private/tmp)
packaged-cli-assets' macOS launcher test compares an os.tmpdir()-based path
with the realpath the launcher reports, so it failed in the gate on any PR
selecting it (#574 batch 8, parallel and serial). Export a realpath'd TMPDIR
so the gate environment matches what child processes see.
2026-11-12 17:59:43 -08:00
Neil 7aea563b59 fix(premerge): re-run a failed vitest batch once serially before failing the gate
#574 (deletes widely imported card files) selects ~52 batches; batch 1 failed on
three Electron browser-extension tests that pass alone and in full-suite runs.
A failed batch is now re-run once with --maxWorkers=1 and passes only if fully
clean (set -e), logged as 'failed in parallel, passed serially'. A real failure
still fails the gate.
2026-11-12 16:58:54 -08:00
Neil 1fe5573222 fix(premerge): run targeted vitest files in batches (E2BIG on wide PRs like #574)
A PR that deletes or changes widely imported modules selects hundreds of
test files; passing them all to one vitest spawn failed with E2BIG. Run them
in batches of PREMERGE_TEST_BATCH (default 150); every batch must pass, so
the gate and the premerge OK record are unchanged.
2026-11-12 16:18:42 -08:00
Neil 4aea1aa5be chore(test): ORCA_VITEST_MAX_WORKERS caps vitest workers on a loaded shared machine 2026-11-12 04:46:13 -08:00
Neil 3091a87385 Merge stablyai/orca main (52b618339f) into cloud/integration
Resolve 104 conflicts toward upstream's regrouped layout (rpc, profile-state, orca-profiles,
renderer lib/runtime moves) with cloud behaviour re-applied; repoint cloud imports at moved modules.
2026-11-12 03:30:25 -08:00
OrcaWinandOrcaWin c0d4b77a6f test: remove low-value mobile formatting and adapter suites (#41495)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-12 02:35:37 -08:00
OrcaWinandOrcaWin 831f655b1d test: remove low-value smoke and fixture assertions (#41493)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-12 02:25:47 -08:00
Neil d3b6609ac9 refactor(rpc): group root modules by defining owner (#41475)
* refactor(rpc): group root modules by defining owner

* test(orcad): include JSON CLI failures in launcher diagnostics
2026-11-12 02:18:19 -08:00
OrcaWinandOrcaWin cdfcd41056 test: remove low-value media registry and watcher cases (#41485)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-12 02:01:53 -08:00
OrcaWinandOrcaWin 4214d3da1c test: remove low-value input, media, and browser examples (#41484)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-12 01:52:38 -08:00
OrcaWinandOrcaWin eb16a6e351 test: remove low-value input and native decoder checks (#41481)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-12 01:30:04 -08:00
OrcaWinandOrcaWin 318bf64769 test: remove low-value catalog and shared checks (#41474)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-12 01:13:49 -08:00
OrcaWinandOrcaWin c32480d9e1 test: remove low-value shared and CLI checks (#41465)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-12 01:01:57 -08:00
Kelvin Amoaba 161919e32d feat(workspace-cleanup): scan and remove workspaces on paired and SSH hosts (#41454)
The cleanup scan ran only in desktop main over its own saved repos, so
workspaces on a paired server or an SSH host's orcad never showed up, and an
SSH host's retained source rows showed as "Remote unavailable" even while its
orcad served them.

Each host now runs the same scan over the repos it owns through a new
workspaceCleanup.scan RPC. The dialog merges every known host's answer,
names remote rows by this window's runtime host id so removal goes through
the existing worktree.rm route, cancels remote legs with their scan id, and
builds "Remote unavailable" rows from its catalog only when a host can't be
reached. Desktop main scans only the repos it shows.
2026-11-12 09:00:53 +00:00
OrcaWinandOrcaWin f70465cf3a test: remove low-value renderer adapter and projection checks (#41462)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-12 00:42:28 -08:00
OrcaWinandOrcaWin dac6392709 test: remove low-value CLI, shortcut, and relay checks (#41452)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-12 00:26:04 -08:00
Neil fb58871bdb refactor(claude): group root modules by defining owners (#41437) 2026-11-12 00:20:10 -08:00
OrcaWinandOrcaWin 9ee5ec9fa0 test: remove low-value account wrapper and routing checks (#41447)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-12 00:04:18 -08:00
Wooseong KimandKelvin Amoaba b4ca378c61 fix(agent-hooks): keep the Claude session model on hook status (#41058)
* fix(agent-hooks): keep the Claude session model on later hook status

SessionStart reports the model, but the Claude handler dropped it, so the
mobile composer chip stayed on "Model". Publish that model and retain it
when later lead and child events omit it.

* fix(agent-hooks): keep the Claude model across an Orca restart

Claude reports its model only on SessionStart. After a restart the listener's
lead state is empty, so the next hook dropped the saved model from the row.

* test: run the Claude model restart test in the node pool

* fix(agent-hooks): keep the Claude model when a terminal status row lands first

* refactor(agent-hooks): read the Claude lead model once to keep claude-events under the line limit

---------

Co-authored-by: Kelvin Amoaba <97001695+AmoabaKelvin@users.noreply.github.com>
2026-11-12 07:48:50 +00:00
OrcaWinandOrcaWin b4d87ff410 test: remove low-value worker and model inventory cases (#41439)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 23:47:13 -08:00
OrcaWinandOrcaWin 4dcf689fb2 test: remove low-value mobile and host policy suites (#41436)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 23:25:07 -08:00
OrcaWinandOrcaWin 0a0f8d5a9f test: remove low-value approval and cloud push suites (#41420)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 23:00:12 -08:00
Jinwoo Hong 4d50c440be perf(orchestration): read released worker output from its original instead of a saved copy (#41374)
* perf(orchestration): read released worker output from its original instead of a saved copy

* fix(orchestration): keep refusal codes on released chat reads and locate legacy remote transcripts

* test(orchestration): prune flaky-pattern baseline for removed archive tests; guard a cursor read

* fix(orchestration): keep locator fields when stripping copies; never let the optional receipt page block remote release

* test(orchestration): drop removed archive tests from the node-runtime test list

* refactor(orchestration): drop the background strip; old rows keep their saved copy and its reader

* fix(orchestration): give reference rows the empty copy fields older Orca reads, with a note

* test(orchestration): give the slow-exit release mock a stored archive body

* fix(orchestration): record a transcript reference only for agents the reader can open
2026-11-12 01:45:22 -05:00
Neil 176943e8fe refactor(mobile-tasks): group modules by concrete feature owners (#41410)
* refactor(mobile-tasks): group modules by concrete feature owners

* refactor(mobile-tasks): consolidate concrete owner imports

* refactor(mobile-tasks): point recording loaders at concrete owners
2026-11-11 22:40:18 -08:00
OrcaWinandOrcaWin affd908567 test: remove narrow parser, policy, and native projection tests (#41407)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 22:30:38 -08:00
HrithikandHrithik Saini 1b940ba30a fix(i18n): improve Korean translations for Undo, Quit, and Stop (#37042)
- auto.components.activity.clearCompleted.undo: '끄르다' -> '실행 취소'
- rendererRecovery.quit: '그만두다' -> '종료'
- components.native-chat.backgroundTasks.stop: '멈추다' -> '중지'
- auto.components.settings.terminal.search.stop: '멈추다' -> '중지'
- Add key overrides to locale-ko-key-overrides.json

Fixes #37042

Adapted from https://github.com/stablyai/orca/pull/37078 by @hrithiksaini99.
Reported and wording proposed by @Tomk2d in #37042.

Co-authored-by: Hrithik Saini <49943287+hrithiksaini99@users.noreply.github.com>
2026-11-11 22:17:09 -08:00
NeilandClaude e7d25df3ed feat(wsl): turn WSL hosts on by default (flag-on; owner decides) (#36501)
* feat(wsl): turn WSL hosts on by default; ORCA_INTERNAL_WSL_HOSTS=0, false, off or no turns them off

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

* fix(wsl): review follow-ups for WSL hosts on by default

- Off words also match when quoted (cmd.exe's set NAME="0" keeps the quotes).
- The refusal now says WSL hosts are turned off for this launch, not missing from the build.
- New preload test pins when the renderer gets the WSL hosts API.
- Unit tests no longer inherit the gate state an Orca terminal publishes.

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-11 22:03:29 -08:00
Neil 46b225e473 chore(links): point website, docs and download links at orca.dev (#41376)
The site now lives at orca.dev; the old onorca.dev and www.onorca.dev hosts
redirect there. Linking to orca.dev directly skips that redirect.

Only page links change. Service hosts, sign-in and relay endpoints stay as they are.
2026-11-11 21:50:37 -08:00
Neil b9e3912ff8 Call orca.dev for feedback, plugin lists and update notes; accept orca.dev share and download links (#41380)
* chore(endpoints): call orca.dev for feedback, plugin lists and update notes

The site moved to orca.dev. Feedback, connection diagnostics, plugin install
stats, the plugin kill list, update nudges and the changelog feed now use
orca.dev, as do the diagnostics token URL baked into builds and the release
download mirror (downloads.orca.dev). The old hosts serve the same paths,
so released builds keep working.

Skill share links on share.orca.dev are accepted, and the mobile scanner
recognizes the orca.dev Android download code. The old hosts stay accepted.

* chore(ci): leave the release JavaScript benchmark workflow unchanged

Editing it triggers the benchmark, whose parity check currently fails on
arm64 because max-quality brotli output for the mobile page differs by
architecture. The benchmark only needs some diagnostics URL, and the old
host still serves it.
2026-11-11 21:50:31 -08:00
Neil a919371cee refactor(codex-accounts): organize concrete domain owners (#41388)
* refactor(codex-accounts): organize concrete domain owners

* test(codex-accounts): retire vacuous account selection case
2026-11-11 21:49:43 -08:00
OrcaWinandOrcaWin 86f23bbb6b test: remove low-value policy and parser samples (#41397)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 21:35:14 -08:00
OrcaWinandOrcaWin 9a04aa89ef test: remove 56 low-value presentation, CLI, and reload tests (#41389)
* test: remove presentation and command-selection inventories

* test: remove CLI and display projection inventories

* test: remove browser reload projection suite

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 21:08:44 -08:00
Neil e902c9a65b refactor(workspace-layout): organize concrete domain owners (#41350)
* refactor(workspace-layout): organize concrete domain owners

* test(layout): retire obsolete legacy-leaf publication setup
2026-11-11 20:54:34 -08:00
OrcaWinandOrcaWin bbe22681c2 test: remove notification, icon and native policy inventories (#41375)
* test: remove notification and native policy inventories

* test: remove icon projection samples and tray suite

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 20:54:07 -08:00
OrcaWinandOrcaWin bedb2bbaf1 test: remove low-value journal, input and capture examples (#41368)
* test: remove low-value journal and smart-key samples

* test: remove low-value journal, input and capture examples

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 20:32:02 -08:00
OrcaWinandOrcaWin 2d0f453776 test: remove low-value skill, host, and WSL suites (#41358)
* test: remove low-value skill and host-environment suites

* test: remove WSL notice and status mapping samples

* test: record WSL example coverage retired from broad gates

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 20:04:37 -08:00
Jinjing b80ac94ba4 fix(runtime): hold tui-idle until a cold-starting Claude has painted (STA-2380) (#40539)
* fix(runtime): hold tui-idle until a cold-starting Claude has painted (STA-2380)

A shell auto-title (oh-my-zsh preexec) names the pane `claude` the moment
the command execs. Claude's `idle_title` rule counts that bare name as weak
idle once output has been quiet for 3s, so a Claude that took >3s to draw
its first frame settled `terminal wait --for tui-idle` on a blank screen.
`dispatch --inject` then pasted into a TUI that had not mounted yet and the
prompt was lost.

Name-only idle lanes (agent rule verdicts that require quiet, and the
sustained-title lane) now also require that the running command has painted
something since the shell's OSC 133;C command-start marker. Shells without
the marker keep today's behavior.

* fix(runtime): corroborate Claude's name-only idle with its own composer marker (STA-2380, C1 F1)

Orca's zsh OSC 133;C hook is first in preexec_functions, so a later user or
framework preexec hook (zsh-you-should-use, a custom echo) prints after the
command-start marker and before Claude runs. The any-visible-byte paint latch
counted that text as Claude's paint, so a silent cold start under such a hook
still settled tui-idle ready-weak on the shell's bare `claude` title.

For agents whose worker start already trusts their composer marker (Claude),
"painted" now means that marker (`❯`+NBSP after DECSET 2031, which no shell
sends) arrived since the command started. Other agents keep any-byte paint;
markerless shells and output gaps keep the permissive default.

Evidence: a real-zsh live-shell test under the production wrapper with
oh-my-zsh title-only, p10k/starship-style silent, and you-should-use-style
printing hooks, replayed through the real wait; runtime tests for the hook
text, a boot banner, the positive bare-title + composer path, and worker-start
readiness plus brief delivery timing.

* fix(ci): route command-paint attribution sources to shell_contracts; attribute live-shell bytes by stream offset (STA-2380, C2 F1/F2)

- pr-shell-contract-prefixes: the live-shell test, terminal-command-paint.ts,
  tui-idle-evidence-source.ts and draft-paste-ready-scanner.ts route to the
  shell_contracts job; a routing test reads the job's step from pr.yml and
  asserts every listed test routes there.
- tui-idle-zsh-preexec-hook-order.live-shell.test: locate the DECSET 2031
  anchor by offset in the accumulated stream, split a straddling read, carry
  pending escapes across the shell/agent halves, and assert attribution is
  invariant under coalescing and 3-byte re-chunking.
- terminal-command-paint: disclose the accepted trade-off (a known Claude with
  marker history but no supported composer signal times out; markerless shells
  and output gaps still fail open; no version cutoff claimed).

* test(ci): stream-offset launch-order proof, route tui-idle-evidence.ts, parse the whole shell-contracts step (STA-2380, C3-1/2/3)

- live-shell test: assert the launch order on the joined bytes by stream
  offset (133;C, then the user hook's output, then the agent's anchor and
  composer); no read-boundary or timestamp assertions remain. Re-chunk
  cases add a split anchor and a shell-tail/agent-start coalesced read.
- pr-shell-contract-prefixes: route tui-idle-evidence.ts, the readiness
  evaluator the live-shell replay exercises.
- routing ratchet: read the step's run script through the YAML parser so
  a blank line or later command cannot truncate it; cross-check against
  the real-shell tests UNIT_EXCLUDE drops so a dropped entry fails rather
  than a smaller count; fixture tests for blank line, exact list, missing
  step.

* test(ci): answer compinit's insecure-directory prompt in the zsh preexec live-shell test (STA-2380)

Ubuntu's global zshrc runs a plain compinit, which on CI runners stops at
"Ignore insecure directories and continue [y] or abort compinit [n]?"
before zle exists, so the stand-in never launched and the shell-contracts
job failed with "no composer frame from the stand-in". Answer the prompt
with y as zsh-startup-hook-pty-harness.ts does. The prompt bytes precede
Orca's OSC 133;C marker, so stream-offset attribution is unchanged.
2026-11-11 19:57:53 -08:00
Brennan Benson 79cf868097 Capture executing stacks and machine state for hangs (#41027)
* Preserve bounded diagnostics for main-thread stalls and observer gaps

* Use a typed file-read fault injection in watchdog coverage

* Record reviewed incident-only watchdog file operations

* Clarify watchdog snapshot types and validated parser conversions

* Place validated object assertion rationale at its conversion

* Capture executing stacks after main and renderer hangs

* Preserve hang capture progress through late cleanup and reporting

* Publish renderer hang baseline before collecting stacks

* Service capture cleanup in packaged watchdog smoke

* Release native capture after dependency load failure
2026-11-11 19:48:48 -08:00
Brennan Benson 3f84308ec1 Revert orca chat list/read/send/wait (#40836) and its perf repair (#41129) (#41241)
* Revert "Make chat wait check the chat's work state instead of reading its history every second (#41129)"

This reverts commit 9a10464bec.

* Revert "feat(cli): read, message and wait on agent chats with orca chat list/read/send/wait (#40836)"

This reverts commit c2e6ebbf0b.
2026-11-11 19:36:32 -08:00
OrcaWinandOrcaWin 333febd77b test: remove narrow mobile, provider, and utility suites (#41342)
* test: remove low-value mobile classification and wiring cases

* test: remove narrow provider identity and utility suites

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 19:22:20 -08:00
OrcaWinandOrcaWin 1cc94fdfd6 test: remove low-value workspace and launch suites (#41336)
* test: remove low-value workspace and launch coverage

* test: prune removed orphan cleanup timer baseline

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 19:03:54 -08:00
OrcaWinandOrcaWin 6f2e3bde15 test: remove low-value GitHub and launch-default coverage (#41326)
* test: remove low-value GitHub client projections and inventories

* test: remove launch default projection suites

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-11 18:20:23 -08:00