Skip to content

fix(i18n): translate missing Portuguese native-chat strings for connections and sign-in - #48962

Merged
nwparker merged 1 commit into
stablyai:mainfrom
yohangwak:yohangwak/pt-native-chat-c
Nov 25, 2026
Merged

nwparker merged 1 commit into
stablyai:mainfrom
yohangwak:yohangwak/pt-native-chat-c

Conversation

@yohangwak

@yohangwak yohangwak commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

With Orca set to Portuguese, the chat's connection and sign-in UI still showed English: the Antigravity sign-in strip and menu, the Slack mirror switch and its post status, the tag that says who asked from Slack, the connect-a-service and Google account cards, sign-in notices and requests, a paired computer asking to message, and the webhook setup card. This adds Portuguese for all 149 of those strings.

What Changed

  • Before: with the Portuguese UI, these rows showed English (Other ways to sign in…, Also posts to #eng thread, Connect a service, Set up a webhook, and so on). 149 keys under components.native-chat (slackMirror 36, connectorAsker 12, connectorOffer 9, googleOffer 4, antigravityAuth 41, signInNotice 9, signIn 1, urlRequest 7, pairedServerAsk 6, clientAsk 5, mcp 2, toolAdded 3, offerCard 3, githubPeek 1, webhookSetup 9, install 1) had no entry in pt.json, so i18next fell back to English.
  • After: they read in Portuguese (for example Outras formas de entrar…, Também publica na thread do Slack, Conectar um serviço, Configurar um webhook). Portuguese coverage goes from 20,592 to 20,741 of 25,008 keys.
  • Mechanism: 150 new leaves (149 keys plus their extra plural forms) in src/renderer/src/i18n/locales/pt.json. Each is placed after the sibling it follows in en.json, so the diff only adds lines (plus a trailing comma where a key lands after the last entry of an object); no existing Portuguese value, English string or other locale changes.

Wording follows the Brazilian Portuguese already in pt.json: Entrar and login as in the existing sign-in rows, você, thread and DM as Slack shows them, pareado as in the paired-server rows, Dispensar and Agora não as in the neighbouring buttons, and bot in Latin letters. Each _other gets a _many copy, as elsewhere in pt.json.

Why

Connections and sign-in come up the first time someone links Slack, Google or GitHub, or signs an agent in, and they were English blocks on an otherwise Portuguese screen. This is the third area of the per-area series for Portuguese after automations (#48170) and workers (#48511); areas are kept small so each one is easy to review.

Linked Issue

Fixes #48963

Visual Proof

Native chat fixtures rendered in the Portuguese UI with pnpm fixtures:shot --theme light --scale 2 (a local wrapper fixture that switches the UI language; not committed), main vs this branch. Translation does not change colors, so one theme is shown. Text that stays English is fixture data (names, channel, automation title) or strings outside this batch.

Before (main) After
Antigravity sign-in strip, menu open Antigravity sign-in strip, menu open before Antigravity sign-in strip, menu open after
Antigravity sign-in method menu Antigravity sign-in method menu before Antigravity sign-in method menu after
Slack mirror lines Slack mirror lines before Slack mirror lines after
Webhook setup card Webhook setup card before Webhook setup card after

Testing

  • I manually tested these changes locally. The rows were rendered in Portuguese in the fixture harness (above); not driven in a live session with real Slack, Google or Antigravity accounts.
  • Automated tests added/updated, or explained why not below. None added: these are catalog values only, covered by verify:localization-catalog(s), which also checks that each value keeps its English {{placeholder}} and <tag> set.
  • Every added test fails without this change and avoids the test anti-patterns. No tests added.

On macOS, on main at 27db615:

  • pnpm verify:localization-catalog and pnpm verify:localization-catalogs pass (pt: 20,741/25,008). As a positive control, breaking {{what}} in an existing value makes both exit 1 with interpolation mismatch.
  • Portuguese is not in the catalog-repair locale set, so there is nothing to repair.
  • pnpm check:changed --base=upstream/main passes (format, lint, typecheck, localization catalogs and extraction, and the tests it selects for the change).
  • Placeholders, tags and the upstream translation policy (repairTranslatedValue) leave all added values unchanged.
  • Only locale JSON changes, so the full lint, typecheck, test and build run is left to CI.

Performance

None, because only the Portuguese desktop catalog grows, by 150 short strings: pt.json goes from 1,535,146 to 1,544,646 bytes (+9.3 KB, +0.6%), parsed once when the Portuguese catalog loads. No runtime path, polling, I/O or render work changes.

Risk

Level: Low

Only Portuguese text is added. The riskiest part is wording built around runtime values ({{method}}, {{bot}}, {{name}} and {{channel}}): if a sentence reads awkwardly with some value, Portuguese users see an awkward but complete sentence, because every placeholder is checked and none is dropped. If a word is off, they see that word instead of English. A plain revert backs it out. The open PR 47026 (pt-BR full catalog) also adds 138 of these 150 leaves among its others. If that lands first, this PR can be closed or trimmed to the rest; if this lands first, that PR keeps its own values when it resolves the conflict on these lines. The messages and usage batch for Portuguese (#48993) is open in the same file; the two add keys to different objects, and git merge-tree of the two branches is clean.

AI Disclosure

Translated and checked with Claude Opus 5.5 (Claude Code), with a second independent review pass. The translation reuses the terms already in pt.json. It has not been reviewed by a native speaker. Placeholders, tags and the upstream translation policy were checked by script before insertion. CodeRabbit raised no findings on this change.

Review

  • Cross-platform: text only.
  • SSH/remote: not affected; remotes do not read renderer catalogs.
  • Mobile: not touched; the phone app has its own catalog.
  • Security: nothing changes.

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

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred). pnpm check:changed passes locally; the full runs are left to CI because only a locale JSON file changes.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Portuguese locale adds strings for agent verification and sign-in, Antigravity authentication, paired-server approvals, and client connection status. It also adds text for Slack mirroring, connector attribution and setup, webhook setup, Google account offers, GitHub preview retry, and MCP login completion.

Severity of issue fixed: Medium

Merge Risk: Minimal · up to d1dcc

This adds Portuguese translations for native-chat connection and sign-in strings that previously fell back to English. It changes no behavior and carries no identified merge risk.

Pre-merge checks: Passed 2 · Inconclusive 2

Failed Failed checks: 2 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive Issue #48963 requires 149 Portuguese values under components.native-chat in pt.json, covering the sections listed in the issue (slackMirror, connectorAsker, connectorOffer, googleOffer, antigravityAut… Provide readable access to the head and base blobs of src/renderer/src/i18n/locales/pt.json, or a diff that lists the added keys. Then confirm that each of the 149 issue keys under components.native-chat has a non-empty Portuguese value, an…
Out of Scope Changes check Inconclusive The PR description says only new leaves are added to pt.json, with no existing Portuguese value, English string, or other locale changed. The AI-generated raw summary reports +179/-3 lines. It also li… Provide the pt.json diff so each changed or removed line can be checked. Confirm that the extra entries (install error text, MCP login text, server-management label, githubPeek retry text) are issue keys from the 149-key set. Confirm that t…
Passed Passed checks: 2 passed

Check name Status Explanation
Title check Passed The title names the main change: adding missing Portuguese translations for native-chat connection and sign-in strings in pt.json. The fix(i18n) prefix matches the localization-only change. The title …
Description check Passed The description is thorough and follows the repository template closely. It has an ELI5, a What Changed section with before and after, a Why section, a linked issue (Fixes #48963), Visual Proof with b…
Full details: Title check

Explanation

The title names the main change: adding missing Portuguese translations for native-chat connection and sign-in strings in pt.json. The fix(i18n) prefix matches the localization-only change. The title is somewhat long at 87 characters, but it is specific and accurate.

Full details: Description check

Explanation

The description is thorough and follows the repository template closely. It has an ELI5, a What Changed section with before and after, a Why section, a linked issue (Fixes #48963), Visual Proof with before and after images for each UI area, a Testing section with manual and script-based verification, a Performance statement with a reason, a Risk section with level Low and a revert path, an AI Disclosure, Review notes, and a checklist. The 'Review' and 'Agent skill upstream boundary' sections are present and checked. Minor gaps: the 'Notes' section repeats the template text verbatim, and the Testing checkboxes say no automated tests were added, which is explained. The description is complete enough to decide the change.

Full details: Linked Issues check

Explanation

Issue #48963 requires 149 Portuguese values under components.native-chat in pt.json, covering the sections listed in the issue (slackMirror, connectorAsker, connectorOffer, googleOffer, antigravityAuth, signInNotice, signIn, urlRequest, pairedServerAsk, clientAsk, mcp, toolAdded, offerCard, githubPeek, webhookSetup, install). The PR description states that all 149 keys (150 leaves with _many forms) were added in matching sections. The AI-generated raw summary describes additions in the same areas. The text diff of pt.json could not be read: the tool reported that changed blobs are missing from the checkout. Key-level coverage therefore cannot be verified from source. The author's claims of placeholder checks and verify:localization-catalog(s) passing are not independently confirmed here. The work is catalog-only and needs no code, so no coding requirement beyond these values applies.

Resolution

Provide readable access to the head and base blobs of src/renderer/src/i18n/locales/pt.json, or a diff that lists the added keys. Then confirm that each of the 149 issue keys under components.native-chat has a non-empty Portuguese value, and that the _other/_many plural pairs and placeholders match en.json.

Full details: Out of Scope Changes check

Explanation

The PR description says only new leaves are added to pt.json, with no existing Portuguese value, English string, or other locale changed. The AI-generated raw summary reports +179/-3 lines. It also lists items that are not clearly among the 149 issue keys: agent installation errors, MCP login guidance, a server-management label, and an expanded GitHub preview retry text with a keyboard hint. The -3 lines could mean existing lines were modified, which the PR description denies. The text diff is unavailable, so these items cannot be matched to keys or confirmed as new additions. No change is shown to be unrelated, but the scope cannot be verified.

Resolution

Provide the pt.json diff so each changed or removed line can be checked. Confirm that the extra entries (install error text, MCP login text, server-management label, githubPeek retry text) are issue keys from the 149-key set. Confirm that the -3 lines are only trailing-comma edits and that no existing Portuguese value changed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 463a09c0-d2b9-4de6-82b2-7aca916b23bb
Commits

Reviewing files that changed from the base of the PR and between 24c8d8a and d1dcc15.

Files selected for processing: 1

  • src/renderer/src/i18n/locales/pt.json
Files skipped from review as they are similar to previous changes: 1

  • src/renderer/src/i18n/locales/pt.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

…ctions and sign-in

Add Portuguese values for 149 native-chat keys (150 leaves with the
extra plural form) that fell back to English: Antigravity sign-in,
Slack mirror, connector asker/offer, Google offer, sign-in notices and
requests, paired-server asks, webhook setup, and related rows. Only
pt.json changes; no existing value or other locale is touched.

Fixes stablyai#48963

Co-authored-by: Neil <neil@stably.ai>
@nwparker
nwparker force-pushed the yohangwak/pt-native-chat-c branch from 24c8d8a to d1dcc15 Compare November 25, 2026 13:46
@nwparker nwparker changed the title fix(i18n): translate 149 missing Portuguese native-chat strings for connections and sign-in fix(i18n): translate missing Portuguese native-chat strings for connections and sign-in Nov 25, 2026
@nwparker
nwparker merged commit 27cf085 into stablyai:main Nov 25, 2026
55 of 56 checks passed
Kotori0629 added a commit to Kotori0629/orca that referenced this pull request Nov 26, 2026
* fix(bots): keep card highlights off the Bots list scrollbar (#48827)

The Bots list and its search results padded only their left edge, so a
selected or hovered card's background ran straight into the always-on
6px scrollbar. Pad the right edge by the same 4px the Projects list uses.

Fixes #48826

* fix(chat): keep the chat-open error card until Dismiss or Retry (#48833)

* fix(chat): keep the chat-open error card until Dismiss or Retry

Opaque card with the error icon, a collapsed Show details disclosure and
right-aligned Dismiss/Retry. Re-shown on resize so opening the details no
longer pushes Retry off the toaster.

* fix(chat): let a still-starting notice replace the error card

Sonner merges a reused toast id into the live toast, so the info toast
kept the card's content and endless duration. Drop the nested alert role.

* fix(chat): drop a replaced still-starting notice's info icon from the card

---------

Co-authored-by: m4air <m4air@m4airs-MacBook-Air.local>

* feat(bots): set up WSL distros from the Computer picker (#48818)

* feat(bots): set up WSL distros from the Computer picker

* fix: design system and timer ratchet

* fix(bots): keep verbatim WSL setup errors behind Details; cap the distro list height

* fix(bots): hold the WSL list open across the gap, keyboard into it, unstick setup, wake sleeping picks

* test: annotate the fixture cast

* fix(run-target): focus the first distro even when the list mounts a frame late

* refactor: move the focus retry out of the component

* fix(bots): wake a sleeping pick once, follow main's connect, keep the WSL list through diagonal paths and Escape

* refactor: delayed submenu close as a hook

* fix(run-target): keep the WSL list open while the pointer heads for it

* fix(bots): wake through the shared start, re-read the host when main finishes, ignore stale wakes

* fix(build): keep ajv out of the packaged main bundle for shared MCP servers (#48851)

The shared server process used the SDK's Client and Server, which build its ajv
JSON Schema validator; ajv's generated-code require strings then failed the
packaged-main runtime-deps check. Both ends are now bare Protocol peers. Every
non-test change under src/main/mcp-servers/ now runs the package jobs.

* fix(build): don't count ajv's codegen strings as packaged main imports (#48849)

* fix(build): don't count ajv's codegen strings as packaged main imports

The packaged main-bundle check found bare imports with a regex, so the
require("ajv/...") text that ajv keeps for its standalone code generator
counted as runtime imports once the MCP SDK's Client and Server reached
main (#48770). Packaging then failed with "ajv, ajv-formats". ajv only
reads that text in standalone mode, which the SDK never uses.

The regex still finds candidates. A file with a candidate whose package
isn't copied is now parsed, and only real require()/import() calls count,
using the CLI runtime verifier's import reader.

* fix(build): match escaped import specifiers by their decoded package

* fix(app-rail): Keyboard Shortcuts from the account menu leaves focus on the account button (#48852)

The menu yields its close-focus when a choice opens Settings so the page's
search keeps focus. The Keyboard Shortcuts deep link turns that autofocus
off and its pane takes none, so focus was left on the page body. The menu
now hands focus back to its button when nothing took it a frame later,
as the rail Help menu did. The account menu's UI-behaviour unit tests are
removed per the repo's test policy; the name logic test stays.

* feat(mcp): give agent terminals the host's MCP servers, with orca mcp exec and a restart offer (#48814)

* feat(mcp): give agent terminals the host's MCP servers, with orca mcp exec and a restart offer

Behind the MCP servers switch. Claude, Codex, Copilot, Amp, OpenCode and Pi terminals get the
host list at spawn without Orca editing their own config, and no saved value or relay token goes
on the command line. A command server with saved env runs through `orca mcp exec`, which fetches
it with mcpServers.connect. mcpServers.sessions.stale and .restart count and restart terminals
still on an older list.

* fix(mcp): a Codex terminal's own -c mcp_servers overrides keep their names

* fix(mcp): terminals reach a shared command server through the relay

* fix(bots): fold settled bot chats untouched for a day under Show N older (#48722)

* fix(bots): fold settled bot chats untouched for a day under Show N older in the sidebar

* fix(bots): hold attention, focus, reveal and fresh outcomes when folding old chats; no new folds while the list has focus

* fix(bots): keep the older toggle in place, hold rows under the pointer, fold only 2+, keep folds across remounts

* i18n(bots): translate Hide older, and Show N older where it was missing

* fix(bots): fold only dated settled chats; light older rows; fresh-read admission; host-qualified holds; deadline-gated clock

* fix(bots): older toggle reports removal through the list's ref, not a ref written in render

* fix(bots): fold holds on unread change notices, live agent panes and every undated outcome; one front-tab read per list; Open keeps the bot's host

* fix(bots): fold list passes callbacks, not mutable ref props; front tab type from Tab

* fix(bots): fold only with no signal of any kind and an unambiguous root; shared change-notice tracking; Open, marker and Reveal back to main

* fix(bots): keep workspace ids whole in the attention read; forget a focused older chat once it lifts out

* fix(bots): fold holds travel up the whole lineage graph, loops included; twin ids counted under every root

* fix(bots): fold reads a working title before the card's rank; a later read clears an unread notice; admission on the wall clock

* fix(agents): temporarily disable agent CLI update notification card (#48864)

* fix(agent-cli-update): compact CLI updates toast; stuck updates fail with Retry (#48850)

* fix(agent-cli-update): one compact CLI updates toast; stuck updates fail and can be retried

The toast is one card: a download icon (spinner, check or alert by state),
"N CLI updates" with a Show list toggle under it, and Later + Update N.
Updating shows "Updating X of N CLIs" with Hide; failures show
"K of N CLI updates failed" with Retry K; done shows "N CLIs updated" and
leaves on its own. The list scrolls inside the toast, lists updatable CLIs
first and hand-updated ones under Manual with Copy.

An update could stay "Updating" for good: this computer's runtime calls
ignore the RPC timeout, so the renderer waited as long as the updater, and
the host gave an updater that never exits ten minutes. The host now stops an
updater after two minutes (its whole process group) and fails it, and the
renderer fails any run with no answer after three, so Retry appears.

* fix(agent-cli-update): one-line titles, queued updates, one trailing status column (UX-I1)

* fix(agent-cli-update): stop silent or orphaned updaters, not slow ones; late answers settle the row (C1)

The host stops an updater after 3 minutes without output or 10 minutes in all,
and 5 seconds after it exits when a child it left holds its output; the whole
process group is still killed. The renderer deadline is back to the host cap
plus margin, and a host answer that arrives after it still settles the row.
"Copied" is announced to screen readers.

---------

Co-authored-by: m4air <m4air@Mac.localdomain>

* fix(settings): cache remote host scope selector by catalog identity (#48866)

Memoize the environment-name Zustand selector in useScopeServerName by state.runtimeEnvironments reference identity (matching WorkspaceBranchPicker) so unrelated app-store publications skip scanning the runtime environment catalog while remote-scoped Integrations or API-budget cards are mounted.

Refs STA-18159, #48678

* perf(mobile): look up closing terminal handles from map in O(1) (#48869)

* fix(process): start plain runProcess children off the main thread on macOS/Linux (#48600)

* fix(process): start plain runProcess children on the spawn worker on macOS/Linux

posix_spawn blocks its calling thread even for async spawns. Under memory/disk
pressure a launch on Electron main froze every window for ~2 minutes (hang
capture: main thread in uv_spawn -> __posix_spawn for 116s during worktree
create). Main now installs a default runProcess launcher that hands plain piped
specs to the existing child-process worker on POSIX, as Windows already does.
Barrier/detached specs keep their launch on main.

* fix(process): preserve tail/onStderr capture and harden POSIX worker fallback

* fix(process): kill a POSIX child whose spawn worker was lost before its exit was reported

* fix(codex): drop cursor payloads and bound interrupted subagents (STA-18052) (#48871)

* fix(wsl): shorten WSL host dialog and settings copy (#48870)

* fix(wsl): shorten WSL host dialog and settings copy

* fix(wsl): name the Move to host menu item in the Add WSL distro copy

* fix(computer-use): match the System Settings window by bundle id on non-English macOS (#48846)

kCGWindowOwnerName is UI-localized ("系统设置" on a Chinese Mac), so the
permission drag assistant never found the System Settings window, flashed
for a moment at the bottom of the screen, and hid itself again. Match the
window by the owner pid of the running com.apple.systempreferences
processes instead, which is locale-independent.

Fixes #48845

Co-authored-by: Neil <neil@stably.ai>

* fix(mobile): close only the photo viewer on system Back (#48877)

In the web shell, system Back (Android back gesture, iOS edge swipe)
reaches the shell's back-claim stack, not the viewer's Modal. The
fullscreen image viewer claimed nothing, so Back fell through to the
sheet underneath and closed the whole item instead of just the photo.
The viewer now claims Back while open and runs its own close animation.

Fixes #48843

* fix(terminal-pane): quiet the worker auto-close banner (#48875)

* fix(terminal-pane): quiet the worker auto-close banner

One muted line ("Worker · closes 2 min after finishing") with a ghost Keep open and a
2px countdown line, instead of the icon, tinted strip and filled pill. Text starts at the
terminal's first column; Keep open clears the pane's floating controls. The banner and
the host now read one close-delay constant.

* fix(terminal-pane): put the quiet worker banner on the terminal surface

Drop the "Worker" prefix so the minute count survives narrow panes. In a terminal the banner
takes the pane header's surface colours instead of the app background, and its countdown line
spans the terminal box. Find the floating controls by a header-only data-pane-title-leaf-id, and
re-measure when the header overlay changes, so a late or changing header still clears.

* fix(terminal-pane): run the worker countdown line along the banner's full bottom edge

---------

Co-authored-by: m4air <m4air@Mac.localdomain>

* ci(wsl): route moved WSL IPC, daemon and host sources to the real-WSL lane (STA-13698) (#48878)

* fix(process): run POSIX terminationBarrier: true runProcess children on worker thread (#48853)

* fix(process): start plain runProcess children on the spawn worker on macOS/Linux

posix_spawn blocks its calling thread even for async spawns. Under memory/disk
pressure a launch on Electron main froze every window for ~2 minutes (hang
capture: main thread in uv_spawn -> __posix_spawn for 116s during worktree
create). Main now installs a default runProcess launcher that hands plain piped
specs to the existing child-process worker on POSIX, as Windows already does.
Barrier/detached specs keep their launch on main.

* fix(process): preserve tail/onStderr capture and harden POSIX worker fallback

* fix(process): run POSIX terminationBarrier: true runProcess children on worker thread

* fix(process): kill a POSIX child whose spawn worker was lost before its exit was reported

* test(process): cover worker loss after a barrier root's exit

* fix(i18n): make Korean sentences split around inline code read correctly (#48861)

Three Korean UI sentences are assembled from separately translated
fragments around an inline element (branch name, remote name, session
id). The fragments followed English word order, so the joined Korean
read as broken grammar. Rewrite the six Korean fragments so the
assembled sentences read naturally, and pin them in the ko key
overrides so a catalog rebuild keeps them.

Fixes #48860

Co-authored-by: Neil <neil@stably.ai>

* fix(bots): wrap long Done means and close notes in the item page (#48872)

A long unbroken token (a hash, a path) in an item's Done means or its
done/canceled note never broke, so the item page scrolled sideways and
clipped its header and Activity. Both now wrap like the item's Markdown.

Co-authored-by: m4air <m4air@Mac.localdomain>

* fix(provider-process): offload POSIX orca-provider-exec fallback spawns to worker thread (#48854)

* fix(process): start plain runProcess children on the spawn worker on macOS/Linux

posix_spawn blocks its calling thread even for async spawns. Under memory/disk
pressure a launch on Electron main froze every window for ~2 minutes (hang
capture: main thread in uv_spawn -> __posix_spawn for 116s during worktree
create). Main now installs a default runProcess launcher that hands plain piped
specs to the existing child-process worker on POSIX, as Windows already does.
Barrier/detached specs keep their launch on main.

* fix(process): preserve tail/onStderr capture and harden POSIX worker fallback

* fix(process): run POSIX terminationBarrier: true runProcess children on worker thread

* fix(provider-process): offload POSIX orca-provider-exec fallback spawns to worker thread

* fix(process): kill a POSIX child whose spawn worker was lost before its exit was reported

* test(process): cover worker loss after a barrier root's exit

* test(provider-process): cover fallback when the worker cannot start the owner

* Keep Codex config checks fast on Mac, Linux and Windows, and keep WSL changes in more cases (#48799)

* fix(codex): skip the ~/.codex link check on clean native passes, and never lose kept WSL values

* fix(codex): keep unchanged plugin tables on the native fast path, and slim an over-size guest baseline instead of freezing it

* fix(codex): confirm a trusted native ~/.codex off the hot path, so a later link into a distro is set up like a probed pass

* fix(codex): resolve the background ~/.codex check with the same realpath as the sync path

* fix(codex): retire the native mark with a rename-over write, and resolve an untrusted source before native promotion reads

* fix(codex): keep the guarded swap when retiring the native mark, and put back a baseline a cut-off swap held aside

* fix(codex): treat an unreadable managed config as changed when confirming a re-point

* ci(package): run packaging when a PR adds a package import to main, CLI or shared code (#48865)

* ci(package): run packaging when a PR adds a package import to main, CLI or shared code

#48778 and #48770 both added an MCP SDK import that only the package jobs
check, and both skipped them because no listed path changed. The router
now also reads the PR's diff of src/main, src/cli and src/shared and runs
the package jobs when it adds a runtime import of a non-builtin package
outside tests. It reads only the changed files, so the router's sparse
blob:none checkout stays cheap.

* ci(package): run packaging when the router can't read the PR's diff

* ci(package): print the diff error's message, not the object

* ci(package): count require-named loaders and multi-line imports made runtime

* ci(package): compare each changed file's package loads before and after

Reading added lines alone kept missing loads whose text didn't change: a
type import made runtime inside an unchanged multi-line declaration, or a
loader call split across lines. The router now rebuilds each changed file's
old and new text from one full-context diff (no extra blobs) and runs
packaging when the new text loads a package specifier the old didn't.

* feat(mcp): Settings page for each host's MCP servers, with Add and per-server pages (#48844)

* feat(mcp): Settings › MCP servers page, server page and Add dialog

A host's MCP servers get their own Settings page under Agents, shown only
when the host serves mcp-servers.v1: the list by source (Yours, From
plugins, In your agents) with Move/Copy to Orca, a page per server
(sign-in, launch or connection fields, agents, workspaces, shared process,
Remove), the Add catalog and Custom server editor shared with bots, the
browser sign-in, and a change toast with the restart offer.

* fix(mcp): keep 'Workspaces added later' inactive until the host lists its workspaces

* feat(mcp): give Claude Agent Teams leads and teammates the host's MCP servers (#48895)

* feat(mcp): give Claude Agent Teams leads and teammates the host's MCP servers

* test(mcp): pin the teammate relay env at the team's launch env

* fix(sidebar): keep sibling agents visible after closing a split pane (#48810)

After a pane closes in a split, runtime pane slot ids stay sparse (for
example 2 and 3). Legacy `tab:N` agent status keys were mapped to a
layout leaf by replay-creation order, which is only valid for dense ids,
so a status for slot 2 hid slot 3's title row: one agent showed twice and
a running sibling disappeared.

Title-derived rows now carry their live `runtimePaneId`, and
`legacyStatusTitleRowKey` maps a legacy key to the row built from the
same slot, falling back to replay order only for rows without a live
slot. The sidebar projection and the done-worker parent suppression in
the full row builder use it, and dashboard naming reads the raw title of
the row's own slot.

Fixes #48699

Co-authored-by: Neil <neil@stably.ai>

* fix(settings): re-read settings after a failed runtime registry lookup (#48890)

readSettingsWithRuntimeEnvironmentPreference captured the settings, then
awaited the runtime environment registry. When that lookup failed it
returned the captured object, dropping any change that landed during the
wait (a View menu toggle, another window's update), and the renderer
published those stale values over its store. Return store.getSettings()
instead, matching the read the successful path already makes.

Fixes #48712

Co-authored-by: Neil <neil@stably.ai>

* feat(mcp): WSL terminals get relayed, shared and secret-env MCP servers (#48898)

Behind the MCP servers switch. In a WSL distro, a server that goes through the relay (saved
headers, Orca's sign-in or a shared process) runs as `orca mcp connect` through the guest's
managed launcher, and a command server with saved env runs in the guest under a bash wrapper that
reads its env from a new `orca mcp env` over a pipe, so no value is on argv or in history. Guest
paths follow the distro's own mount root.

* fix(bots): keep every claimant of a shared workspace id, and undated settles, out of Show N older (#48897)

* fix(bots): hold every chat that claims a shared workspace id, and never date a settle with no completion time

Two limits left by the bot sidebar fold:

- Two physical workspaces on different hosts can share an id. The read maps the id to the chat
  that ran there last, so only that chat was held and an earlier claimant could still fold. Now
  every chat with a worker the read shows on such an id holds too. The id counts as shared when
  two listed workspaces carry it or when the read's workers name it on two hosts. One workspace
  reused by several chats on one host is not ambiguous and still lets the earlier chats fold.
- Failed Dispatches written by the first failure path have no completion time, and adopted
  legacy runs are never retired, so such rows can still be read. The read coalesced them to their
  creation time and the fold trusted it as the settle time. The host now flags them
  (`settledUndated`); they keep their place in the list but date nothing, so their chat holds.

* test(bots): pin that an undated settle still reads as failed

* fix(bots): take shared-id evidence from every chat of the read, and let a fallback row claim

- Host evidence that a workspace id is shared now comes from every chat in the read, including
  chats the sidebar doesn't list (no tab, closed). Holds still apply only to listed chats, and
  only workers the read shows count.
- A row whose worker record couldn't be read keeps its Dispatch's workspace as
  `placedWorktreeId`. It claims the id when two hosts already share it, but names no host, so it
  never creates a collision. `worktreeId` is unchanged for every other consumer.
- The claims tests now run through the desktop sidebar's own listing, and each arm stands alone.

* test(bots): read the created time without a cast

* fix(accounts): keep the WSL target on remote system-default selects (STA-18102) (#48882)

* fix(accounts): keep the WSL target on remote system-default selects (STA-18102)

* chore: record ClaudeSwitcherForOwner react-compiler baseline improvement

* fix(accounts): clear remote WSL lanes from Settings System default; keep concrete IDs on selectCodex

* test: type System default lane fixtures

* fix(accounts): System default resets lanes in one action, WSL first; Claude keeps host reset

* fix(accounts): keep partial System default results, one restart prompt, local WSL copy

* test: complete Codex identity fixture

* fix(accounts): block remote WSL Claude lane, name every replaced account in one restart prompt

* fix(editor): reload tabs and diffs for decomposed (NFD) files changed on disk (#48808)

On macOS the file watcher reports a name as stored, often decomposed
(NFD) for names made in Finder, while tabs and diffs opened from Source
Control or links hold the composed (NFC) spelling. Change events matched
open files by exact path, so those tabs and diffs kept stale content.

IndexedOpenFileLookup now also indexes clean non-ASCII edit tabs and
clean staged/unstaged diffs by their composed comparison path, and
matchingOpenFiles looks the change's composed identity up there. Dirty
tabs and diffs still match only by exact path, so a different file on a
byte-exact filesystem never marks unsaved edits as changed on disk.
Windows roots skip the cross-spelling index, since NTFS keeps NFC and
NFD names as separate files.

Fixes #48807

Co-authored-by: Neil <neil@stably.ai>

* fix(usage): show a focused WSL host's distro usage in the status bar (#48892)

* fix(usage): show a focused WSL host's distro usage in the status bar

Since 1.4.272 a WSL host owner showed "WSL usage isn't shown yet" instead of
its distro's Claude and Codex usage. Main now reads one runtime target's
selected-account usage without switching the desktop's fetch target, and
returns which accounts the reading belongs to. The renderer keeps one cached
read per distro and account selection (in-flight dedupe, 90 s TTL, reads on
mount, focus, account change and explicit refresh), discards readings for an
account that is no longer selected, uses live local state when the desktop
already fetches for that distro, and fails closed for other providers and for
web clients. WSL-host chat account menus now resolve the same owner.

Takes over #48471.

Co-authored-by: Chen <zwq19980411@gmail.com>

* fix(usage): attribute WSL distro readings per provider and honour Retry-After

Review round 1 on the WSL host usage takeover: label each reading with the
account actually read, read only non-live providers, keep per-provider
pending/failed state, re-read on TTL expiry, respect Retry-After on forced
refresh, resolve WSL host chat menus to the distro, and fail closed for a
WSL Claude target with no WSL route.

Co-authored-by: Chen <zwq19980411@gmail.com>

* fix(usage): retry unattributed WSL readings and keep the poller's Windows fallback

Review round 2: move the off-Windows WSL fail-closed into the distro read
so the desktop poller's Windows fallback is untouched, re-read a provider
main could not attribute after 5 s, cap Retry-After at 6 h, skip expiry
re-reads while the window is in the background, never re-read for a client
that cannot read the distro, and accept only known providers over IPC.

Co-authored-by: Chen <zwq19980411@gmail.com>

* fix(usage): back off unattributed WSL re-reads and cover the read guards

Review round 3: double the wait for each unattributed re-read up to the
TTL, carry a mismatched reading's Retry-After to the requested entry, note
that Codex readings carry no Retry-After, add revert-failing tests for the
6 h clamp, the focus gate and the IPC provider filter, and split the WSL
owner cases into their own test file.

Co-authored-by: Chen <zwq19980411@gmail.com>

---------

Co-authored-by: Chen <zwq19980411@gmail.com>

* fix(runtime): keep remote subscriptions working after a renderer crash reload (#48901)

* fix(runtime): keep remote subscriptions working after a renderer crash reload

After the main window's renderer crashes and is reloaded, Electron keeps
reporting the new live main frame as detached, so the document check
refused every remote runtime subscription and remote terminals showed
"The window that started this subscription went away" until restart.

Pin each request to the main frame's token at receipt instead: Electron
reuses one WebFrameMain object for every later document of the frame, so
neither object identity nor detached tells documents apart. Deliver
events only while that token is current, retire a document's work when
an error page replaces it without did-navigate, recheck the document
before retaining a subscription, and record a coalesced breadcrumb when a
document is refused.

* test(runtime): name the fake sender frame type

* fix(native-chat): keep OMP answers visible after advisor cards (#48862)

OMP writes an advisor card (custom_message, customType "advisor") after a
finished answer when the advisor sends the agent back to work. The decoder
drew it as a plain system aside, so once the follow-up ran tools the
settled turn folded the original answer behind "Worked for Xs".

Tag advisor cards with their own 'advisor' presentation. It still draws as
the faint aside it was before and folds with the turn's work. The fold
reads it through a named row fact, endsWordsReply: because advisor cards
also land mid-run (OMP's default reviewMode is "turn"), a card marks only
a words reply drawn right before it. Steers, Stop-hook and goal-check
send-backs keep ending the answer as before.

The plan-notice half of the issue (a plan row between two replies folds
the first) is left alone: OMP's plan arrives as the generic ACP plan
shared by every ACP agent and Codex, so splitting replies around it
would change folding for every provider.

Refs #48855

Co-authored-by: lvyongjian <lvyongjian@baidu.com>
Co-authored-by: Neil <neil@stably.ai>

* fix(mcp): give teammates of a native claude --teammate-mode auto lead the relay token (#48908)

* fix(mcp): give teammates of a plain claude --teammate-mode auto lead the relay env

* test(mcp): name what the team relay env test pins

* test(mcp): pin the switch in the team relay env test

* fix(agent-status): nest a remote host's workers under their coordinator (#48888)

* fix(agent-status): nest a remote host's workers under their coordinator

The sidebar nests agent rows by orchestration contexts that only this
computer's graph reply supplied, so chats on WSL and other runtime hosts,
whose Dispatches live on that host, always listed flat. Read each host's
contexts over a new agentActivity.orchestration method when the window
reaches the host or the host reports a worker change, and store them under
that host as producer. A local graph reply now replaces only its own
contexts instead of the whole map.

Fixes #48452

* fix(agent-status): keep remote lineage per host, re-read on any Dispatch write

Review round 1 on #48888:
- Store each remote host's contexts apart (remoteAgentOrchestrationByHost)
  so a local reply and a host reply that share a pane key never overwrite
  each other; the visible projection and canonicalOrchestrationForRow read
  a row's own host first, and dashboard/sidebar caches watch the new map.
- Hosts emit agentOrchestrationChanged once per tick for every Dispatch
  write, so terminal-created workers re-read too.
- Retry a failed read twice with backoff, still background-tagged; the
  project catalog refresh (connect, reachability, replay) re-reads.
- Clear a removed or replaced host's contexts and read state.
- Cap the reply on the host and validate each context on the desktop.

Refs #48452

* fix(agent-status): read remote lineage on every sidebar path, debounce re-reads

Review round 2 on #48888:
- Status projection rows, title-derived rows and topology invalidation read
  contexts through the producer-aware view and invalidate on the remote map,
  so title-only WSL terminals nest and finished remote workers suppress
  their parent's stale title. A remote context is ignored for a terminal
  pane this window runs on another host.
- Phones no longer receive agentOrchestrationChanged.
- The desktop debounces the host event (250 ms trailing).
- A host without the method is re-asked only after its connection
  generation changes, not on every catalog refresh.
- Pane retirement and moves edit remote hosts' contexts too.
- Host notice coalescing is its own unit with a test.

Refs #48452

* fix(agent-status): apply remote lineage only to rows that host runs here

Review round 3 on #48888:
- Status rows read this computer's map unchanged; a remote context applies
  only to that host's chat row (by its alias) or a terminal tab whose host,
  from its tab or PTY, is that host. A colliding key or a parent spelled
  like a remote chat no longer re-parents a local row.
- The status projection invalidates rows whose applied remote context
  changed, so re-keyed chats and the first or last host context re-place.
- A host without the method is re-asked as soon as its connection
  generation changes, whichever of the wake refresh and the new runtime id
  lands first.

Refs #48452

* fix(agent-status): keep remote parents on their host, split terminal provenance

Review round 4 on #48888:
- A remote row's parent must be a row that host runs here; otherwise the
  link is dropped, so a parent key spelled like a local row never nests a
  remote worker under it.
- Status rows skip building row identities and terminal hosts when no
  remote host has contexts.
- The unsupported-host watch drops removed hosts and re-asks only hosts
  that are reachable again, so a disconnect's generation bump is ignored.
- Terminal provenance and the status-row view move to their own modules;
  visible-agent-orchestration.ts is back under 300 lines.

Refs #48452

* fix(mcp): Codex, Copilot, Amp and Pi in WSL get Orca's MCP servers (#48923)

Behind the MCP servers switch. CLI checks run inside the distro, so Copilot, Amp and Pi deliver
there too, with guest file paths and Pi's extension passed by path. Codex 0.47+ forwards the
interop variables to the guest orca (env_vars); the guest launcher also finds its own session's
interop socket when an agent trims the env. Every orca mcp bridge resolves the workspace one way.

* fix(codex-accounts): show System default usage while a saved Codex account is selected (#48873)

* fix(codex-accounts): show System default usage while a saved Codex account is selected

While a saved host Codex account was selected, the System default row
(the user's own ~/.codex login) showed no usage in the desktop Codex
switcher and on the phone's Accounts and Usage screens. Nothing read
~/.codex once a saved account was active.

The inactive Codex preview now includes the host System default under
the shared codex-system-default key while a saved host account is
selected. It is read over HTTP only (the auth.json token against the
usage endpoint), never through codex app-server, so Orca does not
spawn a process or rotate tokens for a login the user did not select.
An expired or rejected token shows "Updates when Codex runs" and keeps
the last reading; API-key and unparseable logins report usage as
unavailable. Switching away from System default keeps its last reading
on its row, as Claude already does. WSL targets are excluded, since a
WSL System default is that distro's own login.

Fixes #48856

Co-authored-by: Yuxin Qiao <104957188+Yuxin-Qiao@users.noreply.github.com>

* fix(usage): keep the waiting-for-CLI checks out of the localized copy catalog

The orcad bundle must stay ASCII; importing usage-error-copy from the
rate-limit service pulled the error catalogs into it.

* test(codex): pin the clock in the backend-only usage test

---------

Co-authored-by: Neil <neil@stably.ai>

* feat(native-chat): open subagents in a slide-up sheet inside the chat pane (#42455)

* feat(native-chat): open subagents in a slide-up sheet inside the chat pane

Clicking a subagent row, tray row or head now slides a sheet up over its own
chat pane instead of replacing the whole conversation. The conversation and
composer stay mounted and inert under a scrim; x, Esc, a scrim click or the
title menu's Main agent close it and hand focus back to the opener.

The header carries the parent link, the subagent switcher, role chip, Stop and
Close, with state, elapsed time and tokens below. A subagent's own approval
card draws in its sheet with a Needs you pill; another agent's waiting prompt
is named at the top of the body with a Show button.

* fix(native-chat): address subagent sheet review findings

- Esc inside the sheet, including from the subagent's own prompt card,
  goes up a level or closes; it never cancels or folds the prompt.
- A prompt card under the sheet ignores digit shortcuts.
- The subagent's prompt keeps its state (a half-typed answer) when it
  moves into or out of the sheet.
- The conversation under the sheet pauses following, so its scroll stays
  where the reader left it.
- The waiting prompt card and the needs-you line line up with the rows,
  the card slot keeps 12px below and at most half the sheet's height,
  and the needs-you line stays pinned at the top of the rows.
- Nested header keeps its second line; the parent link is labelled
  "Back to <name>"; row actions are hidden in the sheet; the prompt
  preview clamps whole lines.
- Translate "Main agent" and "Back to …" in every locale.

* fix(native-chat): keep sheet header readable in dev and skip find under the sheet

The header's narrow-width rules now hide with container variants only,
so a later stylesheet that re-declares .hidden cannot win. Mod+F while a
subagent sheet covers the conversation no longer opens a find bar under
the scrim.

* fix(native-chat): keep sheet focus and Esc order in edge cases

- Esc from a nested subagent's own prompt card goes up a level and
  focus stays in the sheet as the card leaves it.
- Esc goes to the sheet even when a find bar was open before it opened.
- The prompt preview's 3-line clamp rechecks whether it hides anything
  when the pane is resized.

* fix(native-chat): keep Tab inside the sheet from the subagent's prompt card

The card reaches the sheet through a portal whose React parents are the
pane content, so the sheet's own Tab wrap never saw its keys. The card's
wrapper now applies the same wrap while the card is in the sheet.

* fix(native-chat): take focus back into the sheet when its focused prompt is answered

Answering a subagent's prompt in its sheet disables the focused choice and
then unmounts the card. Either drops focus to the body, and a removed node
may not fire focusout, so Esc and Tab no longer reached the sheet. The sheet
now reclaims focus when the control that last held it is disabled or gone,
on focusout or on a change inside its prompt slot; a click elsewhere in the
app keeps its own focus.

* test(native-chat): drop the sheet focus-recovery UI tests; proven by revert run instead

* test(native-chat): pass the subagent hook's prompts, epoch and clear count in its perf contract

* fix(native-chat): Esc from a sheet prompt's answer field goes up a level or closes, like the rest of the sheet

* fix(native-chat): only the sheet's prompt controls take focus back, so an ending Stop still hands it to Close

* fix(native-chat): Show that switches the sheet to another subagent focuses that subagent's waiting prompt

* fix(devin): advertise form elicitation so ask_user_question renders the question card (#48904)

Devin only sends ask_user_question as an elicitation/create form when the
client advertises elicitation.form; Orca advertised only url, so Devin
reported the tool as unavailable and asked in plain text.

Advertise elicitation.form for Devin and claim its form requests in the
Devin dialect: only ask_user_question forms (_meta cognition.ai/allowOther
true) get a question card, with a typed "Other" answer sent as the field
value; other forms, including /cloud-setup secret prompts, are refused
with -32602.

Fixes #48899

Co-authored-by: Neil <neil@stably.ai>

* fix(artifacts): show the server's retry time once in the rate-limit error (#48926)

Newer artifact servers already end a 429 message with when to retry
("Try again after 11:31 UTC (in 28 minutes)."), but the client always
appended its own zone-less local reset time, so users saw two conflicting
reset times. Every server that sends resetAt also names the retry time in
its message, so append the local hint only when the server sent no message
or no resetAt.

Refs #48919

Co-authored-by: Claude <noreply@anthropic.com>

* fix(orchestration): admit worker reports after a restart reissues the worker's handle (#41041)

* fix(orchestration): admit worker reports after a restart reissues the worker handle

After an Orca restart a surviving worker PTY can get a fresh handle before
the daemon inventory re-adopts its exported one, so the worker's env handle
names no terminal and its worker_done, escalation, ask and check were
refused as worker_identity_changed.

send, ask and check now resolve the reporter through one place: attested
hook identity, then the handle's own terminal, and only when the handle
names no terminal, its recorded Dispatch (local or federated) re-minted by
the exact recorded process incarnation, still in the recorded pane, with no
other Dispatch having taken the pane. The recovered incarnation is carried
through every downstream fence and re-read at admission and after waits.

* fix(orchestration): keep the recovered check fences within check-worker's line budget, and pin the mid-lookup replacement test to check's own lookup

checkWorkerMailbox now takes the caller's process reader from both callers
instead of defaulting it, and folds the recovered-process pin into one pane
check. The continuity test swapped the process on any pane lookup, which now
also fires in the restart-resumed caller rewrite that runs before the handler;
it swaps only on check's own lookup by the stale handle.

* fix(orchestration): keep a restart-recovered worker pinned to its recovered process after entry

- check revalidation re-proves the recovery after waits, in the Run, Dispatch and direct paths
- a recovered lead bound to its own Run drains its pre-bind Dispatch mail; the Run lookup uses the
  recovered terminal instead of the stale handle the Dispatch stored
- a waiting or resumed ask, local or federated, re-proves the recovery before it takes an answer
- a caller losing a still-live federated Dispatch leaves its mail in place instead of moving it into
  this host's placeholder for the home Run
- finished custody also weighs a later Dispatch from the other store; a handle with two working
  Dispatches is never recovered; the admission re-read also pins the terminal and host scope

* fix(orchestration): type the settled-mail router's database as the full store its methods bind to

* fix(orchestration): never recover a handle with more than one working Dispatch across both stores

The recovery helper compared only the newest record in each store, so a newer finished attachment
could hide an older one still working in another pane. It now counts working Dispatches for the
exact handle in both stores first, and falls back to finished history only when none work. Adds
tests for that case and for the terminal-handle half of the admission re-read pin, and makes the
cross-store custody test assert that no question was created.

* fix(plugins): retry a plugin file after a transient transpile timeout (#48910)

* fix(plugins): retry a plugin file after a transient transpile timeout

A plugin source file that hit the 2 s transpile budget (or a transpiler
crash) had its failure cached by content hash, so the panel stayed broken
until the file changed. Transient failures are now retried on a later load
after 1 s, doubling while they repeat up to 60 s; transform errors stay
cached. Concurrent loads of the same file share one transpile, and the
budget starts once the worker reports ready so cold start does not count.

Fixes #48906

Co-authored-by: Michael Zhou <joei4cm@gmail.com>

* test(plugins): mark the fake-timer answer delay for the real-time-wait gate

---------

Co-authored-by: Neil <neil@stably.ai>

* Update README downloads badge (#48932)

Co-authored-by: buf0-bot[bot] <252831055+buf0-bot[bot]@users.noreply.github.com>

* fix(native-chat): move idle Claude chats, bots included, to a newly selected account (#45478)

* fix(native-chat): move idle Claude chats, bots included, to a newly selected account

A chat's running Claude process keeps the account it launched with, and
nothing moved it after a host account switch until its next send, so an idle
bot's long-lived Claude process kept the previous account.

Once a Claude selection takes effect, each loaded Claude chat whose agent
runs on another account is rechecked under its own serialization and stopped
when it owes no work; its next turn resumes the conversation on the selected
account. A running turn, open or owed child work, queued sends, a running
delivery and provider output not yet in the journal keep the agent. The check
reads the account, then the chat's work once (a journal that moved meanwhile
keeps the agent), and decides at the moment the agent would be marked closing
that nothing changed and the selection it was told of is still committed. A
check that stood down while another account change ran is redone when that
change settles. Removing the selected account whose deselection cannot be
published now restores the selection, as a failed select already does.

* Recheck owed child work when the switch marks an agent closing

A background task's result reaches the chat's child-work status without a
journal row, so it can land between the switch's work check and the stop.
The closing guard now asks the same owed-work question again.

* test: inline the usage-limit turn helper the suite cut removed

* test: keep the queued-send rig within its line budget

* Close the switch review's remaining P3s

- The account-switch stop guard stands down when another stop marked the
  agent closing while the stop's own work check was awaited.
- A select or remove that fails before saving anything settles as
  unchanged, so it no longer reruns every chat's account check; a failed
  change whose restore republished still settles as moved, now from the
  restore itself.
- Exports used only inside their module are no longer exported.

* test: tell chat checks only when a Claude selection settles

One invariant across the selection state machine: a change refused before
anything was saved tells no one, a failed publish whose restore republished
tells checks to run again, and a failed restore keeps every check off until
a later change settles.

* test: return rate-limit state from the account refresh stub

* fix(bots): preselect the default agent in New bot (#48931)

New bot (desktop, Import bot, Hand to bot, and mobile) always opened on
Claude, ignoring the host's default agent. It now opens on the host's
default agent when a bot can run it there without installing it first,
else on the first agent offered. An agent handed in explicitly (a
workspace's own agent, a shared link) still wins, and the owner's pick is
kept.

The bots.agentChoices RPC now also returns the host's defaultAgent so the
phone's New bot preselects the same agent; older hosts that omit it fall
back to the first offered agent.

Fixes #48917

Co-authored-by: Claude <noreply@anthropic.com>

* perf(source-control): scope history follow-ups to #48553 (#48579)

* perf(source-control): keep folder sections out of history request sweeps

A folder section's worktree catalog lists only its owner, yet mounting one
swept every retained history request against it: one membership check per
request even with the scope menu closed, and it could retire another live
worktree's cached page or pending read. Only the ordinary panel's catalog
now sweeps, and the swept catalog is shared, so a remount with an unchanged
catalog checks only released slots. A removed worktree's slot is still
retired on the next catalog change, and its late reply is still dropped.

Follows #48553.

* perf(source-control): bound history eviction work to resident pages

Before an evicting insert, every subscribed slot was looked up in the page
cache to mark read pages recent, so many retained section subscriptions
without pages meant one LRU lookup each. Eviction now walks the resident
pages (at most the cache cap) and drops the oldest one no section reads.
When every page has a reader, the least recent goes and its readers are
told, as before.

Follows #48553.

* fix(source-control): do not reuse a commit compare across a deepened checkout

In a shallow checkout the boundary commit has no parents and compares
against the empty tree. Reselecting it after deepening joined or reused
that read, so the files list showed unchanged older files and Open diff got
the old empty-tree base. Compare reads and cached results are now keyed by
the commit and the parents its history page shows, so a stable graph still
shares one read and a deepened one reads again.

Follows #48553.

* fix(source-control): follow a held commit pick to its refreshed parents

A commit picked before a shallow checkout was deepened, or picked from the
old page while the menu refreshed, kept its old parent list, so its compare
key still matched the empty-tree read. When a fenced, ready history page
shows the picked commit with different parents, the pick now follows that
entry, and its compare reads again against the real parent.

Follows #48553.

* test(source-control): type the folder-section scope mock without a cast

Follows #48553.

* test(source-control): drive a retained shallow pick through the scope menu

Picks the boundary commit from the scope menu's retained shallow page while
its root compare is held, publishes the deepened page, and checks that the
pick follows the fresh parents: a second compare read, the deepened rows
published before the old root reply settles, and the deepened parent and
rows in both the Open diff and single-file payloads.

Follows #48553.

* test(source-control): assert deepened rows before the old root compare settles

Follows #48553.

* feat(mcp): MCP servers in Repository settings, and a host-servers switch in Tools (#48940)

* feat(mcp): MCP servers in Repository settings and a bot Tools switch

On a host that serves MCP servers, Repository settings lists the host's
servers with a switch each for that repo (the same Workspaces choice as
the server page) and the servers the repo's own files define; elsewhere
the MCP configs section stays as it is. A bot's Tools get a "Your MCP
servers" switch when its host sends hostMcpServers. mcpServers.add takes
an optional workspaces, so a server added for one repo is limited to it in
the same write. The GitHub catalog entry adds "Bearer " to a bare token,
and the skills docs stop pointing at a missing Integrations › MCP entry.

* fix(mcp): show no repo MCP section until the host says whether it serves MCP servers

* fix(mcp): a server-owned repo over SSH uses that server's MCP list

* feat(antigravity): offer Approve for me (--mode auto) in terminals (#48479)

* feat(antigravity): offer Approve for me (--mode auto) in terminals

* test(antigravity): verify multi-shell launch and surface routing for Approve for me

* fix(antigravity): include --i value flag and verify resume mode retention

* fix(antigravity): add remaining valued agy flags to required-value options

---------

Co-authored-by: Neil <neil@stably.ai>

* fix(gitlab): fall back to /changes to list MR files on GitLab before 15.7 (#48945)

GitLab added the paginated merge_requests/:iid/diffs route in 15.7, so
older self-hosted instances answer 404 and the MR Files tab showed
"No changed files". When /diffs reports not_found, read the legacy
merge_requests/:iid/changes snapshot (capped to the same 100 entries) and
remember the host so later reads skip the failing /diffs request.

Fixes #48934

Co-authored-by: Neil <neil@stably.ai>

* fix(i18n): translate 11 missing Korean native-chat strings for Antigravity sign-in and MCP (#48968)

Add Korean values for the Antigravity sign-in strip and menu, the
agy sign-in notice, and the Manage MCP servers label, which fell back
to English in ko.json.

Fixes #48969

* fix(i18n): add 11 missing Turkish native-chat strings for Antigravity sign-in and MCP (#48966)

Translate the Antigravity (agy) sign-in strings, the gcloud/API-key
alternatives, and the "Manage MCP servers" label that were added to
en.json without Turkish counterparts, so Turkish users no longer see
English fallbacks in these native-chat surfaces.

Fixes #48967

* fix(i18n): translate 36 missing Simplified Chinese native-chat strings for connections and sign-in (#48960)

Add zh.json values for components.native-chat keys that fell back to
English: googleOffer, webhookSetup, githubPeek.retryKeyHint,
mcp.manage, signInNotice.signsInAgy, antigravityAuth, pairedServerAsk
and clientAsk. Placeholders and Trans tags match en.json; no existing
values change.

Fixes #48961

* fix(i18n): translate 155 missing Russian native-chat strings for connections and sign-in (#48964)

Adds Russian for the components.native-chat keys that fell back to
English: Slack mirror, connector and Google offers, Antigravity sign-in,
sign-in notices and requests, paired-computer and client asks, MCP,
GitHub and web peeks, webhook setup and install. 157 leaves (155 keys
plus Russian plural forms); no existing value changes.

Fixes #48965

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>

* fix(i18n): translate missing Spanish native-chat strings for connections and sign-in (#48954)

Add Spanish for the 155 native-chat keys (156 leaves with plural forms)
that fell back to English: the Antigravity sign-in strip and menu, the
Slack mirror switch and post status, connector and Google account
offers, sign-in notices and requests, paired-computer asks and the
webhook setup card.

Fixes #48955

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>

* fix(i18n): translate missing Portuguese native-chat strings for connections and sign-in (#48962)

Add Portuguese values for 149 native-chat keys (150 leaves with the
extra plural form) that fell back to English: Antigravity sign-in,
Slack mirror, connector asker/offer, Google offer, sign-in notices and
requests, paired-server asks, webhook setup, and related rows. Only
pt.json changes; no existing value or other locale is touched.

Fixes #48963

Co-authored-by: Neil <neil@stably.ai>

* fix(i18n): translate 154 missing Traditional Chinese native-chat strings for connections and sign-in (#48958)

Adds zh-Hant values for the native chat's Slack mirror, connector and
Google offers, Antigravity sign-in, sign-in notices and requests,
paired-server and client asks, tool/offer cards, GitHub and web peeks,
webhook setup and install rows, which previously fell back to English.

Fixes #48959

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>

* fix(i18n): translate missing French native-chat strings for connections and sign-in (#48956)

With the UI in French, native-chat connection and sign-in rows (Antigravity
sign-in, Slack mirror, connector asker/offer, Google offer, sign-in notices,
URL request, paired-server ask, webhook setup, link peeks, MCP) fell back to
English because their components.native-chat keys were missing from fr.json.
Add the 155 keys (156 leaves including the French _many plural form).

Fixes #48957

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>

* fix(i18n): translate missing Japanese native-chat strings for connections and sign-in (#48950)

The Slack mirror, connected-app asker, connect-a-service, Google account,
Antigravity sign-in, sign-in notice, sign-in request, paired-computer ask,
MCP, webhook setup, and link preview rows in the Japanese UI fell back to
English because their keys were missing from ja.json. Each new key sits
after the sibling it follows in en.json. Japanese uses only `_other`, so
`_one` forms are not added.

* fix(editor): show spaces, not &nbsp;, in the doc link menu hint (#48947)

The [[ doc link menu hint passed "↑↓ navigate&nbsp;&nbsp;↵ select
&nbsp;&nbsp;esc dismiss" through t(). React renders string children as
text, so the entities showed up literally in English and in the six
catalogs that kept them (de, fr, pt, ru, tr, zh-Hant).

Use real non-breaking spaces, as the Korean and Spanish catalogs already
do. The key is unchanged.

Fixes #48946

* fix(i18n): keep the spacing Korean pieces need when they are appended (#48949)

Five Korean UI lines are built by appending a translated piece to other
text, and the code relies on the leading or trailing space the piece
carries. The Korean values had dropped that space, so the joined text ran
together (e.g. "5시간— 2시간 후 초기화", "포함됨: #12, #13.GitHub는 ...").

Restore the spacing in 9 ko.json values, use the particle "와 " for the
skill delete join, show the Warp theme source as " ({{value0}})", and pin
every changed value in locale-ko-key-overrides.json so catalog repair
keeps them.

Fixes #48948

* fix(watcher): stop Windows fs.watch livelock when a watched directory is deleted (#48937)

On Windows, libuv before 1.53 reports ('rename', <namespaced dir>) in a
tight loop after a watched directory is deleted and never raises an
fs.watch error, pinning a CPU core. #47619 guarded only the parcel
watcher child. Move watchedDirectoryDeletionCheck to src/shared/file-watch
and apply it to the remaining directory watchers:

- File Explorer root watcher (Electron main): close and report the
  existing "File watcher root was deleted" terminal error.
- Transcript native watcher (parent watches): route through the existing
  error handler so the caller rebinds.
- orcad stop-request listener: close the watcher; polling still delivers.
- Google key Downloads watch: settle as unwatchable.
- Pi background-work bridge source: close without re-reading the folder.

Add a real-fs win32 test for the File Explorer watcher and route it, plus
the watcher and helper sources, to the Windows boundary CI job.

Co-authored-by: Neil <neil@stably.ai>

* fix(i18n): translate 155 missing German native-chat strings for connections and sign-in (#48952)

Add German for the native chat's Slack mirror, connector and Google
offers, Antigravity sign-in, sign-in notices and requests, paired-server
and client asks, MCP sign-in, tool/offer cards, GitHub and web peeks,
webhook setup and install strings. Only de.json changes: 155 keys added,
no existing values changed.

Fixes #48953

Co-authored-by: Neil <neil@stably.ai>

* fix(i18n): translate 4 missing Korean native-chat strings (#48999)

Add Korean for the composer's model loading and sign-in lines, the bot
creation offer's "Open {{name}}" button, and the worker dock's
removed-workspace line, which fell back to English.

Fixes #49000

* fix(i18n): translate 3 missing Turkish native-chat strings for models and the worker dock (#48997)

Add Turkish values for components.native-chat composer.modelsLoading,
composer.signInForModels and workerDock.workspaceRemoved, which fell
back to English because tr.json had no entries for them.

Fixes #48998

* fix(i18n): translate 18 missing Simplified Chinese native-chat strings (#48991)

Agent message kind labels, the waiting-mail spoken state, image gallery
screen-reader announcements, the composer model-loading and sign-in
lines, the bot offer open button, and the worker dock removed-workspace
notice fell back to English in the Simplified Chinese UI because their
keys were missing from zh.json.

Fixes #48992

* fix(i18n): translate 184 missing French native-chat strings for messages, approvals, and usage (#48987)

With the French UI, approval prompts and records, the usage-limit row and
its actions, the composer, agent and worker messages, slash command
descriptions, notices, failure lines, image preview announcements and the
CI result line fell back to English because their keys had no fr.json
entry. Add 184 French leaves (182 keys plus their extra plural forms)
under components.native-chat, reusing the wording already in fr.json, and
match the WSL chat hint to the existing "Ajouter une distro WSL" label.

Fixes #48988

Co-authored-by: Neil <neil@stably.ai>

* fix(i18n): translate 188 missing Russian native-chat strings for messages, approvals, and usage (#48995)

With the UI set to Russian, 188 keys under components.native-chat
(approvals, usage-limit row, composer, agent messages, slash command
descriptions, notices, failure lines, image gallery, CI result line)
had no entry in ru.json, so i18next fell back to English. Add the 192
leaves (188 keys plus Russian plural forms), reusing the catalog's
existing terms, including inflected бот forms for bot strings.

Fixes #48996

Co-authored-by: Neil <neil@stably.ai>

* fix(i18n): translate 185 missing Traditional Chinese native-chat strings (#48989)

Add zh-Hant entries for native-chat approvals, usage-limit rows and
actions, composer, agent messages, slash command descriptions, notices,
failure words, image gallery, and CI result line, which previously fell
back to English.

Fixes #48990

* fix(i18n): translate 156 missing Portuguese native-chat strings for messages, approvals, and usage (#48993)

Add Portuguese values for the native-chat keys that still fell back to
English: tool approvals, usage-limit actions, the composer, agent
messages, slash command descriptions, notices, failure words, image
gallery announcements, and the CI result line. Each value keeps its
English placeholders and tags; existing values and other locales are
unchanged.

Fixes #48994

Co-authored-by: Neil <neil@stably.ai>

* fix(i18n): translate 189 missing German native-chat strings for messages, approvals, and usage (#48983)

With the UI set to German, 189 keys under components.native-chat (approval,
usageLimitActions, usage, composer, agentMessage, slashCommandDescriptions,
notices, failureWords, imageGallery, ciResultLine and others) had no entry in
de.json, so i18next fell back to English. Add them, reusing the catalog's
existing German terms; placeholders and Trans tags match en.json.

Fixes #48984

Co-authored-by: Neil <neil@stably.ai>

* fix(i18n): translate 104 missing Japanese native-chat strings (#48980)

The usage-limit, composer, agent message, slash command, notice, approval
and image gallery rows in the Japanese UI fell back to English because
their keys were missing from ja.json. Each new key sits after the sibling
it follows in en.json; Japanese uses only `_other`, so `_one` forms are
not added. Bot strings use the existing ボット term.

Fixes #48981

* fix(mobile-status): stamp done frames with pane status-change time so Pi compaction end clears working (#49029)

A status-only OSC 7501 working during Pi's post-turn compaction went out as a
title-only working stamped at that change, but the following 7501 done reused
the hook row's older time, so paired clients kept the working entry. Stamp the
done branch with ptyStatusEvidenceAt like the title-only and demotion paths.

Original fix by @mmarabel in #49029.

Fixes #49012

Co-authored-by: Neil <neil@stably.ai>

* fix(i18n): translate missing Spanish native-chat strings for messages, approvals, and usage (#48985)

Add Spanish for 182 native-chat keys (approvals, usage-limit actions,
usage, composer, agent messages, slash command descriptions, notices,
failure words, image gallery, CI result line and a few single strings)
that previously fell back to English, and align the WSL add-host hint
with the Spanish menu labels it names.

Fixes #48986

Co-authored-by: Neil <neil@stably.ai>

* fix(bots): include paired members in group Home items and badge (#49005)

* fix(bots): include paired members in group Home items

A bot group hosted on this computer can include bots on paired computers,
but group Home and its right-sidebar badge resolved members by bare bot id
from the local roster only, so paired members' items and Needs you counts
were missing (and a same-id bot on another host could be picked instead).

Add useBotGroupMembers, which resolves the group's full host-qualified
roster (groupMemberKeys) against the bot catalog. Paired members are read
only while their computer is connected, so an offline host cannot lock or
stall the group list; the member that owns the open item is held while its
computer is offline so the item stays up. Group Home and the activity badge
both use the hook.

Co-authored-by: Daniel Lafraia <946751+lafraia@users.noreply.github.com>

* test(bots): read the pane bot through a function after resetting it

---------

Co-authored-by: Neil <neil@stably.ai>

* fix(sidebar): keep the send menu open when an agent row is picked as the send target (#49027)

Agent rows are non-focusable divs, so the default mousedown moved focus
to the sidebar scroll container. The non-modal send menu closed on that
focus-outside and turned off send-target mode before the click could
send, so the click fell through to "open this agent" instead.

While a row is a send target, prevent its mousedown default so focus
stays in the menu until the click sends. The compact and full agent rows
now share one useAgentSendTargetRow hook for the click capture and the
mousedown guard.

Fixes #49025

Co-authored-by: Neil <neil@stably.ai>

* fix(antigravity): treat gateway-backed agy as signed in for personal Antigravity Chat (#49049)

With no Google credential, agy's sign-in was read from an initialize-only
check, so a host whose agy serves chats through AGY_LLM_GATEWAY_URL showed
a false signed-out notice. When personal chats run on agy's own home and
the launch environment sets a non-empty gateway URL, ask agy with
session/list instead, which agy answers without a Google login when the
gateway serves it. Enterprise chats run on Orca's home, which drops the
gateway variables, so they keep the compatibility check.

envValue now accepts env records with undefined values so the gateway
check can read the resolved child env through the shared Windows-aware
helper.

Refs #46170

Co-authored-by: Neil <neil@stably.ai>

* chore(mobile): bump to 0.0.71 and Android versionCode 35 (#49087)

* fix(settings): mark Voice settings local-only while a remote host is selected (#49057)

Voice settings always configure this computer: the pane reads the local
settings and talks to the local speech service. When the Settings host
picker pointed at a remote host, the Voice section still showed this
computer's dictation state with nothing saying so, which made the remote
host look configured.

With a remote host selected, the Voice section description now names the
host and says these settings apply to this computer only. The host name
lookup that Notifications and Orca Account each duplicated moves into a
shared getSettingsHostServerName helper used by all three sections.

Refs #44162

Co-authored-by: Neil <neil@stably.ai>

* fix(mcp): keep workspace exclusions saved from two editors at once (#49121)

* fix(mcp): keep a workspace exclusion another client saved meanwhile

Each workspaces save now sends the choice it was made from, and the host
applies only what that edit changed onto the stored value, inside the
file's write, instead of replacing it whole.

* fix(mcp): whole-choice phone taps replace, and merge workspace keys by set

* fix(plugins): pass USER, LOGNAME and USERNAME to plugin workers (#49069)

Plugin workers start from an allowlisted environment that kept HOME but
dropped the login name. Claude Code on macOS keys its Keychain OAuth
login by USER, so a plugin that spawned `claude` failed to authenticate
even though `claude` worked in a terminal. Allowlist the login-name
variables (USER, LOGNAME, and USERNAME for Windows); they carry no
credential.

Fixes #49058

Co-authored-by: Neil <neil@stably.ai>

* fix(git): give the Windows SSH-policy probe a realistic timeout (#49070)

Before each network Git command Orca reads core.sshCommand and
ssh.variant with a short git config probe. Its 2.5 s budget includes
process creation, which on Windows (cold WSL, security software that
inspects CreateProcess) can take several seconds. A probe timeout is
rethrown, so the fetch/push/clone it guards never ran and reported
"git timed out." even though Git and the network were fine.

Give every Windows probe, native or WSL, the 10 s budget WSL already
had, still capped by the caller's own timeout. macOS and Linux keep
2.5 s.

Fixes #49063

Co-authored-by:…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Portuguese UI: 149 native chat strings for connections and sign-in fall back to English

2 participants