Skip to content

Sync upstream Bots workspace and mobile 0.0.72 into the fork - #45

Merged
karlorz merged 10000 commits into
fork-mainfrom
codex/upstream-bots-sync-20261129
Nov 30, 2026
Merged

karlorz merged 10000 commits into
fork-mainfrom
codex/upstream-bots-sync-20261129

Conversation

@karlorz

@karlorz karlorz commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

ELI5

Upstream Orca added a big "Bots" feature (bots that manage their own work folders), a new Electron engine, and a new phone app version. This pull request brings all of that into our fork while keeping everything that is ours: our own sign-in, relay and push servers, the phone pet voice, Cantonese and Mac speech, Grok controls, automations, Herdr and the AppImage updater.

What Changed

  • Merges stablyai/orca main (through 7ee4c2fdcc0) into the fork. Desktop base is upstream v1.4.283; the Android train is 0.0.72 (versionCode stays at 112 here; the release cut bumps it).
  • Keeps fork features and entry points (config/fork-features.yml, docs/fork-entry-points.md); every registered fork path still exists.
  • Phone app: replaces ES2023 array methods that Hermes lacks (findLast, toSorted, toReversed) with small helpers in src/shared/collections/backward-array-search.ts; restores the "Mac only" label on voice models that need a Mac; adapts fork-only mobile tests to the refactored upstream modules.
  • Build: CLI main entry names include the AppImage updater modules and the daemon pid-file parser; two zod imports use the namespace form so the mobile web bundle stays under its locale-table fence.
  • CI and tests: pr.yml verify also waits for windows_wsl; fork script tests follow upstream's relocated scripts; localization catalogs re-synced. Transport fixtures now use the real current E2EE server. Retired upstream workflow-text inventories are removed, while security, persistence, ownership, and process-safety assertions remain. Golden journeys follow the current menus, the new agent-surface onboarding step, keyboard filter selection, search expansion, and consuming mailbox reads. Serializer fixtures load asynchronously without adding blocking file access.
  • Renderer callbacks now publish their current owner and session only after React commits. Generated skill guides retain their text using compact string encoding. Fork macOS packaging now builds the process-footprint, socket-owner and menu-bar helpers.
  • Closing a chat now stops its provider only after durable tab retirement succeeds, preserving the agent when saving the close fails.

Why

Staying current with upstream keeps security fixes and features flowing and keeps later syncs small. Fork-only behavior is re-verified after the merge instead of trusting the textual merge.

Linked Issue

N/A: maintainer-owned fork sync on karlorz/orca; no upstream issue is opened.

Visual Proof

N/A. This is a merge of upstream UI plus compatibility fixes; the presentation change is one "Mac only" label on the phone voice model list. Callback lifecycle repairs do not change layout.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns

Earlier local results (before the final CI repairs): mobile tsc clean, mobile vitest 212 files / 1174 tests pass, root pnpm tc clean, pnpm build:desktop succeeds (including the mobile web bundle), localization catalogs verified, fork config script tests pass. Platform tested earlier: macOS arm64. The user reported that local testing hung the Mac and explicitly requested no further local tests or builds. All remaining validation of the current head runs in GitHub CI; Linux, Windows, macOS and Android packaging run in CI/release workflows. No phone launch or human-audible voice check has been performed.

Performance

None, because this is a sync merge plus compatibility fixes; the fork changes add no new hot-path work.

Risk

Level: High (large upstream merge). Main risks: Electron 43 to 45 (macOS 13.4 minimum), daemon protocol 52 to 65 (mixed versions are normal), Bots owning git worktrees, Bots connector services (Slack, GitHub, Linear, webhook) needing Orca Cloud rather than our self-hosted relay, a newer chat schema that older readers refuse, and workspace chat cleanup enabled by default for fresh profiles (existing profiles retain their prior choice). Back out with a plain revert of the merge commit; chat data written by the newer schema would not be readable by older builds.

AI Disclosure

Prepared with Codex (GPT-6) with read-only scouts. Earlier local validation is listed above; final validation is delegated to GitHub CI at the user's request.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Security, cross-platform, SSH, mobile and backward compatibility were reviewed against the fork preservation docs.

Checklist

  • This PR is small and focused: this is a large upstream sync with required fork compatibility repairs
  • I explained what changed and why
  • I stated the risk and the back-out
  • Before/after screenshots: N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered
  • Full pnpm lint and pnpm test suites: CI will cover

orca-remote-automation Bot and others added 30 commits November 28, 2026 21:26
…ai#52184)

* feat(pr-page): one-row header, files toolbar and sticky status bar

Rework the pull request page so every row shares the same left and right
edges and every control sits at one 28px height, with no fixed-width
text buttons.

- Header: back, owner/repo #n, Start or Resume workspace, and a More menu
  (Start new workspace, Copy GitHub link, Open on GitHub, Close pull
  request). Title clamps to two lines; branch chips truncate.
- Files: one 40px toolbar with file tree toggle, viewed progress,
  Unified/Split, Hide whitespace and a Diff options menu. Marking a file
  Viewed folds it; already-viewed files open folded.
- A sticky status bar replaces the Conversation actions card: merge split
  button, Ready for review on drafts, Fix checks when checks fail, Open on
  GitHub on conflicts, Reopen when closed.
- Narrow widths hide the file tree, repo name and secondary labels.

* fix(pr-page): address code and UX review findings

- Status bar: an auto-merge action keeps its real name at narrow widths;
  failing checks make Fix checks primary and merge outline; Fix checks is
  disabled without a registered repo.
- Fix checks request is dropped when leaving the Checks tab.
- Viewed: fold only after the write lands, never over a fold the user
  changed meanwhile, and return focus to the checkbox after the row remounts.
- Header, tabs and files toolbar: edge icons sit on the shared 24px edge;
  the narrow workspace action is a quiet icon with a tooltip.

* fix(pr-page): scope viewed folds and focus to their own action

- A viewed write folds its file only if no fold changed and the diff was
  not rebuilt while the write was in flight.
- Focus returns to the checkbox that started the write (success, failure
  or remount), unless the user moved focus or clicked elsewhere meanwhile.
- The Checks tab stays mounted while hidden, so a Fix checks launch keeps
  its setup dialog when the user switches tabs.
- Status bar actions shrink and truncate instead of overflowing.

* fix(pr-page): keep existing translations for Expand all and Collapse all

* fix(pr-page): per-file viewed folds and simpler focus return

- A viewed write's fold is cancelled only by a fold of the same file,
  Collapse/Expand all, or a rebuilt diff; other files' folds no longer
  block it.
- Focus returns through one layout effect after the commit that settles
  the write, replacing the document listeners and frame retries.
- The Fix checks dialog renders in the loading and empty branches too, and
  the request is consumed only while the Checks tab is active.
- A truncated merge action label shows its full text on hover.

* fix(pr-page): release viewed focus on any deliberate move; keyboard merge tooltip

- One viewer-lifetime capture listener releases the pending focus return on
  any pointerdown or focus move away from that file's checkbox, so clicking
  a blank area during the write is respected.
- The merge action shows its full label in a tooltip on hover and keyboard
  focus instead of a native title.

* fix(pr-page): address independent UX review

- Status bar shows on all three tabs; the Checks tab row drops its own
  Fix checks since the bar carries it (also on drafts, as a secondary).
- Checks header stays on one line at narrow widths: the count chips hide
  and the summary truncates instead of wrapping under the actions.
- No local repo: the reason stays visible at narrow widths and the merge
  chevron dims with the button.
- Start workspace is outline so each state has one primary; the narrow
  icon is a workspace icon, not an arrow.
- Files toolbar shows Show file tree only while the tree is hidden and
  hands focus between the two tree toggles; Collapse all is inset.
- Tabs start their box and underline on the 24px edge; the Checks badge
  shows the failing count in red.
- Per-file link reads "Open file on GitHub" and opens that file's anchor.

* fix(pr-page): tree focus only for user toggles; failing-badge label; fix pending state

- The tree focus handoff runs only after a toggle the user pressed, not
  when a saved collapsed tree is restored.
- The red Checks badge carries screen-reader text saying it counts
  failing checks.
- The status bar's Fix checks shows a spinner and is disabled while the
  request or launch is in flight.

* feat(pr-page): status strip under the tabs and a Review button

- The bottom status bar becomes a 44px strip directly under the tabs on
  every tab, so the merge, Fix checks, Ready for review, Reopen and Open
  on GitHub actions sit near the top instead of a far bottom corner.
- The header gets an outline Review button left of the workspace button.
  Orca cannot submit a review yet, so it opens the pull request's Files
  page on GitHub in the system browser.
- The tree focus handoff now runs only when the pressed toggle had focus,
  and any later pointer or focus move releases it.

* fix(pr-page): tree focus owner is the activating control; Review needs a web URL

- The tree focus handoff compares the focused element with the control
  that was pressed (the toolbar button itself, or the tree's own collapse
  button), so a focused file row no longer counts as the owner.
- The Review button is shown only when the pull request has an http(s) URL.

---------

Co-authored-by: orca-remote-automation[bot] <359726236+orca-remote-automation[bot]@users.noreply.github.com>
)

Co-authored-by: orca-remote-automation[bot] <359726236+orca-remote-automation[bot]@users.noreply.github.com>
… it (stablyai#47190)

* ci: lint the files each main push changes, and name the PR that broke it

* ci(main-push-lint): attribute only to commits in the push, keep lookup failures distinct, bound attribution time

* ci(main-push-lint): fail rather than narrow the lint range when the push base or parent cannot be fetched

* ci(main-push-lint): report fileless oxlint errors without a location or attribution

* ci(main-push-lint): report an unexplained oxlint batch failure even when another batch has errors

* ci(main-push-lint): lint every push in its own run, report before attributing, render untrusted paths safely

- Move the lint to its own `Main push lint` workflow with no concurrency group, so a newer
  push can never replace a pending run and drop that push's files (MP-C1-01).
- Diff any nonzero `before`, forced or not; lint every file when a push creates the branch;
  fail when the base or a manual run's parent cannot be fetched (MP-C1-02).
- Label attribution "changed in this push by", name only a single merged PR into this repo
  and branch, show ambiguous PRs, and mark subject-derived numbers as unverified (MP-C1-03).
- Publish annotations and the summary before any PR lookup; bound lookups by a global
  budget, request cap, file cap and first-failure breaker, and memoize PRs by SHA (MP-C1-04).
- End oxlint options with `--` and batch by path characters (MP-C1-05).
- Escape summary cells, tool output and log lines, cap the summary under 1 MiB, and report
  how many candidates oxlint actually linted (MP-C1-06).
- Count a batch only when oxlint printed its Finished line and explained any failure (MP-C1-07).

* test(main-push-lint): pin escaped summary text and cover back-to-back pushes A, B and C (MP-C1-01, MP-C1-06)

* test(main-push-lint): prove the attribution breaker after a successful compare and that the verdict precedes the first lookup (MP-C1-04)

* test(main-push-lint): leave the attribution time bound room on a loaded runner

* ci(main-push-lint): accept oxlint's Finished line under nested configs, keep command-shaped paths out of the runner's command parser

- oxlint 1.94.0 prints "Finished in … on N files using … threads." without "with N rules" when a
  nested .oxlintrc.json applies (mobile/), so a clean push there was reported as unfinished.
- A plain log line that starts with `::` or contains `##[` is a workflow command; a path such as
  `::stop-commands::x.ts` could pause the real annotations. Log lines now show those as \\u escapes.

* ci(main-push-lint): lint the scope of a changed lint policy, plan before installing, and bound what it reports

- MP-C2-01: a push that adds, edits or deletes an .oxlintrc.json, a file a config extends, or the locked
  oxlint version now lints every file that policy governs (the whole tree for the root, the subtree for a
  nested config), next to the touched source files. A failing file the push did not touch names the policy
  change and the commits that made it, not a guessed source PR.
- MP-C2-02: attribution asks for one more path-history entry than the push holds and 100 PR associations;
  a full page that could hide more is labelled partial instead of complete, unique or absent.
- MP-C2-03: Git paths are decoded as strict UTF-8 from its raw bytes; a path that is not valid UTF-8 is
  reported as not linted instead of being passed on as a different path. The summary no longer guesses
  why oxlint excluded a path it was given.
- MP-C2-04: diagnostics may hold U+2028/U+2029; only exit 1 with a parsed error explains a failed run, and
  exit codes, signals, spawn and buffer errors are kept with the run's diagnostics; one lint deadline stops a
  stalled child so earlier batches still report; plain log lines share a 256 KiB budget, annotations are
  capped, and every omission note says how many rows the log really holds.
- MP-C2-05: a commit's parents are read only from its headers, so a root commit whose message has a line
  starting with "parent" stays a root.
- MP-C2-06: a plan step on the bare runner resolves the range and scope first; dependency setup and the
  lint run only when there is something to lint, and an unusable range fails in the plan step.

* ci(main-push-lint): count every changed candidate in the opening log line, including ones a walked directory covers

* ci(main-push-lint): follow extends through any file, keep BOM-led and deleted odd paths right, bound the policy list

- Follow `extends` recursively through every referenced file, whatever its name, with the fixed point ending
  cycles, so a change to a file a shared base extends still lints the consuming config's scope.
- Decode paths with ignoreBOM, so a leading U+FEFF stays part of the name instead of naming another file.
- A deleted path that is not valid UTF-8 has nothing to lint and no longer fails the run.
- List at most 10 policy changes and walked directories in the summary, then a count of the rest.
- Type the stdout/stderr join and the extends cause map for the type-aware code-quality gate.

* ci(main-push-lint): read lint policy the way the pinned oxlint does, keep Git-ignored touched files, bound retained output

- MP-C3-01: policy discovery moves to oxlint-policy.mjs and follows oxlint 1.94: .oxlintrc.json,
  .oxlintrc.jsonc, oxlint.config.ts and oxlint.config.mts in any directory; JSON configs and extended files
  read with comments and trailing commas; `extends` and symlinked configs followed through files of any
  name. A script config, a config that does not parse, or a link out of the repository cannot be read, so
  its scope is linted on every push. Moves count as a delete plus an add, so both scopes are linted.
- MP-C3-02: a touched file under a walked directory is still named when Git's ignore rules match it, since
  oxlint's walk skips such files while it lints a named one; diagnostics reported twice are kept once.
- MP-C3-03: a failing untouched file names every policy change whose scope holds it (up to five, then a
  count), and each config records every changed input it depends on.
- MP-C3-04: each child's output is digested as it ends, so one child's output is the most held at once;
  at most 5,000 errors are kept (the rest counted), messages and unfinished-run excerpts are cut, and each
  annotation is cut before escaping.
- MP-C3-05: the summary cites only the unfinished-run paths actually written to the log, and the plan step
  log says how many changed files are named explicitly.
- Git-heavy test suites get a 120 s timeout, as dozens of short processes outlast the default on a loaded runner.

* ci(main-push-lint): map backslash paths oxlint printed as slashes, say "not linted" for paths oxlint never got

- oxlint 1.94 prints a literal backslash in a reported path as a slash. Each reported name is mapped back to
  the one tracked file it can stand for; when it could be several, the annotation drops its location, names
  the candidates, and attribution says so instead of naming the wrong file.
- Paths that never reached oxlint (not valid UTF-8, a batch the deadline kept from starting, oxlint not
  runnable) are reported as "not linted", apart from runs oxlint started but did not finish.
- Walked-path membership uses a Set, so a branch-creating push with every file walked stays linear.
- The symlinked-config test is skipped on Windows, where a checkout may not create symlinks.

* test(main-push-lint): pin that an error two batches both report is kept once

* ci(main-push-lint): follow linked policy exactly, name every touched file on a walk, keep reports bounded and truthful

- MP-C4-01: a symlink is followed by the exact bytes of its target (no trimming), each hop is an input, and a
  linked config's `extends` resolve from where oxlint opens it, not where the link stores it. JSON configs may
  hold # comments, as oxlint accepts. A config that loads JS plugins counts as unreadable.
- MP-C4-02/03: every touched file is named, even inside a walked directory, since a nested .eslintignore or
  .gitignore can hide it from oxlint's walk. This drops `git check-ignore`, with its pathspec parsing of
  colon-prefixed names and global excludes. The count notes which named files may also be walked.
- MP-C4-04: an untouched failure says how many policy changes cover it before naming up to five, with each
  cause and its commits cut; unreadable inputs stay visible next to known ones; no GitHub request is made when
  there is nothing to look up.
- MP-C4-05: repeats are dropped only across runs, and only for files both walked and named, by fixed-size
  hashes up to a bound (past it, the count says it may include repeats); excerpts are kept for the first
  unfinished runs only.
- MP-C4-06: a spawn failure is "not linted", a run that crashed after reporting errors is "not fully linted".
- MP-C4-07: a reported path two tracked files could have produced is shown as uncertain in the log and the
  summary, both errors are kept, and a failed lookup of tracked paths no longer costs the lint verdict.
- Tests split: policy discovery and walk coverage move to oxlint-policy.test.mjs, with shared workflow fixtures.

* ci(main-push-lint): keep repeats on ambiguous printed paths, follow symlinked directories, count override plugins

- A repeat across runs on a printed path that more than one tracked file can produce is kept and flagged, not
  dropped; without the tracked-path index no repeat is dropped. The index is built once, before linting.
- Symlinked directories on the way to a config or extends target are followed, each link recorded as an input.
- jsPlugins declared inside `overrides` make a config unreadable too; empty lists do not.
- Retention limits not given fall back to the defaults, so a partial limit set keeps real excerpts.
- Policy integration tests assert the rule's annotation on the intended file, not only a failing exit.

* ci(main-push-lint): treat a link target that goes through a name and then '..' as unreadable

The file system resolves name/.. after following name, which may itself be a link, so collapsing it as text can
name the wrong file and plan no scope. Such a link now makes its config unreadable, so the config's scope is
linted on every push.

* ci(main-push-lint): treat name/./.. and name//.. link targets as unreadable too

'.' and empty segments do not move, so they no longer hide a name/.. that the file system resolves after
following a link.

* ci(main-push-lint): keep policy path bytes exact, keep attribution counts visible, label started runs and unverified paths

- MP-C5-01: the policy graph reads Git tree names and link payloads as bytes and decodes them strictly. A name
  that is not valid UTF-8 can no longer overwrite or stand in for a valid one; a link whose target is not valid
  UTF-8 makes its config unreadable (scope linted every push); a config at such a path walks the whole tree.
- MP-C5-02: an untouched failure's explanation is sized for the summary cell and the log line separately, with
  every count first (policy changes, how many have unreadable inputs, how many are shown), each change's input
  count and unreadable marker, and the first change's commits always within budget. A directly edited config
  keeps its unreadable status.
- MP-C5-03: paths in a run that started are "Not fully linted", whatever it printed; "Not linted" is kept for runs
  that never started.
- MP-C5-04: when tracked files cannot be read, every printed path is unverified: no annotation location, an
  explicit "path unverified" in the log and summary, and no PR lookup for it.
- The byte-path tests move to oxlint-policy-bytes.test.mjs.

* ci(main-push-lint): keep the first commit when its input path is long, and walk the tree when an unrepresentable config changes

- The first changed input's path is cut too, so its commits still fit the explanation's budget.
- A config added, changed or deleted at a path that is not valid UTF-8 makes the whole tree walk; deleting an
  ordinary file at such a path still changes no policy.

* ci(main-push-lint): keep the first SHA, policy counts and path notices in clipped output; look up only shown inputs

- MP-C5-02: a policy input's attribution is a short, commit-first form ("c60247760f #7", or why the lookup
  failed), and the explanation clips causes and paths exactly, so the first change and its SHA always fit
  whole after the counts. On the log line the failing file's name is clipped, so a long name cannot push the
  counts off.
- MP-C5-04: the "path unverified" (and "path uncertain") notice leads the log line, the summary location and
  the annotation, so a long path or message is cut after it.
- MP-C6-01: each explanation is planned first with the longest compact attribution, and only the first input of
  each policy change it can show is looked up; a second input the report never shows no longer spends quota.
- Attribution and report tests move to main-push-attribution-report.test.mjs and run through the real log and
  summary with a long failing filename, a long cause and a long first input.

* ci(main-push-lint): put every status and qualifier before variable-length text in each rendered line

The class behind MP-C5-02 and MP-C5-04: a qualifier that followed a long path, cause or filename could be cut
off. Every line the guard renders now leads with its fixed facts and qualifiers and clips the variable parts.

- Attribution log lines: a path notice ([path unverified ...] or [path uncertain ...]) comes first, and every
  row clips the failing file's name, so the status after it always reaches the log.
- "Lint policy changed" lines lead with the unreadable-input status, then the clipped directory, then the cause;
  the summary's policy list puts the same status before each cause.
- The "Linting ..." line gives the range and scope before the clipped list of walked directories.
- An unfetchable base reads "Refusing to narrow the lint range: cannot fetch ...", and the index-failure note
  says what it means before Git's message.
- One extreme-length test runs main() with paths and causes over 1,600 characters, a readable and an unreadable
  tracked-path index, and a stand-in oxlint, and checks every qualifier in every final log and summary line.
…2300)

Co-authored-by: orca-remote-automation[bot] <359726236+orca-remote-automation[bot]@users.noreply.github.com>
…cal paths (stablyai#52292)

A remote-link or image label ending in a local path whose last backslash
escaped the closing ] lost that escape, turning literal text into a live
link. Redact labels as they sit before their ], reusing the bare-path
escape rule, and pin the trailing-separator prose behavior.
…k to (stablyai#52156)

* feat(native-chat): show workers running in chats this chat handed work to

A chat that hands work to another chat by mail now shows that chat's
running workers as read-only "Other chats" rows in its worker island,
one row per chat with its name and count, opening that chat. Stop,
Clear and approvals stay with the chat that started the workers.

Handoff relations are recorded in the mail's own savepoint (the chat
the sender addressed, before routing), backfilled once from recent bot
handoff mail through an index, and pruned after 30 days unless a
counted worker still runs.

* fix(native-chat): backfill earlier handoffs in bounded pages; keep a handoff's writes atomic

- Backfill every bot handoff from the 30 days before it starts, newest first, in pages of 500
  bot requests read by rowid, each page its own transaction with its stored cursor; no index is
  built and no cap drops older pairs. The first page runs with the first island read, the rest
  on later turns.
- A handoff's run, sender and relation writes share the mail's savepoint.
- The island stream checks for an open transaction inside its error boundary.
- Tests: transactions held across many retries (backfill, stream), a committed backfill that
  survives a later rollback, paged coverage that resumes after a restart; drop tests the repo
  rules exclude (rendered UI behavior, mock listener wiring).

* fix(native-chat): pace backfill pages one per turn; skip wakes for unchanged relations

Only the first backfill page runs inside an island read; every later page runs
from the wake on its own timer turn, so a page's island re-reads never start
the next page in the same turn. A page that only meets older repeats of a pair
already recorded wakes no chat.

* fix(native-chat): bound each backfill page's follow-up lookup; read every request once

After a page, only the pairs it wrote are checked for a young relation or a
counted worker, so the lookup is at most one primary-key read per written pair.
Request times are wall-clock stamps that need not follow rowid order, so the
scan no longer stops at a page of old requests; it reads down to the first
request, skipping old ones.

* test(orchestration): give caller-test registry mocks the host-change hook

The runtime now watches the session host to run the island backfill, so these
mocks of the session registry need its host-change subscription too.

* fix(native-chat): address review comments on the Other chats rows

- A worker whose turn is done is not counted as running; its pane stays
  watched, so a new turn shows it again.
- The rows' comparison covers each counted worker's aging time and pane
  binding, and a resumed worker's rebind wakes islands that count it.
- A row whose chat can't be located here is shown as text, not offered as
  a row to open.
- A reading chat's copy of other chats' worker activity is dropped once no
  open island of it watches.
- The backfill's follow-up lookup runs inside the page's transaction.
- A status fresh exactly at its deadline still arms a check.
- Chinese chip text names workers, not chats.

* fix(native-chat): keep unlocated Other chats rows visible; isolate the rebind notice

The island shows whenever it has Other chats rows to draw, openable or not;
only openable rows take focus. The rebind's change notice runs after its
transaction, outside its rollback path, and a listener's error no longer
turns a committed rebind into a failure.

* fix(native-chat): drop a one-off read's copy even when the read fails; test the watcher count

The one-off island read releases the reading chat's copy of other chats'
activity in a finally block. The release test opens the second island as the
same chat's live session, so two streams really share the watcher count.

* fix(i18n): name workers in the Chinese Other chats chip

* fix(i18n): shorten the Chinese Other chats chip to fit the folded pill
… window (stablyai#52251)

* test(codex): cover a stopped compaction's provider turn after it settles

Three cases around a stopped /compact whose provider turn already settled:

- a new ordinary turn that reuses the provider turn id and fails inside the
  Stop's window keeps its one error row and reads as a failure;
- a repeated failed completion still shows no error row after eight more
  compactions settled inside the window;
- on the production settlement path (the writer's settlement step), a repeated
  failed completion writes no second turn record, inside or past the window.

The stop writer fixture gains an opt-in transition path shaped like the
production sink, so a turn's settlement runs as the writer's settlement step.

* fix(codex): scope a settled compaction's Stop link to its own turn and window

A settled /compact keeps a link from its provider turn id to the command's
journal turn, so a repeated failed completion is decided against the command's
Stop. Two gaps:

- The link outlived a new turn under the same provider id, so that turn's real
  error inside the window was hidden. A turn/started for the id now drops it;
  a replay of a turn the kept agent had finished keeps it.
- The link was evicted by count, so eight other settled commands inside the
  window brought the error row back. Links now go only once older than the
  Stop's window (STOP_DECIDES_FAILURE_MS); past that a repeat is a real failure
  with or without the link. The count cap only decides when to look.

* test(codex): cover reused ids, child threads and the link cap for settled compactions

- The reused-provider-id case now runs on the production settlement path, where
  the new turn's end must still be written and read as a failure.
- A child thread's turn under a stopped compaction's provider turn id shows its
  own error row, and the compaction's later repeat still shows none.
- Past the cap on kept links, the oldest goes even inside the Stop's window.
- A repeated completion of an ordinary turn is still written only once.

* fix(codex): settle a turn that reuses a settled compaction's provider id

- A new turn under a settled compaction's provider turn id got the same
  settlement id as the compaction's end, which the writer had already recorded,
  so the new turn's end was never written and it stayed running. Such a turn's
  settlement id now carries a reuse count. Turns that reuse no id keep their
  settlement id, and a repeat of an end that was already written is still
  skipped.
- Links are kept per thread: a child thread's turn under the same provider id
  neither drops the compaction's link nor has its own error decided by the
  compaction's Stop.
- Links now have a hard cap of 64, past which the oldest goes even inside the
  window. The expiry scan stops at the first link still inside the window.

* test(codex): keep a child thread's same-id turn apart from a running compaction

A child thread's turn that starts and fails under a compaction's provider turn
id while the compaction is still running keeps its own error row, and the
compaction ends once, by its own end, reading stopped.

* fix(codex): a running compaction belongs to the thread that claimed it

A command carried by a provider turn was looked up by the provider turn id
alone, so a child thread's turn under the same id had its error decided by the
command's Stop, and its end ended and settled the command. The command now
records the thread that claimed it, and its end, error, compaction marker,
settlement and Stop lookup apply only on that thread.

Reuse counts for turns that never end now share the links' cap.
…ablyai#51805)

* e2e setup: don't let an inherited git env re-init the parent repo

* e2e setup: also drop an inherited GIT_CONFIG so seeding can't rewrite another repo's identity

* e2e setup: scrub the remaining repo-locating git env and keep Windows test routing for the renamed setup
…bels (stablyai#52288)

Machine translation rendered many one-word English labels as Chinese
adjective-的 forms (红色的, 最近的, 失败的) and picked the wrong sense
for a few: the glab CLI read 光亮的 ("shiny"), a Raw notebook cell read
生的 ("uncooked"), a Fresh automation session read 新鲜的, Urgent read
紧迫的, and No priority read 无优先权 (a legal right of priority).

Use the plain label (红色, 全局, 失败, 最近) or the right sense (紧急,
无优先级, 优先级, glab, 原始, 全新, 本地). Settings search keywords keep
the words main already matched (过时, 声音, 私人) so search recall does
not regress.

67 desktop and 6 phone values; keys and other locales are unchanged.

Refs stablyai#32207

Co-authored-by: x-Ai <[email protected]>
Co-authored-by: Neil <[email protected]>
Co-authored-by: buf0-bot[bot] <252831055+buf0-bot[bot]@users.noreply.github.com>
…lf-extracting bootstrap (stablyai#52282)

Move the gzip decompress-and-run PowerShell bootstrap into its own module
and load it with a dynamic import whose rejection is recorded instead of
thrown. Antivirus heuristics quarantine the chunk holding that literal;
with a static import the missing chunk aborted main-process startup.
Inline commands under the 8,000-character budget never need it; an
oversized command now throws a clear error (with the load failure as
cause) only when the bootstrap is gone.

Move the gzipSync ratchet allowance to the new module and drop the
unused decodeRemotePowerShellScript helper.

Fixes stablyai#52293
Refs stablyai#40702

Co-authored-by: Neil <[email protected]>
…onment (stablyai#52324)

When OPENCODE_API_KEY is exported only in a shell rc file, Orca started
from Finder, the Dock or a systemd/SSH service never has it in
process.env, so the OpenCode Go usage meter reported missing
credentials. The resolver now fills just that key, trimmed, from the
cached login-shell capture when the process env lacks it. The read is
cache-only, so it never spawns or waits for a shell, and a process key
still wins.

Fixes stablyai#52298

Co-authored-by: Neil <[email protected]>
…ndow's final 。 in zh (stablyai#52317)

The phone's Simplified Chinese catalog left the More keys sheet's Paste
and the Git menu's fetch in English, and used the one-character
fragments 推/拉 for Push/Pull. Use the desktop's terms 粘贴, 推送, 拉取
and 获取, and add the missing host.updates.alreadyCurrent value so the
update sheet no longer falls back to English.

The macOS Computer Use permission window keeps its zh copy in Swift and
still ended five sentences with 。. Drop it to match the zh catalogs.

The desktop's demo phone key row keeps Paste as a key name, beside Esc,
Tab and Ctrl+C.

Refs stablyai#32207

Co-authored-by: x-Ai <[email protected]>
…ge (stablyai#52318)

The mobile app showed the shipped workspace status names (Todo, In
progress, In review, Done) and this computer's built-in name (Local Mac,
Local Windows, Local Linux, This computer) in English in the status
sections, the status sheet, the row menu, the workspace options host
list, and the new-workspace run target picker.

Translate a status name only when it is still the shipped default, and
translate this computer's name only when the host has no name of its
own, so names users set stay literal, as on desktop.

Original fix by @x-Ai in stablyai#52318.

Refs stablyai#32207

Co-authored-by: x-Ai <[email protected]>
Co-authored-by: Neil <[email protected]>
…sponse parses (stablyai#52346)

createDoc asked Drive for id,name,webViewLink but parsed the answer with
DriveFileSchema, which requires mimeType. The partial response failed to
parse, so the CLI reported a failure after the doc was already created,
and a retry made a duplicate. Request mimeType too.

Fixes stablyai#52333

Original fix by Afloat16 (stablyai#52335).

Co-authored-by: Afloat <[email protected]>
…ole SKILL.md files (stablyai#52336)

summarizeSkillMarkdown and declaredSkillMetadata returned V8 sliced
strings of the decoded SKILL.md, so every cached name/description kept
the whole file text alive. Copy both fields with the shared
ownRetainedString helper so the file text can be freed.

Fixes stablyai#52334

Co-authored-by: Neil <[email protected]>
Co-authored-by: xwc2020-2 <[email protected]>
…lyai#52223)

Stop on a bot item's worker chip and on the bot's chat rows now goes to the bot's own computer, carries a per-click request id so that computer can stop a worker it placed elsewhere, and reports a stop it cannot confirm in the host's own words.
…ed scroll, and high-contrast active badge (stablyai#52261)

* feat(settings): redesign AI provider account lists with search, bounded scroll, and high-contrast active badge

* fix(settings): use aria-disabled on account card and action tooltip triggers

* fix(settings): show always-visible 6px scrollbar on overflowing account lists

* fix(settings): fade overflowing account list edges to remove clipped border sliver

---------

Co-authored-by: orca-remote-automation[bot] <359726236+orca-remote-automation[bot]@users.noreply.github.com>
Kelvin Amoaba and others added 29 commits November 30, 2026 02:33
…ut (stablyai#52868)

Edit computer read each server once per visit and asked again only when the server list changed, so
a status read that timed out while the computer stayed connected left the server's row missing until
the screen was reopened. A read that didn't answer is now asked again after 15 s, up to three times
per visit, and only while the screen is in front.
Co-authored-by: buf0-bot[bot] <252831055+buf0-bot[bot]@users.noreply.github.com>
…ablyai#52812)

Windows PowerShell 5.1 and PowerShell 7 write stdout in the host's OEM
code page when run over sshd, while Orca decodes remote output as UTF-8.
Paths with non-ASCII characters (CJK user profiles, accented folder
names) came back as replacement characters.

powerShellCommand now prefixes every encoded script, inline and gzip,
with a guarded [Console]::OutputEncoding = UTF8Encoding($false)
assignment (BOM-less; a no-op when there is no console). The folder
browse's local pins are dropped since the wrapper now covers them.

Fixes stablyai#52750

Co-authored-by: Neil <[email protected]>
… output at 64 KiB (stablyai#51700)

* Delete Orca chats with their workspace and cap saved tool output at 64 KiB

* Reclaim freed journal pages 16 at a time

* Bound each journal page-reclaim step to about 4 ms

* Keep older builds from deleting Orca chats via the transcript switch; review fixes

* Drop retired copy keys and refresh generated localization files

* Convert before a cleanup forget outside the chat's lane; honor older builds' switch changes; match cut outputs in Codex catch-up

* Cleanup skips chats an older Orca saved until they are copied; check a gone folder once per batch of its chats

* Delete never-opened chats of gone workspaces; drop an unrelated lockfile change

* Check a gone folder fresh before every deletion again

* Count chats a cleanup leaves for later as skipped

* Keep an older host's combined switch reachable; charge cut outputs in full during Codex catch-up

* Re-check gone folders fresh but cheaply: a catalog write revision and settled folder listings; keep the cut copy in Codex catch-up

* Keep new profiles' worktree-card seed and Orca chat cleanup through offline writes; hold a failed MCP call's cut copy in Codex catch-up

* Store the capped tool output in the worker-send contract

* Hold a helper result's cut copy in Codex catch-up; retry only the chats a cleanup left for later, backing off from 10 min to 6 h

* Retry chats a cleanup left for later when conversion copies them, not on a timer; keep a saved cut output through Claude catch-up; push skipped ids without copying

* Space retries of copied chats at least 10 min apart

* Keep only a real cap cut through catch-up, so a running preview recovers its whole output; listen for copies from the start of a sweep

* Type the running-preview recovery test

* Protect listed paths under a symlinked folder that is retargeted mid-sweep

* Delete a tabless chat without loading the whole tab index; the writer checks main's word and falls back

* Index a chat's tab by session so deleting a tabless chat searches, not scans; skip comparing an unchanged tab table

* Keep the parts a whole-settings write names; count each freed page as it lands; translate the new deletion settings

* Keep the saved cut copy of any tool rebuilt from its whole output, so catch-up never revises an unchanged row
…d turns (stablyai#52675)

* perf(native-chat): re-project generated images only for turns whose rows changed

Tracked in STA-14945.

* perf(bots): keep folded note rows' identity across rebuilds

Unchanged history now reaches the generated-image projection with the same rows,
so bot chats hit its per-turn cache too.

* perf(bots): compare folded rows through a type guard
…tablyai#52802)

* Name the sync call a stalled main thread is inside in hang reports

* Publish the innermost blocking call, redact to file names, cover fd and iterate calls

* Reset SQLite iterators on early exit, skip annotation work nobody reads, keep fd calls named by their file

* Bracket the slot clear, key the label cache on its mode, measure call age on main's clock basis
… and fast-path cleanly linked codex history (stablyai#52412)

* perf(usage,codex): lazy-load usage stores, coalesce worktree history, and fast-path cleanly linked codex history

* fix(usage,codex): fix ast-grep wall-clock rule and address Greptile P2 findings on shutdown worker & missing manifest

* fix(usage): prevent setEnabled overwrite on shutdown, add temp cleanup minimumAgeMs, and drain worktree history on dispose

* fix(usage,codex): serialize history at write time, skip fallback reads on stop, keep counting shared passes

* fix(usage): save worktree history within 250 ms of the first change; format

---------

Co-authored-by: Brennan Benson <[email protected]>
… and item status (stablyai#52423)

* perf(db): add covering/partial SQLite indexes for orchestration and bots

* perf(db): converge creator-pane covering indexes on open instead of a schema bump

* perf(bots): apply bot-items status indexes on open so older releases keep the file writable

* perf(bots): index live bot work by bot only; format index tests

* perf(db): keep orchestration creator-pane indexes; their row order serves the Activity history query

* test(bots): explain the SQL liveRows runs and close stores on every path

---------

Co-authored-by: Brennan Benson <[email protected]>
… the main bundle dir (stablyai#52858)

Shared main code is emitted into out/main/chunks, so the Agent Dashboard
popout's join(__dirname, '../renderer/popout.html') and its preload path
resolved under out/main/ and the packaged popout loaded a blank
chrome-error page. Resolve the renderer HTML and preload for the popout,
workspace-space and main windows through one helper that strips the shared
chunk dir, the same rule worker entry resolution already uses. The
workspace-space and main windows were not broken (they are inlined into
main-runtime.js today); they move to the helper so a bundling change cannot
break them the same way. The backend-port document trust check builds its
trusted renderer URLs through the same helper, so the loaded and trusted
paths cannot drift apart.

Follow-up: the serve-mode offscreen-browser preload
(offscreen-browser-backend.ts) has the same chunk-dir bug and is not
covered here.

Refs stablyai#52584

Original fix by @mark-l-rise (stablyai#52858).

Co-authored-by: Neil <[email protected]>
…ing (stablyai#49338)

* fix(mobile): recover a lost Relay credential rotation over Relay and stop sending every refusal to re-pair

When a phone's credential rotation committed on the relay but the reply was lost,
the phone kept dialing its old token, which the relay refuses once the 24h grace
ends. The phone now dials its saved pending token after the relay refuses current
and grace, and adopts it from the resume confirmation. Refusal advice now says to
connect once on the host's network or re-pair, and Copy report includes the saved
credential's versions, expiries and pending state.

* fix(mobile): treat a director 401 as a credential refusal and adopt pending while the old token is in grace

* fix(mobile): show a director refusal at once and dial pending only after the relay refuses current

* fix(mobile): keep a director 401 from condemning a token and slow retries of an unconfirmed pending install

* fix(mobile): fold the pending retry gate into the existing slow gate

* fix(mobile): follow the design ruling for unconfirmed Relay credentials

* style: trim controller comment

* style: fit the controller under its line limit

* fix(mobile): adopt a saved pending at once, retire refusals on promotion, and ignore repeated network callbacks under the slow gate

* fix(mobile): keep connectivity restores lifting the slow gate, skip relay candidates once direct wins, bound the report's keychain read

* fix(mobile): share one in-flight credential read across diagnostics reports

* fix(mobile): spare a refused pending, keep lease-refresh retries, re-pair advice for undialable hosts, one report deadline per host

* fix(mobile): reread saved credentials while only pending is left, and skip abandoned report reads

* fix(mobile): dial director-refused tokens last and stop abandoned keychain reads before each native probe

* fix(mobile): try director-answered tokens least recently first, and say to re-pair if a direct refresh doesn't help

* fix(mobile): publish no recovery path for a gated reprobe dial

* fix(mobile): only a director 401 marks a token tried, and quiet path updates under a refused verdict

* fix(mobile): bound retries of a refused pending, one director lookup per attempt, and a trailing retry for throttled network callbacks

* fix(mobile): cancel a superseded trailing network retry, and spend the attempt's director lookup on any resolve

* fix(mobile): count director refusals of pending toward its retry budget

* fix(mobile): spend pending's retry budget on any failure behind a standing refusal

* fix(mobile): pause a failing pending until a resume or network change instead of condemning it

* fix(mobile): a host-offline answer doesn't spend pending's budget, and only a resume or real network move refills it

* fix(mobile): give a paused pending one automatic try per doubling window, and honor Retry-After on gated reprobes

* fix(mobile): guard report expiry formatting, keep background cadence on a late network read, and let host-offline leave the slow gate

* fix(mobile): clamp the report's expiry date instead of a separate formatter

* fix(mobile): drop the link-local re-pair branch that the refusal advice already covers

* perf(mobile): no dial-phase publications under a refusal verdict, and no keychain reread at host-offline cadence

* fix(mobile): a 4404 lifts the credential gate, a refused pending stays recoverable, steady verdicts stay quiet, and link-local hosts get re-pair advice

* fix(mobile): trim refusal advice strings to fit the mobile web bundle budget

* fix(mobile): trim diagnostics copy to keep the mobile web bundle under budget

* fix(mobile): share the host-offline check and compact the relay recovery code to fit the mobile web bundle budget

* fix(mobile): a gated lift refills pending, a director 401 retries only pending, a paused pending defers lease retries, and signed-out stays quiet

* build(mobile): raise the eager bundle fence by 269 bytes for quiet steady Relay verdicts

* fix(mobile): a gated lift grants pending one try per pause window, a gated lease refresh keeps the slow reprobe, and mapped link-local hosts get re-pair advice

* fix(mobile): a gated lease refresh keeps its slow reprobe and replaces on it, and a paused pending skips the keychain reread

* fix(mobile): a gated lift runs a due lease replacement, carries the attempt's refusal as verdict evidence, and skips lifts that cannot dial

* refactor(mobile): descope pending recovery to one try per ordinary recovery attempt; drop the speculative retry budget, gated-lift and lease-retry machinery

* fix(mobile): a director 401 benches the old token when a pending exists, so a moved host's pending gets its own lookup; the workspace screen passes the endpoint for link-local advice

* fix(mobile): a director 401 gives pending the next lookup instead of retiring current, refusal advice is computed only for refused hosts, and the eager fence takes main's 13 bytes

* fix(mobile): a refusal of the unconfirmed pending install is transient and retried at the normal backoff; the eager fence takes main's growth

* fix(mobile): a refused pending takes the slow credential reprobe and ages out with a local lease

* fix(mobile): pending keeps no local lease, a same-cell answer doesn't redial pending, a late lookup after a direct win is dropped, and Home's unreachable projection skips advice

* fix(mobile): only a late director answer skips the route write, so direct rotation's route is saved; a gated failure keeps the director's Retry-After

* fix(mobile): match the host name's apostrophe in the Relay refresh advice

* fix(mobile-relay): leave the credential gate when an accepted credential reports host offline

A 4404 means the cell accepted the credential and the desktop is offline, so a
refused pending that commits later retries at the 5-15 s offline cadence instead
of the escalating credential reprobe.
* feat(codex): shared Codex servers survive an Orca restart and update

* fix(codex): unanswered requests leave the shared ack floor; reattach lists every loaded thread

* fix(codex): shared reattach fails closed; quit saves before the last ack; held chats keep their server and cuts

* fix(codex): forced acks save every chat's deferred text; no expected-chat cutoff; bounded unresolved roots and retries

* fix(codex): deleted chats end their kept pooled work; one read limit per server; recovery scans bounded

* test: import the moved chat drop

* chore: one import per module

* fix(codex): deletion ends a kept pooled run first or waits; recovery floor and drops stay off the chat count; cleanup inside the read limit; partial-listing expiry cuts

* fix(codex): deletes wait on one stop per chat with a deadline and refuse an unconfirmed interrupt; kept-chat loss markers survive eviction; drops visit each group once; listing stops on a repeated cursor

* fix: hand Promise.all a promise for agents without a stop

* fix(codex): a refused delete keeps the chat's whole held family; restored chats hear unknown loss once

* fix(codex): a thread whose stop failed stays subscribed

* fix(codex): a cut a chat learns after choosing replay reopens it from history; an overflowing restored backlog is let go with a cut

* fix(codex): an ended lease claims no more threads

* fix(codex): a restored chat's close reads its turns before interrupting; a delete whose commands aren't proven gone drains the server

* fix(codex): a Stop or cancel while a kept chat reopens stops its run; a shed during reopen keeps its requests; quit keeps a server any chat was handed off on; bots share the app server where nothing is kept; drop stray lockfile churn

* feat(codex): a kept server with no chat open here goes back to its daemon with every chat's open work, keeping recovery's owners and cuts for its next attach (rev 8)

* perf(codex): server-wide open work reads the notifications already parsed, never a line again

* fix(codex): a spool cut before a reattach cuts every restored chat; quit hands off the server's own open work; open work ends visit only their thread's tasks

* fix(codex): a pooled run's placement records its server's start time for exit proof; a retry that finds an unheld ancestor re-roots the family on it

* fix(codex): a delete is refused, saying why, while a helper on the chat's kept server can't be tied to a chat; rechecked right before the delete commits

* fix(codex): hand-offs read turns that started before the attach; a delete waits until its commands are proven gone; a chat with no part left on an attached server reads as gone; a released helper stays held until interrupted

* fix(codex): narrow the open-work roster change first

* refactor(codex): shared servers rebuild each chat from Codex on reopen; Orca keeps no copy of their output

A kept shared server's chats resume their threads from Codex (thread/resume), with the open
window's buffer, instead of replaying output Orca held. Requests a thread's chat hasn't claimed
wait for it and are answered once; a hand-off reads open work from Codex with acks held. Delete
behaves as on main (follow-up STA-19416).

* fix(codex): a closing chat still takes the helpers it announces; a hand-off reads Codex once, fenced, and stops at the first failed read

* fix(codex): a reopened kept pooled run reads its running state from Codex after catching up (numbering, commands, helpers); close reads only threads loaded here; on macOS a shared server relays only under a daemon whose bundle resolves

* perf(codex): chats' thread-state reads on a relayed shared server share its four-at-once limit

* fix(codex): closing a reopened kept run stops its helpers still loaded on the server; a reopen that can't read its kept state leaves the run as it was

* fix(codex): history catch-up reads again a saved turn whose tool row is still running, so a background command that finished while no app watched shows its end

* fix(codex): a running command row marks its own turn for catch-up (by its turn scope); a failed loaded-thread listing leaves close unproven instead of adding threads; shared reads keep their timeout while queued, skip a caller that left, and a close's go first

* fix(codex): a kept run's close with an unlisted or unread thread stays unproven and routed, retried only on a change; a queued read past its deadline or for a handed-off chat is never sent

* fix(codex): a restored close whose loaded-thread listing fails stays unproven and routed; a failed read retries every 30 s; a close that can't prove its workload never marks its chat ended; catch-up reprocesses only the turns it selected

* revert(codex): catch-up reprocesses whole pages again, as on main, so a saved command row settled while no app watched can still take Codex's final output

* fix(codex): a reopened chat on a kept server keeps a turn Codex still runs as running, so it reads Working, close confirms and queued messages wait

* fix(codex): a reopened chat on a kept shared server settles its helpers' turns that ended while no app watched; a fresh run of the same launch joins the reattached server

* chore: drop stray lockfile churn

* fix(codex): settling a reopened chat's helper turns leaves a still-running background command to its live end; a close whose reads keep failing backs its retry off from 30 s to 5 min

* chore: drop stray lockfile churn

* fix(codex): a reopened chat on a kept shared server also reads from Codex each helper whose saved tool row still runs, so one that ended while no app watched settles

* fix(codex): a reopened chat on a kept shared server keeps a turn running from Codex's reported status (a saved start time never matches Codex's), and continues each command its saved rows show running instead of restarting its output

* fix(codex): a reopened shared-server chat restates as open only saved running commands on a thread Codex just read

* fix(codex): a saved running command restored from a history import keeps its own row when seeded, so its output continues there

* fix(codex): a seeded command's saved identity is the one its end resolves to; a command with both a live and a history row is seeded once, from its live row

* fix(codex): a running tool's frames resolve to the row it is tracked under, so a seeded command's end settles its own row even once its identity left the cache

* fix(codex): a running command Codex lists at reopen streams onto its history-import row when that is its only saved row

* fix(codex): on a kept shared server's reopen, background work is restated before helper turns are settled, so a helper that ended while no app watched closes its card

* fix(codex): a reopened shared-server chat settles helper turns last, after the buffered frames and the background-work restate, so a helper's newer turn keeps its card

* fix(codex): a handed-off lease keeps no frames and never sheds; a hand-off read re-lists loaded threads and is unknown if one appeared; a restored close reads threads its resumes opened during the wait; a relayed record's seq is its own line's

* fix(codex): acks hold from a quit's first hand-off, so a frame a handed-off lease drops is replayed by its daemon

* fix(codex): nothing lifts the ack fence while a quit hands off (an idle scan or failed hand-back that ends mid-quit)

* fix(codex): an idle read treats a thread Codex unloaded mid-read as idle (only a timeout makes it unknown); a carried running command is seeded as background work, so a turn's end doesn't settle and wipe its row

* fix(codex): an idle shared server always goes back to its daemon, which stops it once nothing runs; the app's snapshot read never stops it (a helper started after its read)

* fix(codex): an idle shared server stops when Codex reports nothing open and no turn began during the read; otherwise it goes to its daemon (no idle servers left behind)

* fix(codex): an idle shared server always goes back to its daemon with a one-minute idle stop, so the daemon (which sees every start after the read) stops it once quiet and none lingers

* fix(codex): an idle hand-back acks the lines this app read when none started a turn, so the daemon's idle stop isn't blocked by the read's own replies

* fix(codex): a handed-back shared server's unread lines never hold its daemon's idle stop (no app keeps its output); acks stay held from the read, so the daemon counts every start and end

* fix(codex): a handed-back shared server's idle stop skips only unread lines a reopen rebuilds or never shows (replies, turn and item frames, status); plan updates, goals and errors still hold it

* fix(codex): a handed-back server's unread lines are judged at the detach (before the spool files them) and as each later line arrives, so an empty scan's replies don't hold its idle stop

* fix(codex): notices whose payload can make them an error (a failed hook, a denied review) still hold a handed-back server's idle stop

* perf(codex): a kept chat's reopen reads only its tool rows still saved as running, through the unsettled-row index, not every tool row in its history

* fix(codex): a quit while a kept shared server is still reattaching hands it off instead of stopping it, so chats not reopened keep their work

* fix(codex): with shared servers on, a chat whose tools take the daemon's front (a bot's) runs on its own relayed app-server, so its run and tools survive a restart

* fix(codex): a daemon front only skipped host tools needed is unpinned, so that chat still shares a server

* fix(codex): a chat kept on a shared server reattaches there even when its tools now end with the app, so its open never lands on a second server

* fix(codex): a kept run reattached by a launch whose tools now end with the app is still rebuilt as kept, so its running turn reads Working

* fix(codex): a kept run reattached by a non-keepable launch keeps its pooled placement, so a crash before it ends still reopens it on its server

* fix(codex): a chat whose run is kept on a shared server stays kept when its tools now end with the app, instead of special-casing that run's quit, close and rebuild
… send (stablyai#52781)

* test(orchestration): add fail-before invariants for STA-15763

* fix(orchestration): never re-inject an in-doubt whole structured mail send

* fix(orchestration): harden whole-offer retry marker, atomic upgrade backfill, and check-as-B tests

* test(orchestration): populate whole_offer_operation_id in MessageRow fixtures and avoid double DB close

* fix(orchestration): strip internal whole_offer_operation_id from exposed mailbox receipts

* test(orchestration): pass orchestrationCaller session identity in checkRunAsSession helper

* fix(orchestration): satisfy blocking-api ratchet, max-lines, lint, and flaky-test rules

* fix(orchestration): keep atomic whole_offer_operation_id migration inside single exec for blocking-helper ratchet

* fix(orchestration): re-read whole_offer_operation_id after reportItem await and order backfill by oldest attempt
stablyai#52719)

* perf(crew): re-read only the changed panes' status on a hook observation

A crew strip woke on every hook observation of a shown pane and then
projected every agent status row in the app and re-indexed them all,
even when the strip was closed and showed only counts. Status reads now
re-project just the panes whose hook rows changed since the last read
(shown or skipped), patch them into the held statuses in place, and
compare shown bindings for those panes alone. Changes that name no pane
still read everything.

Tracked in STA-16417.

* test(crew): keep the status-patch perf contract and its staleness check apart

* fix(crew): keep shown and skipped-identity evidence current between pane reads

Each status read also re-reads the panes the crews show, since a repeated
wait refreshes a row's clock without a change notice. A terminal identity
write no crew showed, or a minute since the last full read, reads every
pane. A status read that turns into a rebuild reuses the statuses it
already projected.

* perf(crew): compare bindings for the re-read panes only, found while patching

The shown-pane scan uses plain set lookups, and the patch hands the
re-read panes' old and new evidence to the binding check instead of
filtering the whole host's statuses twice.

* perf(crew): rebuild from the statuses a status read already projected

A shown binding that changes (a removed row, a pane binding becoming a
worker's) turned the read into a rebuild that projected every pane again
on top of the partial read.

* test(crew): keep the fixture's cast beside its rationale

* fix(crew): a chat's own status reads every pane only when a crew shows it

A status change of a chat no crew shows no longer makes the next crew
read project every hook row; its hook row arrives as its own pane change.
A rebuild from patched statuses no longer restarts the full-read clock,
so frequent worker launches cannot postpone the minute full read.

* test(crew): compare patched statuses with a full projection in order

* fix(crew): re-read broken-out shown panes too

A pane that broke out into a new tab keeps its leaf, which the crews still
show; its clock can move with no change notice like any shown pane.

* fix(crew): note hook clocks that move without a row change

A repeated wait renews a row's clock without a row-change notice, so a
pane no crew showed kept its old clock across partial reads and could
read as stale once a crew showed it. Those notices are now noted for the
next status read; they wake nothing.

* test(crew): state why the read-clock test's fake deps cast is sound

* test(crew): cover each status-read branch and fix the perf contract's clock
* fix(tabs): keep overflowing tab labels readable

* fix(tabs): keep overflow thumb visible in narrow strips

* fix(tabs): update the end-dock seam without a render
Honor a confirmed thread leave for plain replies and retries. A new direct mention lets the bot rejoin.
… calls and prop writes in the phone compiler hazard rules (stablyai#52876)

* fix(ratchets): catch aliased components, helper-called components and prop writes in the compiler hazard rules

The rules added in stablyai#51418 missed a component called under an import alias or
as a default import, a component called through a helper (here or in another
module) during render, and writes like model.x = ... into a prop or hook
argument during render. All three now count, with a fixture case each; ref
.current, Reanimated .value and writes inside callbacks or effects do not.
The rules and the shared module-graph helpers move to their own files to keep
the ratchet under the line limit.

* fix(ratchets): follow export lists, re-exports and namespace imports, and resolve prop writes by binding

Component seeds are now functions that render JSX or call hooks, so a
capitalized factory no longer spreads through helpers. Export lists,
re-exports, export * and namespace imports carry component callers across
modules, and anonymous default-exported components count. Prop writes unwrap
casts and non-null assertions, cover every assignment operator, read literal
element keys (ref['current']), and are attributed by the identifier's real
binding, so a shadowing local or a rest copy is not the argument. Changed-check
selection runs the collector and its fixtures when either extracted module
changes.

* fix(ratchets): resolve component callers per module and count only synchronous render-time calls

Component seeds are each module's own functions that render JSX or call hooks
(React.useX too) while they run, and imports resolve through what their module
exports, so a factory sharing a component's name elsewhere no longer counts.
Helper propagation follows namespace calls and skips timer or handler
callbacks, and Object.assign onto an argument counts only during render. The
write fixtures split into counted and uncounted files.

* fix(ratchets): resolve @/ imports and count arrow or anonymous-default components that call a component

The phone app's tsconfig maps @/* to src/*, so module resolution follows it
(this also covers the theme and language wrapper rule). A component written as
a PascalCase arrow or an anonymous default export that returns another
component's call now counts, as a named function declaration already did.

* fix(ratchets): tighten compiler hazard rules for nested names, default exports, rest arrays, refs and props

Seeds are module-level components only. A lowercase named default export that
renders counts. Writes into a rest-parameter array, or through a ref's
.current, don't count, while a component's own props.value or props.current
does. Object.assign into a member of an argument counts like a member write.

* fix(ratchets): count prop writes in components that only call hooks

* fix(ratchets): attribute prop writes to the nearest component or hook, default exports and IIFEs included

* fix(ratchets): recognize parenthesized default-export components

* fix(ratchets): ignore a shadowed Object in the Object.assign rule
…t startup (stablyai#52897)

On packaged Windows, startup hook reconcile asked the Antigravity hook
service for its runtime path, and the provider ran a fully synchronous
getRelocatedDaemonHost(): it sha256-hashed every source and every
relocated daemon-host code file with readFileSync on the main thread.
The hash cache lives in memory, so every launch re-hashed both trees.
With ~2,212 files and on-access AV scanning (~12 ms per cold open) this
held the main thread for ~27 s before the window showed. It also ran for
users without Antigravity, because the path was resolved before
checking that the managed script exists.

- getRelocatedDaemonHost() is now async. It reuses the existing async
  inventory and verification path (streamed hashes) and reads build
  markers with async I/O. The sync hasher, sync inventory and sync
  verifier had no other callers and are removed.
- The startup hook refresh and the daemon launch share one lookup:
  materializeOnce joins (or starts) it and only copies when it finds
  nothing, so both trees are not hashed twice. The lookup skips hashing
  when no build exists.
- The Antigravity runtime path provider is async. refresh skips the
  lookup when no managed script exists, and install resolves the path
  before its synchronous hooks.json read-modify-write, then re-checks
  the hooks setting so a disable during the await wins. The hook
  scripts and hooks.json output are unchanged.
- daemonHostBuildRuntimeMatches computes its expected paths once rather
  than once per inventory file.
- Prunes the sync-fs and main-blocking baselines for the removed calls.

Daemon launch still verifies every copied file against its marker
before use.

Thanks to wurenrumian, whose CPU profile found the cause.

Refs stablyai#52542
…RL (stablyai#52887)

* fix(browser): keep the New Tab page hidden while a remote tab opens its first address

A server-run tab this desktop opens with an http(s) address showed the New Tab
start page until the server reported its first commit, because the server reports
the page as blank while that first load is still pending. Mark such opens when
they are staged and keep the start page hidden while the mark holds. The mark
ends on the server's first non-blank address or load error, on a user goto,
Back, Forward or Stop, when the staged tab is discarded or closed, or after 20s.

Only the viewport's New Tab overlay changes; the address bar and tab label still
follow the server's reports.

* fix(browser): hold the initial-open mark until the host reports, for every remote open path

- Arm a 60s ceiling while placement, create and the owner-pinned goto are in
  flight, and tighten it to the 20s fallback once they settle, so a slow but
  responsive host no longer loses the mark mid-load.
- Never throw on an address that normalizes but does not parse, so staging
  cannot fail after its row and handle are written.
- Mark pages the runtime creates directly: ports opened in a streamed browser
  and pages the remote pane re-creates.
- Leave client-hosted opens unmarked, mark on a restage to the server and
  clear on a restage back, and move the mark to the mirror row when staging is
  discarded for it.
- End the mark from host reports in the store, so hidden tabs clear too: a
  load error, or a non-blank address after a blank one. A locally written
  address no longer ends it.

* fix(browser): keep the initial-open mark on the live page and end it on the host's first word

- Discarding a staging row for an existing mirror no longer clears the mark it
  just handed that mirror; settle and clear on the old id still reach it.
- The address check catches every failure, including a lone surrogate, so
  staging and restage never throw after writing their row.
- Once a page is no longer staged, its first non-blank address or load error
  ends the mark, with or without an earlier blank report; a staged row's own
  requested address and a direct create's own write still do not.
- A command that creates a handle-less page does not re-arm the mark from the
  row's old address.
- A failed owner-pinned goto ends the mark instead of settling it, and a
  moved mark keeps its original deadline and settled state.
- A frame handover moves the mark to the server page id.
- A marked page that disappears clears its mark and timer.

* fix(browser): finish remote initial opens on host adoption

* fix(browser): scope initial-open marks to their create operation
…USE_RUST_WATCHER (stablyai#52910)

* feat(sidecar): add native Rust orca-sidecar file watcher behind ORCA_USE_RUST_WATCHER

* fix(sidecar): match relative ignoreGlobs, wire Linux dynamic dir watches, and exclude macOS TCC paths

* fix(sidecar): restrict macOS TCC exclusions to strict ancestors and match ignoreGlobs relative-only
@karlorz
karlorz merged commit 7750b2c into fork-main Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

allow-runtime-launcher-protocol-bump Upstream sync: allow daemon protocol bump alongside runtime launcher changes (D7.1 R3 override)

Projects

None yet

Development

Successfully merging this pull request may close these issues.