Repository navigation
sync: upstream 7daf01d99f into swaplabs/main - #136
Conversation
…tab (stablyai#47687) When a paired phone created a workspace with a chat agent, the host briefly activated the chat, then the desktop window republished its own active tab (Setup) and the phone followed it about half a second later. agentLaunchCallerNavigationId skipped create-worktree targets, so these launches recorded no per-phone tab selection. It now returns the paired device for every target, so the creating phone keeps its own selection on the agent tab, the same as existing-workspace launches (stablyai#22914). Worktree creation still passes callerPresentsSurface=false, so host-wide chat activation is unchanged and a windowless host's other clients still open the new worktree on the chat. Fixes stablyai#47688 Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
…host has a screen (stablyai#47609) A screen the host lists but this app can't grant now shows the Update Orca Mobile wall instead of a dead end, and a screen neither side has says to update Orca Mobile and Orca on the host.
… phone (stablyai#47616) The host took a post to such a group only from its own window, so the phone disabled its composer. The post is delivered the same way whoever sends it: the host asks each remote member through its own pairing and threads the answers back. Drop the window-only rule, enable the phone composer and list the remote members in its @ menu as the desktop does.
…name or purpose (stablyai#47624) * feat(mobile): search on a computer's page finds agents and groups too The bottom search bar now matches agents and groups the way the desktop's sidebar search does (name, then what the agent is for; case, accent and word-prefix insensitive), counts the matches in the section header, drops the section when nothing matches, and reads 'Search'. * fix(mobile): read what agents are for without their chats, again after a reconnect * fix(mobile): count hidden paused matches and show a folded search's count * chore(mobile): sync runtime English strings
…cting Linear or GitHub (stablyai#47656)
…ds (stablyai#47658) Needs you now lists a tool app that needs a sign-in (an expired Sentry or a Notion never signed in) with the desktop's words, and opens the tool's page. Connectors, Needs you and Who can ask read Slack, Linear, GitHub, Google and the tools from one shared answer per computer, so a fix on Connectors clears Needs you at once instead of up to a minute later.
…ear line, and pick an outfit (stablyai#47663) The folded preview now draws the question glyph, the working ring and the blue unread dot as the desktop does. The Items all-clear is a plain muted line with no greyed picture. Name and picture gains an Outfit picker after the background colors, offered where the route's host stores outfits.
…tablyai#47678) Home's row for an agent counted only its own asks and items, so it could show nothing while the computer's list showed "2". It now reads the waiting access requests and counts the agent's workers waiting on approval from Home's worktree read, with the same count the computer's list uses. The folder records older hosts need are read only when the workspaces change.
…nt wrong, as on desktop (stablyai#47684) * feat(mobile): Connect Slack asks which workspace, says when no token was saved, and explains a failed approval with Details * fix(mobile): read Slack workspace names once per agent and again online, judge a missing token from a fresh read, and use the shared Details * refactor(mobile): read Slack workspace names through the existing Slack read * refactor(mobile): key Slack workspace name reads without a cast
…ments (stablyai#47705) Orca's main process exports CHROME_CRASHPAD_PIPE_NAME, and panes inherited it. A pane that outlives the main process that owns that pipe (an update or quit/reopen with the daemon keeping sessions alive) then hands a dead pipe to every Electron-as-Node child, so each `orca` CLI call on Windows prints a crashpad registration_protocol_win.cc error on stderr. Scrub the key (every casing, since Windows env names are case-insensitive) from the inherited environment in both pane builders, before explicit env is merged so a caller-provided value still wins. The Antigravity ACP sanitizer now reuses the same key predicate. Refs stablyai#19792 Co-authored-by: Neil <neil@stably.ai>
…lists (stablyai#47710) Bindings like `Mod++` and lists like `Ctrl+,` were rejected as invalid because `+` and `,` are also the chord and list separators. The parser now reads a trailing `+` after a separator as the Plus key, and the list splitter rejoins a blank piece after a `+` separator as the Comma key. Lenient typos main accepted (`Mod++K`, `Mod+K++`) load unchanged. Plugin manifests still have to spell the key `Plus`, since older Orca builds reject `Mod++` and would fail to load the whole manifest. Fixes stablyai#47709 Co-authored-by: Neil <neil@stably.ai> Co-authored-by: 0718lol <218699424+0718lol@users.noreply.github.com>
…iles (deletes nothing) (stablyai#45854) * Report whether old chat history was cleaned up on each launch Old chat history (the journal kept from before the current chat store) is meant to be deleted once the store provably holds all of it, but on some machines it stays. Each launch now records where that cleanup stopped, once, so we can see which check keeps it: - deleted, with the space freed in coarse buckets; - kept for good, by the fixed reason the check refused with; - kept for now: this version copied the chats (it waits for an update), an older version wrote the history since, or its storage can't be locked safely. The same line goes to the local log. Nothing about the cleanup itself changes, and no chat content, paths, ids or column names are included. * Hold deleting old chat history until a remote policy allows it, and record why it stays - The old chat journal's cleanup now follows a remote policy (off, report or enforce) published like the other cleanup policies: off runs no proof, report proves the store holds everything and keeps the file, and only a fresh download of the newest revision that enforces for this install deletes it. Missing, stale or unreadable policy reads as report, and the newest known off holds. The desktop's main process answers the policy; a host without a desktop never deletes. - Permission is asked again before the durable commit and again just before unlinking. - A finished proof the policy holds is saved, so later launches don't walk every chat again; enforcement then resumes at the copies. Saved progress moves to layout 2, which builds before it never resume, so none of them carries this build's progress past its own checks. - Each launch logs where the cleanup stopped, and reports it when the outcome, app version or policy revision changes: outcome, refusal or defer reason, a historical-shape flag, policy mode and revision, completeness, whether the walk resumed, and bucketed chat counts, size and time. No chat content, paths, ids, receipts or error text. - The release-asset policy updater reads its cache asynchronously. * Run the cleanup's policy and reporting in main, where the desktop's runtime runs it Review of 7ece1ba: - The desktop runs its runtime, and with it the cleanup, in the main process, not the usage utility process: main installs the policy and reporting host before the runtime starts, so a cached off holds from the first ask. The backend utility process and its capabilities are unchanged from main. - The policy is decided from what is known and never waits on a download: startup maintenance isn't held up, and a stale policy refreshes in the background. - A refusal that saw no leftover shape reports artifact none instead of an invalid event. - Proof errors are reported once per launch with a bounded kind (interrupted, conversion, storage, other), never their text. - Saved progress carries the walk's counts from its first page, so a resumed walk reports them in full, and completeness is complete only when they cover every page. - A nonempty WAL a cut-short removal left is deleted only under enforce; an empty WAL and the SHM, which hold nothing, are still cleared. - An elapsed-time bucket is reported beside the active time. * Retry held cleanup when permission arrives, report pending checks, split conversion counts A held or report-mode result now retries on the normal backoff, so a cleanup permission downloaded later in the launch is acted on. Checks still waiting on a compare report as pending. Conversion counts separate chats already converted, newly converted, deleted here and drafts. Copies are no longer counted twice after resuming. Removing leftover side files needs the same permission as deleting the journal. * Recheck a held proof when permission arrives in the same launch A proof held in report mode is dropped from memory, so a permission that arrives later in the launch resumes from the saved record and checks what changed since, as the next launch would. Headless serve stays report-only. Saved progress and the reported inventory revision share one layout number. Refusals report at once, failed attempts carry their partial counts, leftover side files are retried when permission comes, and the policy is downloaded on demand only before its first download. * Never reuse a finished proof on a retry, and keep counts right across page retries Every retry after a finished proof resumes from the saved record and checks again, including after a deletion that didn't go through. Leftover side files ask for permission right before removing them. A chat converted during a page that is read again still counts as newly converted. Outcomes are only marked reported once something could send them, and a failure after a finished proof reports as a failed deletion. Policy tests move to their own file. * Mark an outcome reported only once the usage client takes it An outcome dropped for missing consent or the event limits is sent again on a later attempt. Time spent on a proof attempt that fails still counts toward its active time, and a failed save while deletion isn't allowed reports as a proof error rather than a failed deletion. * Report an empty leftover pause table, and skip the journal policy in serve An empty queued_message_pauses table an older build left behind now reports its artifact like a populated one. A failed note that an outcome was reported no longer turns into a second, contradictory outcome. Headless serve no longer downloads the journal policy it can never use. * Roll out per platform at its own share, and count only proof work as active time A policy can give each platform its own share, replacing the shared one, so one platform can widen without changing another. Active time leaves out the waits for idle and pacing. * Hold a platform back when its rollout share is malformed A malformed per-platform share, or a malformed map of them, gives that platform no deletions instead of falling back to the shared share. * Hold back a misspelled platform, report leftover files waiting for permission A per-platform share naming no known platform makes the shares malformed, so a typo never widens a platform it meant to hold back. Leftover side files waiting for permission report as deferred, and a failed attempt carries whether it resumed earlier progress. * Report failures after a dropped proof as proof errors, with their active time A proof dropped for a retry no longer counts as finished, so a failure before the next walk isn't reported as a failed deletion. Failed attempts carry the time spent proving, and the leftover-file deferral is tested. * Download the journal cleanup policy only while a cleanup needs it The policy downloads now start on the cleanup's first ask instead of at every desktop launch, so a profile without an old journal never downloads it. They stop for good once the cleanup is over for the launch: removed, refused, off, or never there. * Let the policy download in flight finish before releasing it Releasing the journal policy now waits for the download in flight to write the cache before stopping, so a newer revision always replaces a cached off. A cleanup that asks again starts downloads again; only quitting stops them for good. With the policy off, leftover side files end the cleanup for the launch, and stopping the cleanup releases the downloads too. * Give an early policy ask its download, and keep one downloader An ask made before downloads were allowed now gets its download once they are, so a newer revision always replaces a cached off. Only one downloader runs; it stops once its download in flight settles and no cleanup needs the policy, and a cleanup stopped mid-attempt releases it again. * Drop the remote cleanup policy: whether a build deletes the old journal is fixed in the build The off/report/enforce download, its install shares, freshness rule and rechecks go. A build either deletes a proven journal or keeps it (with the proven record, so it isn't walked again); the profile's owner runs it, desktop or headless. Reports now say whether the build deletes, tell unmeasured counts from zero, report a file that is gone apart from one this store deleted, and name every leftover shape the inventory saw (or unknown for refusals saved before). The proof layout stays at 1, since what the checks admit doesn't change here. * Read the leftover shapes in their own worker-side module * Report a deletion after releasing the reader gate, and count only what was measured Fixes from review: the deletion outcome is reported once the file lock and source-reader gate are released; a refusal before any page reports unknown counts and the file's size; copies are counted as each converts, so a retried page doesn't drop them; a held proof is not reused by a build that deletes, which walks again in full; an unacknowledged held save retries; leftover side files that stay, or fail to go, report as leftover files. * Keep counts true across retries and restarts A retry in the same launch reports the first finished walk's counts; a walk resumed at the copies with nothing carried reports unknown, not zeros; progress is saved after each copies page, since a converted copy is never read again; the file's size is known from the first failure. * Tie a launch's finished-walk counts to the file and store they measured Counts resumed inside the copies report as partial, since a quit mid-page loses converted copies; a retry reports the finished walk's counts and resumed flag only for the same original and store, including on a failed retry. * Keep old chat history files in this build, and keep reporting why they weren't cleaned up Deletion comes back in a later, reviewed build. The deletion tests run with it switched on. * Report a walk that got further, and a quit mid-check as interrupted From the regression audit: an outcome is reported again when its coarse progress buckets change, so a later launch's further progress isn't hidden; a quit that stops the conversion the proof waits on reports as interrupted; a held save that throws retries like one that wasn't acknowledged. * Report a quit as interrupted whatever stopped, and a failed held save From the second audit and review: a failure while the cleanup is stopping reports as interrupted; a held save that throws reaches the normal failure report and diagnostic again; progress buckets key the report only when counts cover every page, so per-launch counts don't send every launch. * Report a refusal once, and an unacknowledged held save like a failed one From the final audit and review: a refusal's progress buckets don't key its report, since a saved refusal keeps no counts and a later launch would report it again; a held save the store doesn't acknowledge is reported and logged like one that throws. * Report the same outcome again only when its progress moved forward From the final audit: progress is saved every 16 pages, so a launch that restarts below unsaved progress reported lower buckets as news. The same outcome is now sent again only when a progress bucket grew past what was last reported. * Open an empty chat store while the original journal remains, and time only the check's own work From the final audit and its confirm review: an empty store beside the original journal now opens at launch, since an older Orca may have written chats there that opening takes in (and the cleanup reports on); a store with no original still spawns nothing. Active time leaves conversions out, since a conversion can wait for idle inside. * Open an empty chat store at launch only when an older Orca wrote to the original since * Install the chat host after the launch open only when it left a chat to host * Report copies as partial after a quit lost one, and a refusal once whatever the file's size since * Settle the launch gate for an original without an identity or recorded as damaged * Keep launch's chat-store gate as on main, and save proof progress before each copies page * Drop an unrelated lockfile change * Send a cleanup report the usage client refused once it takes reports, in the same launch * Drop a refused cleanup report once a later one supersedes it * fix(native-chat): clean up old chat history that builds from early October left a shape in The old chat journal is deleted only after a proof shows the new store holds all of it. The proof refused, permanently and silently, every journal carrying a shape an earlier build left behind that no later build reads: - queued_message_pauses, created by v1.4.219 (Stop pauses) and abandoned by the next build without being dropped. Refused as source-inventory when empty, source-recovery with rows. - queued_messages.source_json, from hourly builds of 2026-10-05/06. Accept both, with exactly their historical columns, so any other unknown table or column still refuses. The queue sender column counts toward the 2 MiB budget a kept original is measured by. Refusals keep policy 3 and now carry inventory: 2. An inventory or recovery refusal saved without it is proven once more; every other saved refusal still stands. v1.4.265/266 still honour this build's refusals, so switching builds doesn't walk the proof again. * fix(native-chat): honour refusals a later inventory check saved, and test the refused v1.4.219 user end to end * fix(native-chat): save a journal with a historical shape's proof under a layout earlier builds reject Earlier builds check inventory on the proof's first page only, so resuming this build's progress or retiring record they would finish, and delete, under rules that refuse the file. Progress and retiring records for such a journal now use layout 2, which they don't decode: they start over and refuse at inventory. Journals earlier builds accept keep layout 1, so mid-proof installs still resume across versions. * test(native-chat): a generated pause column or a table named like an object member keeps the journal * perf(native-chat): the proof's queue check skips the retired sender column it never decodes * style(native-chat): format and a type-only import * fix(native-chat): refuse unrecognized columns on the import, repair and set-aside tables * fix(native-chat): check the old journal's inventory again when a proof resumes Progress an earlier build saved past the first page skipped the stricter column checks this build adds, so a resumed proof could hold, and a later deleting build delete, a journal a fresh proof refuses. The resumed first page now runs the same inventory check. Also tests that a proven journal with a historical shape is held under layout 2 and that hold is read next launch, and moves the historical-shape tests to their own file. * fix(native-chat): pause converting old chats while the disk is almost full Journals this PR newly admits get their whole backlog converted while the old file is kept, so a 20.8 GB journal grew the store to 31 GB. Before each proof page the cleanup now checks the profile's volume against Orca's existing almost-full floor (under 10 GB, or 5% of a small disk). Below it the proof stops with saved progress and retries on the usual backoff, reported as a storage error. * fix(native-chat): start converting old chats only when they fit on the disk A floor alone let the proof convert until the disk was almost full, then hold a partial store the user can't reclaim while the old file is kept. On each run's first page the reader now estimates what converting the rest needs (1.5x the journal, measured, times the share of chats the store lacks) and holds the proof back, reported as a storage error, unless free space minus that stays above the floor. The per-page floor stays as the net. * Revert "fix(native-chat): start converting old chats only when they fit on the disk" This reverts commit 3889cab. * Revert "fix(native-chat): pause converting old chats while the disk is almost full" This reverts commit a797834.
…open-app prompts on the phone (stablyai#47237) * feat(mobile): ask a streamed browser page's permission, sign-in and open-app prompts on the phone * refactor(mobile): move the screencast ready parser beside the other stream events
…ired to a server (stablyai#47402) * feat(mobile): show a desktop's This-device browser tabs on a phone paired to a server * refactor(mobile): use the shared phone-openable URL check in the browser tab sheet * fix(mobile): advertise This-device browser rows only while the loaded page draws them The shell sent browser.clientHost.rows.v1 before it knew which page it would load, so a cached or staged older page got This-device rows it streams and fails on. The shell now adds it from the loaded page's pageVersion (4), and re-advertises on a connected socket when the page changes.
… list rows (stablyai#47654) The phone's list rows now read the host's status feed for usage-limit stops and say them as the desktop row does: an amber gauge at the picture's corner and "Home Chat · Continues at 2:40 PM". The desktop's rule, copy and per-host stop index move to src/shared so both surfaces use one copy.
stablyai#47721) * fix(zcode): install status hooks into zcode-app-cli's setting.json too The npm zcode-app-cli distribution reads ~/.zcode/cli/setting.json (or $ZCODE_CLI_SETTINGS_FILE) and never falls back to config.json, so Orca's managed hooks never fired for it: no agent status, runs timed out after 6h and their terminals leaked. Install, report and remove the managed hooks in setting.json as well, locally and over SSH, but only when that file already exists so the CLI's first-launch settings migration is not pre-empted. Each file is read on its own, so one unreadable file does not block the other, and the combined status lists every file Orca edits (additionalConfigPaths) for `orca agent hooks status` and the uninstall plan. Fixes stablyai#47707 Co-authored-by: Claude <noreply@anthropic.com> * chore(zcode): record the setting.json read in the blocking-helper baseline Refs stablyai#47707 --------- Co-authored-by: Claude <noreply@anthropic.com>
…e's connector pages (stablyai#47671) * feat(mobile): manage Google, GitHub and Linear accounts from the phone's connector pages * feat(mobile): Chinese words for the Google, GitHub and Linear account actions * build(mobile): raise the phone page's eager size fence by 32 KiB
…i#47730) Eighteen one-word Korean status labels were written as a verb (끄다), as an adjective that needs a noun after it (막힌, 실패한, 전송된, 부여된, 제한된, 알려지지 않은, 변하지 않은, 해결되지 않은, 선택된, 없는), or as a sentence (건너뛰었습니다., 저장했습니다). Use the status form that the same English word already has elsewhere in the app. The two Off keys already had pins in locale-ko-key-overrides.json (비활성, 끔) that the catalog did not match. They now read 꺼짐, like the other Off labels.
… message ids (stablyai#47737) Live Codex item identities were cached by thread and item id only. When a Responses-compatible provider reuses an assistant message id in a later turn, the later reply took the earlier turn's identity and overwrote that reply in place, above the newest prompt. Mint a new identity when a cached message identity belongs to a different turn. Refs stablyai#47718 Co-authored-by: Claude <noreply@anthropic.com>
…#47741) The Korean Shortcuts pane is titled 단축키, but several strings on it and nearby called a keyboard shortcut 바로가기, which means a shortcut link. Switch the 11 keyboard-shortcut values in ko.json to 단축키, and update the ko key and value overrides for "Find shortcuts" so a catalog repair keeps 단축키 검색. Fixes stablyai#47740 Co-authored-by: Neil <neil@stably.ai>
…tablyai#47457) * feat(native-chat): step through the images in view across messages Opening an image in a tab chat now steps, with the existing Previous/Next toolbar arrows and Left/Right, through every settled image near the visible part of the chat (Markdown images and attachments), not only the attachments of one message. A small N / M count shows when the set spans messages; one message keeps its existing per-message viewer. The gallery captures how to read each image, never a URL, reads the selected one through the existing loader with a loading/ready/failed status, pins it across steps, and closes when the chat's owner changes or the shown image's message is removed. Pending, streaming and tool-run images keep their single preview; bot group rooms are unchanged. Refs stablyai#41800. Supersedes stablyai#42671. Co-authored-by: sotashimozono <shimozono-sota631@g.ecc.u-tokyo.ac.jp> * fix(native-chat): keep the image set's focus ring visible; add its fixtures The dialog's own focus ring drew a dark outline over the dark media scrim in the light theme, and its inner light band was a box-shadow the full-window canvas covers. The media-gallery surface now draws one light outline, which the scrim behind the window edge always sets off. Adds component fixtures for the stepping viewer: a set across messages at three widths, long titles, one message, the last image, loading and unreadable images, and messages removed while it is open. Co-authored-by: sotashimozono <shimozono-sota631@g.ecc.u-tokyo.ac.jp> * fix(native-chat): settle C1 review findings for the image set - Draw the dialog's focus ring on a layer above the image (two-tone), so a zoomed image of any color cannot cover it. - Show an image that loads but will not decode as unavailable, and drop its copy URL, instead of waiting on it forever. - Keep every agent row out of the set while its turn works, so a tool call appended after still-changing words cannot make them capturable. - Hand focus to a subagent view that covers the list while the viewer had it, instead of leaving it on the page body. Co-authored-by: sotashimozono <shimozono-sota631@g.ecc.u-tokyo.ac.jp> * fix(native-chat): recover undecodable images on reread; decode large images without long tasks - Tie an image's decode failure to the payload that failed, so a reread that brings a new blob shows the image and offers Copy again without reopening. - Local image reads now check whether the cache can admit the payload before decoding it, so a photo-sized image the cache will refuse costs no decode. - Decode base64 payloads in slices that yield to the event loop instead of one synchronous atob and byte loop, so a large image never holds the renderer in one long task. This is the shared loader, so every local image reader benefits; the synchronous decode existed on main for the single viewer too. Co-authored-by: sotashimozono <shimozono-sota631@g.ecc.u-tokyo.ac.jp> * fix(native-chat): stop stale image decodes; never show an evicted image's URL - A local image read that an invalidation supersedes now stops at the next decode slice and before building its Blob, instead of finishing the whole decode only to revoke the result. Same-key deduplication, immutable reads and the final cache admission are unchanged. - A local image counts as ready only while the cache still holds the URL on screen. Stepping back to an image the cache evicted meanwhile now shows it loading, with no Copy, until its reread returns a live URL. Co-authored-by: sotashimozono <shimozono-sota631@g.ecc.u-tokyo.ac.jp> * fix(native-chat): announce image gallery load failures Use a localized failure message for named images in the gallery status and keep the decode recovery regression covering Copy state. Co-authored-by: sotashimozono <shimozono-sota631@g.ecc.u-tokyo.ac.jp> * fix(native-chat): offer Copy only once a viewer image loads; name failed Markdown images - The image set's viewer sets the copy attribute only after the shown entry's image has loaded, so Copy stays off while it loads or fails. - Markdown records pass their own name as the label, so a failure in the viewer reads "Couldn't load <name>"; unnamed images keep the generic copy. - GitHub user-attachment Markdown images stay out of the image set: they show a separately resolved, short-lived URL and fall back to a link. - The live-region test now requires exactly one region that keeps its identity and holds the step announcement. Co-authored-by: sotashimozono <shimozono-sota631@g.ecc.u-tokyo.ac.jp> * fix(native-chat): no Copy for an image stepped back to mid-load; show Loading while a remote image downloads Stepping clears the loaded marker, so returning to an image before its redrawn view loads no longer offers Copy. A remote image stays mounted under the existing Loading chip until it loads or fails, instead of leaving the viewer blank during the request. Co-authored-by: sotashimozono <shimozono-sota631@g.ecc.u-tokyo.ac.jp> --------- Co-authored-by: sotashimozono <shimozono-sota631@g.ecc.u-tokyo.ac.jp>
…ted prompts (stablyai#47749) Co-authored-by: AmethystLiang <AmethystLiang@users.noreply.github.com>
…7750) When Try again had already unmounted, the hand-back found its dialog from whatever element had focus. If another modal held focus, a kept result moved focus to that modal's x. The hand-back now anchors on the branch dialog's own content element and leaves focus alone when it is elsewhere.
* fix(i18n): also index «следующий запрос» and test the shipped Russian catalog * test(i18n): restore Russian strings after pinned-glossary suite --------- Co-authored-by: AmethystLiang <AmethystLiang@users.noreply.github.com>
Add Korean values for all 73 components.native-chat.workerDock strings, which previously fell back to English in a Korean UI. Fixes stablyai#47755
* feat(updater): quit Orca from staged update recovery * fix(updater): compact staged-update recovery actions and cause-only details --------- Co-authored-by: m4air <m4air@Mac.localdomain>
…nly that turn's rows and sends (stablyai#47529) * perf(journal): an operation window through its anchored turns reads only that turn's rows and sends A reader of one ended operation's own turn (a bot group room opening an old turn) read every row from that turn to the chat's head and listed every send the chat ever made. The new throughAnchoredTurns option ends the window where the next root turn opens and reads only the anchored operations' sends and those placed inside the window, each found by index, so opening one old turn costs the same however long the chat has run since. * fix(journal): find a turn window's sends by index, queued-card carriers and answers included A window through its anchored turns now also reads every send that carried the operation as a queued card and the sends whose provider row or answering turn row sits inside it, each through an index created at startup (no schema version change), and every bounded send read is pinned to its index. The consuming send's id is no longer split into characters, the option takes operation ids alone, and a window it ends early is not reported complete. * fix(journal): key the answering-turn send read on its index, and read the sends of a stretch the window takes on * chore(journal): baseline the one-shot startup index creation on the journal SQL worker * refactor(journal): name the window row subquery's column instead of rewriting its text * fix(journal): a turn window reads the sends sharing a provider id or queued card with its own, once each A steer shares its provider id with the send that opened the turn; reading only the steer let the turn be attributed to it. The bounded read now follows shared provider ids and queued cards by index until no new send turns up, and holds each send once. * test(journal): write each chat of the turn-window perf contract in one transaction, once per size Per-step commits on disk timed out on Windows CI. * fix(journal): keep a turn its send is placed in by position, and dedupe shared sends in one pass A send no turn row names (an older import) is placed by position, so its own turn can be the first one after it: the window then reaches one more turn. Sends found through a shared provider id or card are deduplicated with a set. * fix(journal): bound a turn window by each anchored send's own reach One send that named its turn let the window stop before another send's turn that is placed by position. Each anchored send now sets how far its own turn may reach, and the window ends past the furthest.
stablyai#45294) * fix(codex): legacy migration never overwrites transcripts or drops history lines The one-time legacy migration now copies session files with exclusive create, keeps an occupied preserved copy and picks the next free name, and appends missing history lines instead of rewriting history.jsonl from an earlier snapshot. * fix(codex): import legacy prompt history only while no Codex thread is live A live Codex appends to and trims history.jsonl under a lock Orca can't share, so the one-time import now runs only while Codex's thread-writer locks are idle and coordination is held; otherwise it stays pending in the migration marker and retries on the next launch. Each imported line is its own write, started on a fresh line, so a failed write damages only its own record. Adds codex_legacy_history_import telemetry for imported vs skipped launches. * fix(codex): never write a live shared history during the legacy migration The one-time import now only creates the shared history.jsonl when none exists, from a temp file published with a no-overwrite hard link, off the startup path. When a shared history already exists, or Codex creates one meanwhile, it is left untouched and each account's legacy history is kept aside under Orca's runtime metadata, which account removal and history cleanup never reach. Drops the thread-lock gate and deferred retry. * fix(codex): keep legacy prompt history aside before anything else in the migration Each account's legacy history.jsonl is copied under Orca's runtime metadata synchronously, before session copies and before startup returns, so a failed session copy or an account removed while the import runs can't leave it without a kept copy. The import reads only the kept copies. Exclusive copies clone where the filesystem can. * fix(codex): retry the legacy history import from Orca's kept copies The kept copy is read once and written with exclusive create, so a history Codex trims mid-copy can't stall startup. The marker records a pending import; a failed one retries on later launches (at most three), reading only the kept copies under Orca's metadata, so a removed account's history still seeds a missing shared history. The publish is fully async. * fix(codex): run the kept legacy history import independently of session copies The import keeps its own state beside Orca's kept copies and runs on any launch with kept copies until it settles, so a failed session copy, or an account removed after one, can't leave a kept history unimported. * fix(codex): keep one real copy of each legacy history, published by rename Each account's kept history is taken once, written to a temp file and renamed into place, so it is never partial, never a link to the original, and repeated unfinished launches add no snapshots. The import state is written the same way, and unparseable state retries the import. * fix(codex): refresh the kept legacy history and refuse linked kept folders Each unfinished launch refreshes Orca's one kept copy from the account's current history, so prompts written between launches survive account removal. The kept copy is refused when its folder or the kept-copies root is a link. Session conflict probing reads the legacy file once. * fix(codex): set the earlier kept history aside when Codex trimmed the account's Before refreshing the kept copy, lines the earlier copy holds that the account history no longer has keep that copy under a numbered name, so a history Codex trims between unfinished launches loses nothing. Listing the kept copies counts toward the import's attempt cap. * fix(codex): account removal keeps prompt history; import reads accounts directly Account removal now keeps an account's history.jsonl, as it already keeps its sessions, so no Orca path deletes or moves an account's prompt history. That replaces the kept copies: the one-time import only reads the account histories, creates the shared history only when none exists, runs independently of session copies and retries on the next launch after a failure. Without hard links it publishes by exclusive create in append mode, which never touches an existing file and never writes over a Codex append to the new one. * fix(codex): skip the history import where hard links are refused; say removal keeps history Without hard links there is no way to publish a new shared history that a running Codex can't append into mid-write, so the import writes nothing there and each account history stays in its own home. The account-removal dialog now says the account's Codex history stays in its folder. A failed migration-marker write is logged instead of surfacing as an unhandled rejection. * fix(codex): retry on unreadable account histories; classify only link errors as no hard links * fix(codex): mark the migration after the session copies; retry only a failed history import A history import that keeps failing no longer reruns the synchronous session pass at every launch: the marker is written once the session copies succeed and records a pending import, which later launches retry alone, at most three times. The import still starts first and runs independently of the session copies. * fix(codex): read linked account histories; ignore account folders without a home folder * fix(codex): mark the migration done only once history settles; keep a linked history's target migration-v1.json, the only marker older builds read, is written once the history import has landed or been skipped, so a downgrade after an interrupted first launch still owes the import. Session completion and retry state live in migration-v1-sessions.json. An import that gave up retries once the account histories change. Account removal (host and WSL) also keeps what a linked history.jsonl points to inside the home. * fix(codex): keep every entry a linked prompt history passes through; retry a given-up import daily * fix(codex): follow a linked prompt history one component at a time; stop removal on any step it can't read * fix(codex): preserve each account history in the runtime home, then mark the migration done An older build checks only migration-v1.json. Writing it after the session pass keeps that build from rerunning its overwriting migration, and the preserved copies (exclusive create, never overwritten) mean its account removal can't take the only copy of prompts the import hasn't merged. The import reads the preserved copies too, and its completion is tracked in migration-v1-sessions.json. * fix(codex): preserve account histories off the main thread, before marking the migration done The history migration runs async and independent of the session pass: it copies each account history into the runtime home, then writes migration-v1.json once the session pass has also finished, then imports the shared history until it settles. Its state lives in its own migration-v1-history.json, so it never races the session pass's record. * fix(codex): delete only the logins from a home whose history is a link; never count a link as a preserved copy Following a linked history.jsonl to decide what to keep kept missing cases (case-insensitive names, backslashes, newline-ending targets). A home whose history.jsonl is a link now loses only auth.json and .credentials.json, the sign-in and MCP logins the dialog names. Preservation treats a link at a preserved name as taken, not as the copy, and copies an account history that the shared history links to. * fix(codex): run the session pass after the history copies, and write its marker in the same step A quit between the session copies and migration-v1.json let an older build rerun its overwriting migration. The session pass now runs once every account history has its copy, and writes its state and the marker synchronously with the copies. Preservation is recorded per account so a retry never copies one twice. A home with a linked history also loses Codex's encrypted login store. * fix(codex): copy histories, sessions and the marker in one synchronous step at startup Running the session pass after an async step let account removal or history sharing reach a home first. The migration is synchronous again, as on main: each account history gets its copy, then the sessions, then migration-v1.json, all before anything can remove or share an account. Only the shared-history import stays async. The removal dialog says again that the account's Codex folder is deleted, apart from its history. * fix(codex): remove only listed login files beside a linked history; mark the migration even when a session copy fails A home whose history.jsonl is a link loses only its login files (auth.json, .credentials.json, config.toml and Codex's encrypted stores), never the file the link reaches, and removal stops if the link can't be checked. A session that fails to copy stays in its account home, which every build's removal keeps, so the marker is written and the session pass retries on later launches. A link-loop history counts as none, and an unowned folder that fails is skipped. The removal dialog no longer promises what happens to history, since older remote hosts still delete it. * fix(codex): leave a linked secrets folder's files alone; reuse one temp name for the history import Removal beside a linked history deleted secrets/*.age through a secrets folder linked to another home. Those files now stay when secrets is a link. The history import and its state writes use one fixed temp name, cleared before each attempt, so a restart mid-import never leaves copies behind. * fix(codex): remove nothing from a home whose history is a link; copy histories again on every retry Deleting login files beside a linked history kept meeting link chains that reach the history. A home whose history.jsonl is a link, which Orca never creates, now keeps everything, sign-in included. Preservation no longer skips accounts recorded by an earlier attempt, so a history that changed since gets a fresh copy instead of leaving a stale one. * refactor(codex): main's migration marker, capped session retries, Windows FAT counts as no hard links Downgrades and hand-made history links are out of scope, so the preserved history copies and the marker ordering built for them go: migration-v1.json is written after the session pass, as on main. A failed session pass retries three times, then once a day, and a retry never adds a second preserved copy, so disk stays flat while a failure persists. EISDIR from link() on Windows (FAT, exFAT) settles as no hard links. Import temp copies get unique names, and leftovers are removed. * fix(codex): keep session conflict copies only from a session pass that succeeds A retry that stopped at a taken preserved name could mark the migration done while a session had changed since its copy. Conflict copies are now made after every account's sessions copied: a failing pass adds none, so disk stays flat, and the pass that succeeds keeps each conflict's latest bytes. * fix(codex): a failing session pass removes the conflict copies it made Copies kept beside conflicting runtime files are all or none: if keeping one fails, the copies this pass created are removed, so retries never pile up snapshots of sessions that keep changing. * test(codex): skip the linked account history test on Windows * test(codex): check session copies and the shared history right after startup
…utomation runs (stablyai#48168) The automation run row showed its trigger sources (GitHub, Slack, Linear, Webhook, Gmail), its "what · where" and "facts · time" joins, and the "CI finished" event in the Simplified Chinese UI through the English fallback because the keys were missing from zh.json. goal.checks_one is not added, because Chinese only uses the _other plural form. Fixes stablyai#48169
…mations, imports, and goals (stablyai#48174) The native chat rows for automations (run, saved, result, event rows), bot imports (plan and done cards) and goal controls had no Turkish entries in tr.json, so i18next fell back to English on an otherwise Turkish screen. Add the 149 missing leaves under components.native-chat, reusing the catalog's existing terms (otomasyon, çalıştırma, hedef, olay) and keeping every {{placeholder}} and tag verbatim. Fixes stablyai#48175 Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
…for automations, imports, and goals (stablyai#48166) The automation run, saved-automation, automation-result, event-row, import-plan, import-done, and goal rows in the Traditional Chinese UI fell back to English because their keys were missing from zh-Hant.json. Add those values, keeping "bot" in Latin text as other zh-Hant strings do and reusing the catalog's existing wording for Open run and Queued. Also translate the "Who can ask" labels that the new access notes name as 「誰可以提問」, using the same values as stablyai#45740, so the note and the setting label match. goal.checks_one is not added because Chinese only uses the _other form. Fixes stablyai#48167 Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
…ations, imports, and goals (stablyai#48170) With the Portuguese UI, the native-chat rows for automation runs, saved automations, automation results, event rows, bot import plans and goals fell back to English because their keys had no entry in pt.json. Add the missing leaves, using the Brazilian Portuguese terms already in pt.json (PR/automation event labels follow the existing masculine "pull request" usage, "Agenda" for calendar), and add automationSaved.gettingUrl. Fixes stablyai#48171 Co-authored-by: Neil <neil@stably.ai>
…ons, imports, and goals (stablyai#48172) Adds Russian values for the components.native-chat keys under automationRun, automationSaved, automationResult, eventRow, importPlan, importDone, goal and goalControl that fell back to English in ru.json. goal.checks gets the _one/_few/_many/_other plural forms. Fixes stablyai#48173 Co-authored-by: Neil <neil@stably.ai>
… CLI already current (stablyai#48183) An agent's own updater can fail without changing anything while the CLI already reads as the latest release. `opencode upgrade` on a CLI staged by the OpenCode desktop app fails with "Could not detect the installation method", so Orca showed "update failed" and Try again could never clear it. updateAgentCli now lets the version read after the run decide when both it and the latest release are known: at or above the latest is done, behind is a failure (including a clean exit that stays behind, e.g. Homebrew). When either is unknown, the exit code and timeout decide as before. No extra spawns on the check or update path. Refs stablyai#48028 Co-authored-by: Neil <neil@stably.ai>
…gs (stablyai#48200) The phone PR tab, checks, comments and merge gate screens fell back to English in Korean because 100 keys under pullRequest.tab, pullRequest.screens and pullRequest.gates had no ko.json entry. Adds Korean values for all of them, keeping placeholders, trailing punctuation and _one/_other pairs. Overflow-menu labels say '작업 더 보기' so they differ from the 'Show more' toggle, bot thread counts read '봇 스레드 N개', and the unresolved-thread subtitle is '{{author}} · {{file}}'. Fixes stablyai#48199 Co-authored-by: Neil <neil@stably.ai>
…tablyai#48208) * fix(google): say why a Google sign-in failed after Google returned * fix(google): end a cancelled Google sign-in's tab as cancelled * fix(google): show a failure, not a cancel, when the starting device stops answering * fix(google): a tab whose sign-in went quiet says so, whatever step failed * fix(google): write sign-in failures to the app log; cancelled tab shows its icon
* Redesign the Add apps dialog Expand the Add apps catalog with a responsive grid, category chips, and an Added view. Preserve keyboard focus when filters fold or connector recovery rows appear. Keep connector setup and search available from the catalog. Retire the translations of the copy keys the redesign removes. * Hand focus to a More option's chip when a resize unfolds it
…ablyai#47984) * fix(mobile): one row per need in Needs you, filter as a toggle, automations in one group * fix(mobile): say an automation needs sign-in on its subtitle line
…hat (stablyai#48031) * fix(mobile): one approval card for the agent's and workers' requests, and Not now / Send on the ask card * fix(mobile): the chat's ask card says Cancel for the action that declines the question
…ne quiet line in chat (stablyai#48004)
…d a tool (stablyai#48021) * fix(mobile): edit a tool from one grouped list, and tidy the Tools, sign-in and Composio key pages * fix(mobile): trim the name before the clash check; keep spaces-only values and Open page again offline * fix(mobile): show the sign-in and Get a key links as accent action rows
…lyai#48052) * fix(mobile): make Who can ask a clean list of people with faces People and apps show a face and a name, with Remove in the row's menu and behind a swipe instead of text buttons. Requests sit together at the top; a tap reviews, and Decline is in the menu and the swipe. The summary card, paragraph and reach rows give way to Keep only me and one line saying what they can do. Paired servers lose the repeated header icon and get a one-line footer. Add people puts Add in the header and leaves out people who can already ask. Slack's "(app)" suffix is dropped next to the app mark. The Slack, Linear and GitHub pages use the same rows. * fix(mobile): put Decline on the access review page Tapping a request opened a review with only Cancel and Give access, so declining needed a swipe or a long press. Decline is now the page's one red row under the buttons; swipe and long press stay as shortcuts.
…icture pages (stablyai#48083) * fix(mobile): make the new agent sheet, import and picture pages one clean list each New agent: one header row, picture, then name, description and agent in one group, with template, import and link as rows after it. Import again: Update in the bottom bar, making a new one in the menu. Another app: real rows for the steps. Agent and model: no intro, Use chat defaults as an action row. Name and picture: one grid under Mascot / Color / Outfit tabs. * fix(mobile): import again falls back to naming a new one when it can't open the earlier one * fix(mobile): keep a typed new name in import, and name the picture grid for screen readers
…es (stablyai#41896) * feat(tab-strip): fold titlebar chrome and condense tabs in narrow panes The left-most pane shares its strip with the floating titlebar header. As it narrows, the header folds ("Orca" word and Forward, then Back and "+" into the pane ⋯), tabs shrink, inactive tabs become icons, and tabs that still don't fit go behind a "+N" chip that lists every tab. - Quick commands move into the pane ⋯ once the owner pane folds, so the active tab's title outlives them (UX-I1-1); the +N list marks the current tab with a check, apart from the focus background (UX-I1-2). - A re-plan skipped during a rename runs when the rename ends (ND-C1-1). - Focus restore targets a real focusable tab root, else the chip (ND-C1-2). - Close-others availability counts the group's closable tabs, hidden ones included and pinned ones never (ND-C1-3). - Deferred focus restores read group ownership from the store (ND-C1-4). - A header-shape reset (full screen, app name, view) keeps the previous level's hysteresis for its first decision, so it refolds once to where it was. * fix(tab-strip): address CodeRabbit on focus restore, webview blur and e2e focus checks * test(tab-strip): build DOMRect instead of casting in fold observer test * refactor(tab-strip): move +N entry activation into its own module, handle room tabs * fix(tab-strip): address CodeRabbit on fold stepping, frozen plan ids, held icons and attention - Folding steps one level per reading so step 1 is measured before step 2; a pane widened from 330px to 400px now unfolds to step 1. - A frozen plan compares hidden and icon ids, not only their counts. - Held widths after a pointer close keep their icon slots. - The +N attention set includes hidden structured-chat tabs with an unread marker, and ignores a stale unread while a live turn owns the tab. * fix(tab-strip): keep held icon slots across consecutive pointer closes A second close during a width hold captured icon ids from the re-planned titled plan, so the held 32px slots lost icon density. Capture the held icon ids while a hold is active; regression test for consecutive closes. * test(tab-strip): add narrow-pane condense and +N list fixtures * fix(tab-strip): keep hidden tabs reachable across narrow panes * fix(tab-strip): use compiler-compatible hysteresis assignment * fix(tab-strip): preserve focus through overflow picks and header measurement * refactor(tab-strip): keep editor close controls in their own slot * fix(tab-strip): keep the quick-command editor through unfolds and narrow chip focus handback The strip actions now own the Pane Actions quick-command editor, so Add from a menu retained through a fold to 0, and an unsaved draft, outlive the unsplit menu's unmount. The +N chip's teardown hands focus back only from the chip or its own menu, never from an independently focused strip sibling. * fix(tab-strip): replace casts in the custody test and unmount hook, mount test providers
…e per account (stablyai#48046) * fix(mobile): simplify the Google connector page and fold finished setup steps The Google page shows one status line, a What it can use group with each service's fix, and one row per account that opens its own page with Set as default and the two removes. Share setup moves to the menu. The setup card folds finished and later steps into one line each and drops who did each step. * fix(mobile): close the menu before Share setup and ask for a default when the host has none The account page leaves once a disconnect is confirmed and says when Google signed an account out. * fix(mobile): fold only untouched steps at the end of the setup card, and skip an empty What it can use * fix(mobile): show Set as default as an action row
Upstream range 2d68746..7daf01d, 273 commits. 2 conflicted paths (both modified), 2 hunks. No operator decision was needed. This branch continues run 63's merge of 2d68746 (091e642), which was signed and pushed on 23 November but never got its pull request. Conflicts: - TitlebarLeftControls.tsx (PRs 7, 13, 31) vs upstream stablyai#41896 (the floating titlebar folds its controls into the pane when the tab strip is narrow): upstream's markup and fold step, with the fork's app name as the label. The fold measures the rendered header, so the fork's longer name folds like upstream's. - GeneralUpdateSettingsSection.tsx (PR 14) vs upstream stablyai#47770 (a staged update that could not restart Orca shows "Update ready to install" with a Quit Orca button): the fork's layout with upstream's block above it; the fork's status line is empty in that state, as upstream's is. Not in the conflict list: 28 more files changed on both sides merged cleanly and were read against upstream's change. The fork's sidebar minimum width (PR 66) still measures the same two titlebar groups. Upstream stablyai#47855's install-under-way flag is set before either macOS engine quits, so it covers the fork's staged-bundle engine (PR 16) unchanged. No fork file moved, no import or path literal went stale, and no file crossed max-lines. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
After the merge (b574f0c, 11:15:47Z; 0 failing and 31 pending at that moment). Checks at 11:32Z: 86 pass, 8 skipped, 2 fail.
Build: Reviewers: Codex completed on 401c9fc with no findings. Tenki has not reviewed. The one thread on #134 was upstream's code: logged on the findings page, replied and resolved. Follow-ups: #135 (team update policies on fork builds, operator decision), #45 and #98 (the 23 November moves and baseline row), #95, and SwapLabsInc/SwapLabs#335 (run 63 died after pushing its merge; what a later run should do with a pushed sync branch that has no pull request). Notes: release notes. |
Daily upstream sync (run 64). Supersedes #134, whose head is the mirror
mainand conflicted.This PR carries two signed merges. Run 63 (23 November) resolved and validated the first, signed it and pushed it as
sync/upstream-20261123, then lost its API connection before it opened a pull request. Run 64 cut this branch from that pushed commit and merged the 273 upstream commits that arrived since.16aa1217d2..7daf01d99f(606 commits), stablyai/orcamainat 7daf01d.G BF1DD75F888E96080C2453E2D9E158C5D6874235):16aa1217d2..2d68746622(333 commits), by run 63.2d68746622..7daf01d99f(273 commits, 2,172 files), by run 64. The pre-commit hook ran; the tree is the one validated (b4eb63c50e).orca-fork-ops status: 0 merged upstream, 0 pending upstream, 94 local forever.Conflicts in the 24 November merge (2 paths, 2 hunks)
app-shell/chrome/TitlebarLeftControls.tsxsettings/updates/GeneralUpdateSettingsSection.tsxShown by a throwaway render test (not committed): in the manual-restart state the section shows upstream's title, sentence and Quit Orca button, the button calls
app.quit, and neither the Restart button nor a fork hint appears; an ordinary error still shows the fork's hint.Conflicts in the 23 November merge (15 paths, 26 hunks), resolved by run 63
.github/workflows/pr.ymlterminal-run-facts.tsThe updater files:
installOnQuitand is left out of the Squirrel-only team staging deferral, because it installs only on its own restart.How a fork build should follow a team's update rules is the operator's decision: #135.
Not in the conflict list
24 November merge:
23 November merge (run 63):
judgeCandidateManifests(updater-release-tag-manifest),selectRoutineReleasesand the placeholder feed URL (UpdaterReleaseSourceFeed),SingleSourceUpdateHint.tsx, the class layerUpdaterErrorStatusFieldsState, and the leafUpdaterSetupWithSelfUpdateLaunchReport, which the updater service now constructs (Move fork logic out of upstream files near their line limits #45).updater-setup.tsto the new leaf (New upstream ratchets baseline fork files after the 2026-11-09 sync (render-path translate, main sync fs) #98).TeamClaudeLeaderboardSection: upstream Fix duplicate Claude identities and visible-host usage stablyai/orca#42644 madeuseActiveAccountOwnerreturn null for an unproven owner; the board then reads this device, as every unresolved owner did before.ko.json: the fork's resume-chooser title uses the term upstream's new Korean glossary requires.updater-mac-install-staged-bundle.test.tspins the staged-bundle ready event; it fails with upstream's guard applied to the engine.Validation, on the merged tree (401c9fc)
pnpm tcandpnpm run typecheck:ci: pass.pnpm lintwith the mirror as diff base: 49 of 49 steps pass. The changed-code gate also passes on the committed merge.pnpm check:ratchets: all pass exceptreact-compiler-compaton LOCAL: offer one download per release source in Settings → Updates #14's two files, counts unchanged (React Compiler ratchet fails on two #14 Settings → Updates files after the 2026-11-07 sync #95). Flaky-test, main-sync-spawn, main-sync-fs, main-blocking-helper, recurring-timer and launcher-protocol ratchets pass.pnpm test: 1,018 files, 1,005 pass, 12 skipped, 1 fails (bash-prompt-command-composition.test.ts, which fails on this host's bash on pristine upstream too).oxfmt --checkpass over all 2,140 staged files.ast-grep-gateswith the integration head as base: passes.Run 63 ran the same checks on its merge before signing it (full suite 811 of 824 files, the same single host-only failure).
Follow-ups
Performance
No fork performance change: upstream's commits and the conflict resolutions above.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.