Repository navigation
sync: upstream/main → fork-main (72 commits through 0c42285eb2) - #29
Merged
Merged
Conversation
… the barrel (stablyai#27966) Co-authored-by: m4air <[email protected]>
…7967) Co-authored-by: m4air <[email protected]>
… bridge serves (stablyai#27939) * fix(ssh): never start a hidden orcad shell for a pane the legacy relay bridge serves * fix(ssh): a skipped bridged activation still supersedes an earlier tab's pending focus * fix(ssh): a click on a whole mirrored tab never activates its bridged pane on orcad * fix(ssh): load the bridge pane list lazily from tab activation --------- Co-authored-by: m4air <[email protected]>
…#27969) Co-authored-by: m4air <[email protected]>
…7975) Co-authored-by: m4air <[email protected]>
) Co-authored-by: m4air <[email protected]>
…blyai#27981) Co-authored-by: m4air <[email protected]>
…e-exports (stablyai#27986) Co-authored-by: m4air <[email protected]>
… shims (stablyai#27992) Co-authored-by: m4air <[email protected]>
…tablyai#28001) * fix(serve): save Codex auth before a headless serve update restart * refactor(updater): keep the update-restart step in its own module so auth mocks still apply --------- Co-authored-by: m4air <[email protected]>
…or install a server (stablyai#28003) * fix(serve): explain what to run when an SSH host's orca cannot start or install a server * fix(serve): keep an app launcher on PATH usable from a server terminal; share the app-CLI check --------- Co-authored-by: m4air <[email protected]>
…from (stablyai#28002) * fix(linux): keep extracted AppImage copies that something still runs from New builds extract into a namespace that pre-lease builds never prune. Pruners now delete a generation only when no same-user process runs from it and no lease names a live process (pid, start ticks, boot id). Co-Authored-By: Claude <[email protected]> * fix(linux): skip non-dumpable processes in the AppImage residency scan Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: m4air <[email protected]> Co-authored-by: Claude <[email protected]>
…the next update (stablyai#28010) * fix(updater): clear a cancelled macOS install request before staging the next update * fix(updater): match only Orca's ShipIt and recheck owners right before clearing --------- Co-authored-by: m4air <[email protected]>
…pp (stablyai#28007) * feat(serve): run the --supervise supervisor from a copy outside the app * fix(serve): record supervisor copy users beside the copies so a cleanup never races a fresh copy * fix(serve): remove a partial supervisor copy when copying fails * test(serve): skip the unreadable-copy case where mode 000 does not block reads --------- Co-authored-by: m4air <[email protected]>
…progress (stablyai#28015) Direct AppImage serve now unpacks its stable copy once, under one overall deadline that also bounds the registration lock wait and both extraction attempts, prints progress to stderr, and refuses fast when the private cache is not writable, not executable, or too full. Co-authored-by: m4air <[email protected]> Co-authored-by: Claude <[email protected]>
…es are gone (stablyai#28011) * fix(daemon): stop giving new terminals to a daemon whose AppImage files are gone On Linux AppImage, a terminal daemon can outlive the mount it runs from and keep answering health checks until it SIGBUSes. Orca now reads the daemon's /proc exe link and mount table at adoption: an idle severed daemon is replaced; a busy one is kept for its sessions but quarantined, so fresh terminals use the local provider and a healthy RPC never re-admits them. Status and a verified restart are available over RPC and as `orca terminal-daemon status|restart`. Co-Authored-By: Claude <[email protected]> * fix(daemon): lift the severed quarantine once a new daemon owns the endpoint Co-Authored-By: Claude <[email protected]> * fix(daemon): a severed-daemon restart counts fallback terminals and never stops a replacement The restart re-checks the authenticated endpoint owner before any teardown and again at shutdown, and never falls back to a pid kill when targeted. Status counts the local fallback terminals the restart also ends. Co-Authored-By: Claude <[email protected]> * chore(daemon): merge duplicate import Co-Authored-By: Claude <[email protected]> * fix(runtime): classify the terminalDaemon RPC namespace as host-owned Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: m4air <[email protected]> Co-authored-by: Claude <[email protected]>
…files are gone (stablyai#28021) Co-authored-by: m4air <[email protected]> Co-authored-by: Claude <[email protected]>
…blyai#27626) CodeBuddy spawns hooks registered with shell: 'powershell' as a bare `pwsh`, so on Windows without PowerShell 7 every hook failed with spawn pwsh ENOENT and the failed UserPromptSubmit hook blocked prompts. Register CodeBuddy's hooks the way Claude's are: the managed .cmd path on cmd-safe profiles (runs under CodeBuddy's Git Bash or Windows PowerShell default shell) and the absolute powershell.exe encoded launcher otherwise. The next install rewrites existing registrations. Fixes stablyai#27182 Co-authored-by: Orca Worker <orca-worker@localhost>
…re (stablyai#27755) * fix(browser): end a page's mount admission whenever it leaves the store A background-opened page's start admission was released only by the two close actions, so a bulk worktree purge (listing refresh, repo or folder removal) dropped the page while its admission stayed in the set. Release it in the one cleanup every page removal already runs through (destroyRemovedBrowserWebview), and drop the per-path copies. STA-7436 * refactor(browser): one removed-page sweep shared by the app and its test Moves the store sweep that destroys removed pages into destroyWebviewsRemovedFromStore so the admission regression test runs the same code the app runs, and adds an eviction case. * test(browser): assert pages were admitted before the eviction case
…ca (stablyai#27731) * perf(notifications): save mobile dismissal history off the main thread Every agent notification recorded its id in mobile-notification-dismissals.json through the secure-file writer. On Windows that writer runs about five synchronous icacls launches per write, so each notification froze every Orca window (STA-9692). The file holds notification ids, sequence numbers and session ids, not credentials, so it now goes through the existing AtomicSnapshotWriter: async temp-plus-rename, mode 0600, bursts coalesced into one write of the latest entries. Memory stays authoritative, so delivery and retirement are unchanged. The pending write is flushed in the quit barrier after chat and RPC teardown, and in the pre-relaunch hook, since renderer relaunch exits without the quit pipeline. * perf(notifications): flush dismissal history when a headless host shuts down orcad never runs the desktop quit barrier, so its cleanup list awaits the pending dismissal write after RPC stops. * fix(persistence): drain a snapshot write requested just after a drain ends AtomicSnapshotWriter cleared its pending-write promise one microtask after the drain loop saw no more requests. A write() in that gap set writeRequested, got the settling promise back, and nothing drained it, so the newest bytes stayed unwritten and waitForPendingWrite() (the dismissal store's flush) resolved without them. The drain now clears the pending promise in the same tick its loop exits, on success and failure, so a later write() always starts a new drain. * test(notifications): flush dismissal writes before deleting temp state dirs Dismissal history now saves asynchronously, and the writer recreates its directory before each write. Tests that deleted their temp dir with a write still pending left recreated dirs behind in the system temp folder and could race the delete on Windows. They now await the controller's flush first. * perf(notifications): close dismissal history at committed exits The shutdown flush only waited for writes already queued. A notification recorded after it (orcad cleanups still running, or the 150 ms before a renderer relaunch calls app.exit) started an async write the exit dropped, so the phone could keep an alert the desktop could no longer withdraw. The store's flush() becomes close(): it waits for the pending write, and every later record saves synchronously through the snapshot writer's existing writeSync (plain fs, no icacls; a failure only warns). It is called only where the exit can no longer be vetoed: the will-quit teardown, a new exit-only hook that app:relaunch runs before app.exit(0) (restart and profile switches share onBeforeRelaunch but quit through will-quit), and orcad's cleanup after RPC stops. The quit test now holds chat teardown and RPC stop and proves the close starts only after both settle, in either order. The orcad push-startup runtime mock gains the method the entry now calls. * fix(notifications): bound the dismissal close before a renderer relaunch app:relaunch waited on the dismissal store's close with no limit, so a stalled userData disk left Restart stuck on "Restarting…" with a half-quit app saving synchronously. The close now races a 2 s cap through the existing settleWithinMs helper, the same cap the restart path's auth preservation uses, and logs when it gives up. * test(notifications): keep async dismissal writes under test between reads Mid-test disk reads used closeDismissals() as a barrier, which switched every later record to the exit-only synchronous path. The store gains a non-closing flush() (close() = mark closed + flush), exposed on the controller as flushDismissals for tests; mid-test barriers use it, and close stays only where a test simulates an exit or teardown. Also notes why the writer's pendingWrite assignment is safe, renames a store test to what it covers, and groups the orcad cleanup-order test under a describe.
…unches (stablyai#27756) * ci: ratchet synchronous child-process launches in main and shared code The Electron main process freezes every window while a synchronous child process runs, and on Windows each launch is slow because antivirus scans it. Nothing stopped new synchronous launches from landing in main-process code, and the spawn observer behind ORCA_MAIN_THREAD_DIAGNOSTICS only saw async spawns, so the worst blocks were invisible to it. Ratchet: check:main-sync-spawn-ratchet parses production src/main and src/shared files (test-only paths excluded) and fails when a file not in config/main-sync-spawn-baseline.txt reaches execFileSync, spawnSync or execSync from child_process, runProcessSync from @orca/process-host, or one of the synchronous secure-file writers (they run icacls on Windows). Named, aliased, namespace, default, require() and import() forms count. A baseline entry whose file no longer launches synchronously fails as stale, so the list can only shrink. It runs in lint and in the PR static-analysis job next to the process-host import check. Observer: runProcessSync now reports to the spawn observer, timing the whole call (that is how long the thread was stuck) and reporting from a finally so failing, throwing and timed-out children are counted too. Runtime behavior is unchanged except that the diagnostics observer now sees synchronous launches; with no observer registered the sync path pays one extra branch. * ci: count sync launches per file and gate the repo's sync wrappers The sync-spawn ratchet only tracked which files launched synchronously, so a file already on the list (wsl.ts, win32-utils.ts, git-exec-file.ts) could add more launches unnoticed, and new callers of the repo's own synchronous wrappers passed CI. The baseline now stores a per-file count of uses, in the same format as the focus-read ratchet: a rise or a new file fails, a lower or zero count fails until `pnpm check:main-sync-spawn-ratchet --prune` lowers it, and --prune never raises an entry. Every value reference to a gated function counts (call, hand-off, alias and its uses, re-export); imports alone count nothing. Gated wrappers: gitExecFileSync (and the git/runner re-export), restrictWindowsPathSync, hardenSecurePath when called with sync: true, grantDirAcl, getWslHome, listWslDistros, wslUncDirectoryExists, isWslAvailable (and the wsl.ts re-export), isPwshAvailable. Their 18 current caller files join the baseline. Failure messages now give advice per family: the async process-host API for child-process launches, the async twin for wrappers, and for the secure writers a note that no async secure writer exists yet, so the sync one stays and must never become a plain write (that drops the Windows ACL hardening). Also refresh two stale blockMs descriptions and drop a no-op line from the spawn-observer "stays silent" test. * ci: count hardenSecurePath unless visibly async, and tighten ratchet tests hardenSecurePath was counted only when `{ sync: true }` was written inline, so moving the options into a variable or a spread dropped the count and the check then asked for a prune. It now counts every use except a call with no options or a spread-free object literal whose `sync` is absent or false. Also: resolve backslash paths in the importing file as well as the specifier; still visit heritage and instantiation expressions (`extends mixin(fn)`, `fn<T>`); state the reference-only counting limit; and point the secure-writer advice at raising this file's baseline count. Tests cover the hardenSecurePath shapes, the alias chains that need the fixpoint loop, and a prune that must not raise a grown row. * test(ci): pin the main sync-spawn ratchet background step * fix: count secure hardening calls with spread arguments
… load (stablyai#27754) * fix(browser): end a background page's mount admission after its first load A page opened in the background is admitted so its guest starts, but the admission was only released on close. Its overlay stayed laid out (invisible) in the visible workspace and its browser chrome never unmounted in hidden workspaces. Release the admission when the guest's first load settles, so the normal active-page and paint-retention rules own the page afterwards. STA-7435 * test(browser): pin how a released mount admission parks a background page Covers the overlay contract the release relies on: in a hidden worktree the page's browser chrome unmounts once the admission ends; in the visible worktree it stays mounted and only its slot stops being laid out. Also corrects the page-record comment that still said background tabs sit idle until shown.
…ete (stablyai#27625) * fix(browser): settle WSL tunnel reads so responses past 256 KiB complete The WSL execution route hands the deferred socket a credit-accounted tunnel duplex, but the deferred socket forwarded its data without settling it, so the relay's 256 KiB receive window was never replenished and larger responses stalled. Settle each chunk once tunnel-socket listeners have taken it; their pause() still holds the source, so unsettled bytes stay bounded by the window. Fixes stablyai#27356 * test(browser): bound the WSL backpressure wait so a regression fails instead of hanging * test(browser): keep unchanged WSL route test lines in their original form --------- Co-authored-by: Orca Worker <orca-worker@localhost>
…i, dsh, Kiro, Droid and Command Code (stablyai#27717) * perf(hooks): register direct .cmd hooks for Gemini, DSH, Kiro, Droid and Command Code on Windows On a cmd-safe profile path these agents now register the managed .cmd path itself instead of a `powershell.exe -EncodedCommand` launcher, so each hook event no longer pays a second PowerShell start-up on top of the runner's own shell. Profiles the bare path cannot carry (spaces, non-ASCII, UNC) keep the encoded launcher. Same pattern as Claude (stablyai#18875) and Muse (stablyai#26755). Refs stablyai#20913 * refactor(hooks): one Windows batch-hook helper and one payload-delivery table - Add wrapWindowsBatchHookCommand (bare .cmd path, encoded launcher otherwise) and use it for Muse, Gemini, DSH, Kiro, Droid and Command Code. - Fold the five agents into windows-hook-payload-delivery.test.ts as rows run under each vendor's shell, from a plain and a spaced profile, with a stale encoded registration seeded per row; drop the separate runner suite and its CI list entries. - Replace the Windows-only per-agent registration tests with ones that stub process.platform, so they run on every CI OS. - Fix stale launcher, helper and DSH comments. Refs stablyai#20913 --------- Co-authored-by: Orca Worker <orca-worker@localhost>
* Show recorded turn diffs inline in native chat * Resolve only selected turn diff tool pairs
…view (stablyai#27184) * feat(terminal-pane): header button resumes the CLI session in a new native chat The pane header's "Show chat view" toggle is replaced by the tab menu's "Resume in New Native Chat" move. The Session History lookup runs on click, so an always-visible header never scans in the background. A pane already in chat view keeps its "Show terminal" way back. * fix(terminal-pane): fold the resume gate into the pane's existing store subscription Keeps a mounted terminal pane inside its pinned store-listener budget. * fix(terminal-pane): resume the pane's own conversation, open the chat that already holds it The header "Resume in New Native Chat" button gated on chat-view eligibility but looked up the tab's best conversation, so a Grok pane beside a Claude pane resumed the Claude conversation, and Grok/OpenCode panes showed a button that always failed with a "try again" toast. - Map one pane to its conversation with the tab-title mapping narrowed to that pane (same sources, same Claude/Codex rule), for both the button's visibility and its click; this also keeps the button after the agent exits, as the tab menu does. - A conversation a native chat already holds now matches its history row; the move's gate still refuses it (tab menu unchanged, pinned in the parity test), and the button opens that chat. - Distinct messages: nothing saved yet, cannot be resumed in a native chat, or the existing generic failure. The click forces a fresh scan like the panel's Refresh does. - Call the plain resume launch directly; drop the shared actions module and restore the tab menu. - A tab closed during the lookup no longer opens a chat. * fix(terminal-pane): hide Resume in New Native Chat where the chat route is refused On a local workspace whose project runs in WSL (or needs runtime repair), the header button showed on Claude/Codex panes, but native chat cannot launch there, so every click said the conversation can't be resumed while the tab menu offered nothing. The button's visibility now also asks the same launch-route check the Session History row gate uses (structuredAgentSessionLaunchFeasible). * fix(terminal-pane): offer the header resume only while the pane's agent is running The tab menu now offers Resume in New Native Chat only while the tab's agent runs (stablyai#27520). The header button still found its pane's conversation from the retained or sleeping record an exited agent leaves behind, so it stayed after exit. The pane lookup now honours the same runningAgentsOnly option, and both the button's visibility and its click pass it. * refactor(terminal-pane): the header's pane lookup reads only the running agent Every caller of resolvePaneAiVaultTitleRequest asked for running agents only, so its retained and sleeping sources were never read. The pane lookup now maps just the pane's live agent, and collectAiVaultTitleRequests returns to main's shape, sharing only the live-agent mapping with it.
…was working (stablyai#27821) * fix(native-chat): light the tick of a message sent mid-turn on the message rail A message sent while the agent is working joins the running turn's key, and the rail lit ticks by turn key, so that message's tick never lit: not at the bottom, not after clicking it. Light the newest tick at or above the read row within its turn instead. * fix(native-chat): light the nearest tick above the read row, and keep a clicked tick lit Review round 1. The within-turn walk stopped at a row of no turn landing in the running turn, and could return a tick from the turn above. The lit tick is now the newest loaded rail item at or above the row at the fold, falling back to its turn key above the first loaded one (that prompt is in the outline). A jump that cannot bring its row to the top lands clamped at the bottom, and the settled position report then lit the last tick instead of the clicked one. A clicked tick now stays lit until the reader scrolls or starts another navigation (the existing reader-input path), or the set of prompts changes. Rail picks and the start of every navigation move into their own hook, as the list is at its line limit. * fix(native-chat): hold a clicked rail tick by position, not by reader input Review round 2. Releasing the clicked tick on reader input needed every scroll source to report itself, and several do not (scroll-to-top button, inline diff reveal, prompt refold, selection-drag autoscroll); releasing it whenever the prompts changed dropped it on every head trim of a long live session. The hold now records where the jump settled, at the first idle read after the click, and keeps the clicked tick lit while the view rests there. Any movement, whatever caused it, releases it, as does the clicked message leaving the rail. Drops the navigation wiring and the hook it was moved into. * fix(native-chat): anchor a clicked rail tick's hold to its row on screen Review round 3. Holding while scrollTop stayed put recorded the reader's spot when they kept scrolling within the idle period of the jump, kept an off-screen row lit after the viewport shrank, and let go when a row above re-measured late and shifted scrollTop with the content. The hold now records how far below the viewport top the clicked row settled, and keeps the tick lit while the row is still on screen at that offset.
* [CI] Remove wall-clock waits and stabilize GC fairness check * [CI] Include the final GC timer gap in the fairness check * [CI] Advance test clocks and preserve cleanup checks
…stablyai#28045) * fix(chat): name orchestration worker chats after their task title Worker chats were skipped by chat naming and stayed "Claude Chat". Name them from the task they were started for instead, with no model call. * Fix legacy worker chat titles without prompt generation * Remove unrelated lockfile dependency
…result (stablyai#27580) * fix(native-chat): keep a 'chats resumed' bottom-bar entry until the result is seen After every chat resumed, the bottom-bar entry vanished the moment the run finished, leaving a fading toast as the only way back to the list. Show 'N chats resumed' while a finished run's summary has not been shown yet, reusing the run's existing finishedViewShown flag so the entry ends exactly when the summary is viewed and closed. * Keep resume results until their rows are seen * Retire viewed empty resume runs * Show finished resume rows after in-flight view settles
… desktop's logic (stablyai#27936) * fix(native-chat): list not-sent rows at their journal places The shared projection appended rows the host recorded but never delivered after every other row, leaving the reader to sort them. A reader that draws the list as given showed an old not-sent message under newer turns. Merge them in at their journal places, after the stop rows are built, so the list is already in order. The desktop sorts by the same order, so what it draws is unchanged. * refactor(native-chat): move the recorded-rejection line into shared words The desktop's words for a message the host recorded and then rejected now live beside the other rejection words, returning notice parts each client renders its own way, so the phone can say the same thing. The desktop calls it with the same inputs; its words are unchanged. * refactor(native-chat): one projection behaviour for rejected rows Every reader now draws a message the host recorded and then rejected where it was sent, marked not sent, so the rejectedInPlace option goes. The phone was its last off caller apart from the host's conversation outline, which now leaves not-sent rows out itself; a test proves the outline is the same as if the rejected message had never been sent. * fix(mobile): show a not-sent message in place with the reason under it The phone now draws a message the host recorded and then rejected where it was sent, as the desktop does, with one small line under the bubble in the desktop's words. The line is built from the journal the view already receives; when a start-failure or sign-in row already gives the reason, it says only that the message was not sent. The load-earlier header moves to its own file to keep the view under its line limit. * fix(mobile): a send the host recorded is never handed back When the send's own reply said the host recorded the message and then rejected it, the phone put the text back in the composer with a banner, though the host and the desktop keep it in the chat. A recorded send now settles like any other: its row draws it in place as not sent (or its kept card holds it), and the composer stays empty. The banner's failure-fact plumbing, fed only by that branch, goes with it; the transcript states the sign-in guidance once. * fix(mobile): keep each structured send on the shared optimistic list Once a not-sent row stays in the chat, matching a pending bubble by its text breaks: resending the same words after a not-sent message never reached the count the bubble waited for, so a stray copy stayed, and an acknowledgement lost on that resend showed a false "Delivery unconfirmed". A structured send is now one record, kept by the structured session under the id it is sent with. Three parts match the desktop's sender: the id, the drawing (the shared projection draws it at the tail until the host's row under that id lands, in the same pass) and the settle rule (the host's own record of it, a submission, a card, or a card's hand-off, drops it by the one rule the desktop now shares). The rest stays the phone's own: the bubble shows once the host accepts the send, not from the tap; a send whose answer was lost is held undrawn and says "Delivery unconfirmed" only if its deadline passes first, instead of going back to the composer; records are kept whether or not a chat view is open; and one send in flight is the composer's rule, not the sender's. Its photo is kept under the row id it shares with the host's row, so it shows on the bubble, the landed row and a not-sent row. The drafts' text matching, with its older queued-card matching, now serves only terminal-backed chats, whose transcripts carry no ids. * fix(native-chat): merge not-sent rows by the transcript order alone The merge kept a rule for rows with no journal place that no caller reaches and that the desktop's sort does not have; drop it, and say what merging after the stop rows actually keeps. A test pins that the list the phone draws as given is already in the desktop's sorted order, with a moved stop row, a retry run, a cut-turn notice, a held card and two not-sent rows. * fix(mobile): draw the not-sent line as the desktop does Red and capped to the bubble's width, like the desktop's line and the phone's own returned-card caption, and only when there is a notice: the row had a second, unreachable source of words. A send a Stop took back is no failure, so it no longer rebuilds the notices on every streaming frame.
…lyai#28078) * fix(sidebar): stop workspace metadata icons brightening on hover The link, notes and provenance icons on a sidebar workspace row only open the details hover card; clicking them does nothing extra. The hover colour made the link icon look clickable. * chore: remove unrelated lockfile changes
…27608) * Share any HTML file from the editor and the remote preview HTML could only be shared as an artifact from a local file:// browser tab. The editor offered Share only for Markdown, and the document preview that renders HTML on SSH and paired hosts had no Share at all. The editor now shares HTML files too, and the document preview's toolbar gets the same Share button, reading the page from its owning host. Both use one source key per file per host, so either surface finds the link the other published. Co-Authored-By: Claude <[email protected]> * Share every file under one key per host, and preview Share from its grant's host The editor, the rendered preview and a local browser tab each built their own share key, so one file could publish to several links: a Windows path spelled C:/ in one place and C:\ in another, and the preview keyed from whichever host the workspace resolved to at render time, not the host it was reading from. One key function now serves every surface, with main's formats (local path, the CLI's SSH key, ['editor', env, host, path] with the 'remote' fallback) and Windows drive/UNC paths spelled with backslashes. The preview's grant handle keeps the location it was minted for. Share reads the page through that location and keys from it, so a later host change can't move either; an SSH grant keeps its connection id, so its read fails closed instead of reading a local file. Publishing prepares the request once per click, before sign-in and the auth retry, so a retry publishes what the user clicked Share on. Co-Authored-By: Claude <[email protected]> * Pin preview Share key parity with the editor for server-proxied SSH workspaces A preview of an SSH workspace a paired server proxies mints its grant on that SSH target, so it already keys the file the same way the editor does; the new test locks that in. Also corrects the SSH read comment: the connection id is kept because dropping it would read the path on this machine. Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
stablyai#26116) Each native Claude and Codex chat now has its own permission mode (Ask for approval, Accept edits for Claude, Approve for me, Full access), shown and changed from a button right after "+" in the composer. A change takes effect before the next message: the agent restarts quietly and resumes the same conversation, never interrupting a reply or background work. New chats start from Settings → Chat → Permissions, which is seeded once from Agent Permissions. The mode is stored as an ordinary chat option, and the restart reuses the existing "replace the agent before the next message" step.
…yai#27935) * chore: upgrade terminal dependencies to the matching payload betas * test: harden xterm payload contract, align mobile pins, fix serialize-at-ref across version bumps - Cover foreign-payload replacement and the shared blank-cell reset in the installed image payload contract (both mutants previously survived). - Bump mobile's xterm, webgl and unicode11 pins to the root's betas. - Resolve the ref's own serialize version and patch so the differential fuzz baseline builds across a version bump. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…#26152) * fix(mobile): make message and markdown source copy reachable * fix(mobile): keep copy failure feedback during streaming * fix(mobile): complete source copy on paired web pages * Align mobile source Copy controls with desktop * Update chat status test for icon-only Copy * Preserve literal source when copying own messages * fix(mobile): show a message's copy button only after tapping it Like desktop's hover-only copy, the chat message copy button stays hidden until the message is tapped; another tap hides it. The tap target is not a single accessible element, so screen readers still reach the text inside. * fix(mobile): a held press on a message selects text without toggling Copy On iPad the release of a long-press selection, or of a selection-handle drag, also counted as a tap and toggled the message's copy button. Claiming the long press keeps only quick taps as toggles; native selection is unaffected. * test(mobile): load the web clipboard in the copy-button test the way other tests do vi.importActual with a relative path resolved from the mocker under CI's runner and failed to find ../platform/clipboard.web; a plain import() in the mock factory resolves from the test file.
) * fix(layout): save terminal rows in the tab groups' order Co-Authored-By: Claude <[email protected]> * test(e2e): read the paired retention heap after two collections Co-Authored-By: Claude <[email protected]> * test(e2e): fail the paired retention check when the heap cannot be read Co-Authored-By: Claude <[email protected]> * fix(layout): name the headless flow behind the row-id group fallback Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
…ook.exe (stablyai#27719) * perf(claude): run the Windows Claude hook as a native orca-hook.exe Each Claude hook event on Windows started cmd.exe (plus the user's cmd AutoRun) and then curl.exe on top of the agent's own shell. A small signed Rust binary now does the same synchronous POST in one process, under Git Bash, PowerShell and direct CreateProcess alike. - native/windows-agent-hook: std-only crate, same contract as the .cmd hook (prints {}, env guards before stdin, endpoint re-read, 0.5s/1.5s caps, waits for the listener reply, always exit 0). Its installed file name selects the agent profile, so the registration stays a bare path. - Packaged as resources/bin/orca-hook.exe (SignPath signs it with the other inner PEs); afterPack fails on a missing or wrong-machine binary. - Claude install copies it verbatim to ~/.orca/agent-hooks/claude-hook.exe (temp + rename, running copy moved aside) and registers it; it falls back to the .cmd hook when the bundle is missing, unsigned or cannot be copied. Only Claude opts in, via windowsNativeHookExecutable. - The managed-command matcher sweeps .exe entries alongside .cmd/.ps1/.sh. - The CLI launcher and hook builds share windows-rust-executable-build.mjs, which now also checks the PE machine. Refs stablyai#20913 * fix(build): publish native Windows binaries atomically so parallel builds cannot collide The Windows CI lane runs every orca-hook.exe suite in one vitest invocation, each building through build-windows-agent-hook.mjs. The build copied straight onto native/windows-agent-hook/.build/orca-hook.exe, and CopyFile opens its destination unshared, so a second build (or a scanner still holding the fresh image) failed with EBUSY. - windows-rust-executable-build.mjs skips the publish when the output already has the built bytes, otherwise stages a per-process temp file and renames it over the output, retrying briefly while another handle holds it. - The test fixture hands each suite a private copy of the build output, so no suite reads or starts the shared file while another build replaces it. Refs stablyai#20913 * refactor(claude): simplify the native Windows hook to one Claude binary Review follow-up on the native hook (stablyai#20913): the same behaviour with less machinery. - The binary is built, shipped and installed as claude-hook.exe, so the installed name matches its PE OriginalFilename. It is Claude-only, so the file-name profile table and the per-agent opt-in flag are gone; the registration is gated by the existing Claude-only usesWindowsEntry check. - Install and refresh reuse writeManagedScript / refreshManagedScriptIfPresent (now accepting bytes): temp file, rename, skip when identical. A copy whose hook is still running cannot be replaced; install then registers the .cmd hook and refresh keeps the old build until a later start, instead of the rename-aside and *.retired sweep. - The install-time Authenticode-presence check is dropped. Release CI now requires resources\bin\claude-hook.exe to be signed (release-cut and the signing rehearsal), next to resources\bin\orca.exe. - getStatus counts either Windows form through findManagedEventHookForms in hook-settings.ts, replacing managed-event-hook-status.ts. - Rust: plain Claude constants, one endpoint-file lookup (last assignment wins, as under `call`), one request write and a deadline-bounded drain. Guard order and form encoding are unchanged. - Build: PR CI builds the hook once before the Windows tests, so the suites only read it; the launcher publish goes back to copyFileSync and the retry loop and its test are gone. The PE-machine check lives only in afterPack. Cargo.lock joins both crates' build fingerprints, and the launcher's alias exports are removed. Refs stablyai#20913 * test(ci): run the managed hook stdin-lifecycle suite in the Windows lane Its claude-hook.exe case (and the other Windows-only cases) are gated per test, so the lane-registration guard did not require the file and it ran only on Linux, where those cases skip. Register it in both Windows lists. Refs stablyai#20913 * feat(agent-hooks): ship the native hook as orca-agent-hook.exe <agent> The native Windows hook (stablyai#20913) becomes one general binary that stays Claude-only in behaviour. - Named orca-agent-hook.exe everywhere: build output, PE OriginalFilename and InternalName, resources\bin, the afterPack check, the installed copy in ~/.orca/agent-hooks, and the release signed-target lists. - It takes the agent as its first argument and Claude registers `<path> claude`. The CLAUDE_JOB_DIR exit and the Grok/Devin drain belong to that agent; an unknown or missing agent answers {} without reading stdin. The managed-command matcher owns `orca-agent-hook.exe claude` and still owns the old claude-hook.exe entry, so installs migrate; install deletes a leftover claude-hook.exe when nothing runs it. - A copy still running from the previous build no longer forces the .cmd fallback. Identical bytes are not rewritten; otherwise the temp file is renamed over the target, and when Windows refuses because the image is mapped, the running copy is renamed to orca-agent-hook.exe.old first. Install deletes a stale .old; only when that copy is also still running does the install fall back to .cmd. writeManagedScript and refreshManagedScriptIfPresent take the aside path, sharing one helper. Refs stablyai#20913 * fix(agent-hooks): roll back a failed aside rename and keep an installed hook exe Design-review follow-up on the native hook (stablyai#20913). - If the running copy was moved to orca-agent-hook.exe.old but the new file then could not take its name, the copy is renamed back before the error is rethrown, so settings.json never points at a missing exe. The rename helper now owns the `.old` name, next to the comment that explains it; a mocked-fs unit test covers both the sync and async paths. - A failed write, or a build with no bundled exe, keeps registering a copy that is already installed (every build knows `claude`), so a dev checkout and an installed build no longer flip settings.json between forms. - The claude-hook.exe migration is gone: no release ever shipped that name, so the legacy sweep, the `.exe` matcher needle and their test are removed. Refs stablyai#20913 * fix(agent-hooks): derive the native hook's agent with win32 path rules getWindowsNativeHookAgent took the host's basename of the managed script path, so on a POSIX host (Linux CI) a Windows path was not split and the registered command became `orca-agent-hook.exe C:\...\claude`. It now takes the path and applies path.win32.basename itself. The install destination and the `.old` aside stay on host paths: they name files the host opens. Refs stablyai#20913 --------- Co-authored-by: Orca Worker <orca-worker@localhost>
…tablyai#28067) * fix(terminal): keep the tab when a reattach finds its process gone Co-Authored-By: Claude <[email protected]> * test(e2e): read the paired retention heap after two collections Co-Authored-By: Claude <[email protected]> * fix(terminal): clear the absent owner through the replaced-pane binding writer Co-Authored-By: Claude <[email protected]> * test(e2e): fail the paired retention check when the heap cannot be read Co-Authored-By: Claude <[email protected]> * fix(terminal): refuse the respawn without a Store; tighten the binding fixture and stop docs Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
…tablyai#27875) * fix(browser): annotation card and outline follow the selected element The grab overlay keeps re-measuring the picked element after the click (scroll in any box, resize, element size changes), and the isolated viewport bridge reports that live box so the pending card follows it, including page zoom. The card's side pick uses its measured height. * fix(browser): bind annotation card to selected element * fix(browser): keep document annotation card on selection * fix(ci): point the main sync-spawn ratchet at the shared ratchet library (stablyai#28054) stablyai#27756's script imported baseline helpers from check-focus-read-ratchet.mjs after stablyai#27788 had moved them into ratchet-baseline.mjs, so it crashed on start and failed every PR that merges main. Use the library's helpers, and record the two daemon-process launches from stablyai#27769 that the broken check never saw. Co-authored-by: Orca Worker <orca-worker@localhost> * fix(browser): follow selected element outer-box size * refactor(chat): give the start-refusal resumable table its own module (stablyai#28085) stablyai#27946 and stablyai#26684 together put agent-session-failure-words.ts at 304 lines, over max-lines, which fails lint and the pre-commit hook on every merge of main. The refusal-code table is standalone with one reader, so it moves out. Co-authored-by: Orca Worker <orca-worker@localhost> --------- Co-authored-by: OrcaWin <[email protected]> Co-authored-by: Orca Worker <orca-worker@localhost>
* [CI] Warm only Linux for compiler recipe changes * [CI] Follow cache warmer callers in policy contracts
…stablyai#28110) HtmlDocPreview.tsx reached 403 lines on main (stablyai#27608 + stablyai#27875), over the 400-line limit for .tsx, so lint and the pre-commit hook fail on any branch that merges main. The focus handoff effect moves unchanged into use-doc-preview-guest-focus.ts. Co-authored-by: Orca Worker <orca-worker@localhost>
…8106) * Remove repeated daemon smoke builds and idle compiler slots * Test compiler scheduling through its process interface * Keep preview component below the existing line limit with a type-only split
* fix(skills): use a minimize icon for the update dialog * fix(skills): match the app updater minimize icon
* perf(mobile): skip re-rendering unchanged worktree rows Rows reach the host list freshly parsed and copied on every changed worktree.ps poll, so the row memo never skipped and every mounted row re-rendered each poll. The row memo now compares the item by value with the catalog's areWorktreesEqual, extended to every Worktree and agent row field, and every other prop by identity. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb * refactor(mobile): compare worktree rows by structural equality The hand-written Worktree field list needed a completeness guard that no compiler checks, since mobile test files sit outside tsc. A generic structural equality covers every field by construction, so a new field can never be skipped and freeze a row. Rows memo on it directly: the item and repo icon compare by value, callbacks and `now` by identity. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
Bring upstream/main (0c42285) into fork-main after #28. 72 commits behind resolved; keep fork mobile version 0.0.52/86, fork live-dictation imports, and both rpc catalog imports (terminal.switchOrigin + terminalDaemon.restartSevered). Drop mobile webgl 0.20.0-beta.299 patch (package now on beta.300). No tag/release/Mac signed; Coolify HOLD.
Merge syncs that introduce check-main-sync-spawn-ratchet.mjs fail the preflight critical-path compare because HEAD^1 (fork-main) never had the file. Read HEAD when the first parent lacks it so first-intro parity is a tautology.
Upstream removed the pty-transport barrel re-exports. Fork-only dictation modules still imported the type from ./pty-transport, which broke typecheck after the sync merge.
Upstream removed the sendErrorMessage useMemo; keep useRef for the fork live-dictation session without the unused useMemo import.
- Remove featureTips.nativeChatUpgrade.chatModeLabel/Hint from translated locales (en dropped them; catalogs flagged extras). - Remove fork-only mobile webgl beta.299 lockfile parity test now that mobile follows upstream without that patch. - prefer-template and consistent-type-imports in mobile copy tests.
Cherry-pick upstream nwparker/package-windows-agent-hook so D7 packaging builds orca-agent-hook.exe alongside the CLI launcher. Also blank-line format for the mobile webview engine test (oxfmt).
Drop the extra blank line between node:vm and acorn imports so oxfmt --check passes on the mobile verify job.
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Merge
stablyai/orcamain(0c42285eb2,#28058) intofork-mainafter #28.1595a75cc1(--no-ff).Protocol / launcher label
→ Do not add
allow-runtime-launcher-protocol-bump(ratchet OK; protocol stays 45).Conflicts resolved
mobile/app.json0.0.52/versionCode86 (fork Android release track)mobile/src/session/use-mobile-session-native-chat-dictation.tsuseMemo/useRef+mobile-dictation-live-session)src/shared/rpc-contract/rpc-params-catalog.generated.tsTerminalDaemonRestartSeveredParams(upstream) +TerminalSwitchOrigin(fork)mobile/pnpm-lock.yaml+mobile/pnpm-workspace.yaml@xterm/[email protected]; drop stale mobilebeta.299patch entry/file (package.json already on 300)Notable upstream (sample)
#27975–#27992)#27939)#28011,#28021, …)#27935)Test plan
gh pr merge --merge --match-head-commit <sha>only when fully green