Skip to content

feat(settings): let Codex terminals opt back into Codex's shared server - #23929

Merged
Jinwoo-H merged 9 commits into
mainfrom
jinwoo/codex-isolate-setting
Sep 30, 2026
Merged

Jinwoo-H merged 9 commits into
mainfrom
jinwoo/codex-isolate-setting

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​261 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​261
Prod 20 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​307 $\color{#cf222e}{\Huge{\mathbf{−}}}$​17 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​290

ELI5

Since #23900, every Codex terminal in Orca runs on its own private Codex server, which keeps Orca's status and tab closing correct. Some people still want Codex's shared server (for example, to see all their sessions in Codex's agents overview). This PR adds a switch for that in Settings, plus a one-time notice that tells people about the change and links to the switch.

What Changed

  • New setting, Settings → Agents: "Run each Codex terminal on its own server". It's on by default. Description: "Keeps Orca's status and closing tabs working correctly. Turn off to use Codex's shared server and its agents overview. Applies to new terminals."
  • One-time notice: a sonner toast that stays until dismissed and has an Open Settings action. The action opens Settings → Agents and scrolls to the new setting. Title: "Orca now runs Codex without its shared server". Description: "This makes agent status more reliable. You can turn it back on in Settings."
    • Trigger: the first time a Codex terminal exists after persisted UI state has loaded. That means any of: a tab Orca launched as Codex, an agent-status row reported as Codex (this covers SSH too), or codex detected in the foreground of a local pane. Other agents never trigger it. It doesn't show if the user already turned the setting off.
    • Shown once: a persisted UI-state flag codexTerminalServerIsolationNoticeSeen is set at the moment the toast is shown. This follows the updateReassuranceSeen pattern, including an entry in the ui.set schema for paired clients. Once the flag is set, the hook no longer subscribes to the store, so it costs nothing. Until then, it checks only when tabs, agent status, foreground agents or settings change.

Why

  • Using the environment variable the fix(terminal): run Codex in Orca terminals without the shared background server #23900 wrapper already reads keeps a single opt-out path. It also works the same on every host: local, daemon, SSH and WSL. The concurrent host-side --no-daemon work reads the same variable from the spawn environment.
  • Adding the variable only when the setting is off means the default behaves exactly as it does today, and a user's own ORCA_CODEX_ISOLATE still works.
  • No Codex version gate on the notice: Orca has no cheap, reliable way to detect the Codex version that works on local, WSL and SSH hosts alike. The wrapper checks codex --help inside the shell and never reports the result. Adding a codex --version check in the main process wouldn't cover SSH or WSL. So the notice fires on the first Codex terminal. On older Codex it is still true: each terminal already runs its own process.
  • The setting sits at the top level of the Agents pane, right after the workspace-trust setting, rather than inside the Codex catalog row. That row only appears when Codex is detected on the current target, and it starts collapsed, so the toast's deep link couldn't reliably reach it.

Linked Issue

Refs #22873 (STA-8467), follows #23900.

Visual Proof

Setting on (default):
setting-on

Setting off (toggled by clicking the switch after following the toast's Open Settings link):
setting-off

Notice on the first Codex terminal (Codex runs against an isolated CODEX_HOME/HOME, so its sign-in screen shows):
toast

New terminal with the setting on: ORCA_CODEX_ISOLATE is unset and the wrapper passes --no-daemon (fake codex 0.157 binary, confirmed via whence -p):
on

New terminal with the setting off: ORCA_CODEX_ISOLATE=0, and the wrapper leaves the args alone:
off

After a full app restart, with a Codex tab open, no toast appears:
restart

Testing

  • I manually tested these changes locally. macOS: headless dev runtime (ORCA_BACKGROUND_LAUNCH=1) with an isolated profile, HOME and CODEX_HOME, driven over CDP. Terminals ran through the isolated terminal daemon. The toast appeared once, Open Settings landed on the setting, and the toast did not come back after a renderer reload, a new Codex tab or an app restart. echo showed ORCA_CODEX_ISOLATE only when the setting was off. SSH and WSL were not run live. They are covered by unit tests: the relay keeps the client's value, and WSLENV includes ORCA_CODEX_ISOLATE/u.
  • Automated tests added/updated:
    • spawn-options-codex-isolation.test.ts: renderer and runtime spawn paths, local and SSH connections, setting on/absent means nothing is injected, off means ORCA_CODEX_ISOLATE=0.
    • pty-handler-spawn-environment.test.ts: the relay keeps the client opt-out.
    • wsl-orca-env.test.ts: the opt-out is forwarded into WSL.
    • codex-terminal-server-isolation-notice.test.ts: shows once and marks it seen; triggers on launch, hook and foreground Codex; never triggers for other agents; stays quiet when already seen, opted out, or before persisted UI loads; the action navigates to the setting.
  • pnpm tc, oxlint, check:code-quality:changed, localization extraction/coverage, the runtime localization catalog check and the RPC params catalog pass. en-runtime-required.json gains the new search keywords (regenerated with the catalog script).

Review

Agent skill upstream boundary

  • Not applicable.

Notes

  • Cross-platform: the variable is a plain environment value, and it is forwarded into WSL through WSLENV. The wrappers for POSIX shells, fish and PowerShell already honour it.
  • SSH: the relay passes the client's environment through, and old relays ignore the variable.
  • Remote Orca servers: terminals that a paired server spawns follow that server's own setting. This PR does not expose the setting to paired clients.
  • Backwards compatibility: the setting is optional and treated as on when absent. The new UI flag is optional.

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)
  • 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)

…d server

Off injects ORCA_CODEX_ISOLATE=0 into new terminals on every host (local,
daemon, SSH relay, WSL), which the codex shell wrapper from #23900 reads
to skip --no-daemon. On (the default) injects nothing.
Shows a one-time toast the first time a Codex terminal starts, with an
Open Settings action that lands on the new Codex server setting. The
seen flag persists in UI state and is set when the toast is shown.
@greptile-apps

greptile-apps Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Adds a terminal server isolation setting for Codex.

The PR appears safe to merge, with two outstanding, non-blocking wording concerns in the existing review threads.

Findings

  1. P2 Shared-server risk is omitted ▶
  2. P2 Notice reverses switch guidance ▶

Summary

This PR adds a default-on per-terminal Codex server setting and a one-time notice, then extends the branch with Codex launch and trust handling, shared chat-journal storage, and mobile stream-lifecycle changes.

  • New terminals receive the shared-server opt-out environment value only when the setting is off.
  • Structured chats move to a host-level journal database with per-chat-file import and recovery handling.
  • Mobile chat subscriptions gain distinct tokens and explicit handling for ended streams.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Setting[Agents setting] --> Spawn[PTY spawn options]
  Spawn --> Env{Isolation off?}
  Env -->|Yes| OptOut[ORCA_CODEX_ISOLATE=0]
  Env -->|No| Default[Leave environment unchanged]
  OptOut --> Wrapper[Codex launch wrapper]
  Default --> Wrapper
  Wrapper --> Codex[Codex terminal]
  Codex --> Notice[One-time notice after UI hydration]
Loading

Reviews (8) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..."

@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 277dfb5a-9f36-4ecc-8e8a-4d7ec5b41670

📥 Commits

Reviewing files that changed from the base of the PR and between 2fb70b9 and 2671df4.

📒 Files selected for processing (7)
  • src/main/ipc/pty/ipc/spawn-options.ts
  • src/main/ipc/pty/runtime/spawn-options.ts
  • src/renderer/src/components/settings/AgentsPane.tsx
  • src/renderer/src/components/settings/agents-search.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/default-global-settings.ts
  • src/shared/global-settings-types.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/renderer/src/i18n/locales/en.json

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


📝 Walkthrough

Walkthrough

The change adds a default-on Codex terminal-server isolation setting and applies it to renderer and runtime PTY spawn environments. The Agents settings pane exposes the setting outside paired web-client windows. A persisted notice appears when Codex activity is detected and isolation is enabled. Its action opens the relevant settings target.

Priority: ⬇️ Low

Merge Risk: 🔵 Low · up to 2671d

Paired web-client users may see a search result for a setting they cannot access in that window. This is a localized usability issue with a reasonable workaround.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 74ba7

The isolated mode remains the default. Turning it off deliberately restores Codex’s existing shared-server behavior for new terminals, including its session-status and lifetime trade-offs. No credential or privilege expansion was demonstrated, but behavior across deployed terminal hosts and mixed-mode sessions remains unverified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — For users selecting the opt-out, the relevant coupling is among Codex tabs using a shared server for a CODEX_HOME; the wrapper identifies the first tab’s environment as the source used for their hooks. The evidence does not establish a cross-tenant or cross-account boundary crossing.

Trust Boundaries and Controls

  • observed — The preference changes server selection through a terminal environment value, not through a new credential or permission grant. With the preference enabled, the helper leaves an inherited ORCA_CODEX_ISOLATE value untouched; the wrapper’s pre-existing opt-out can therefore still determine effective behavior.
  • observed — The switch and notice are omitted in paired web-client windows, whose terminals are described as following the host preference. The notice’s persisted update sends only its seen-state boolean.

Resilience and Maintainability Implications

  • observed — The notice waits for persisted-state hydration and Codex detection, marks itself seen before display, and uses a stable toast ID. A failed persistence write or interruption may affect notice delivery, but the notice path does not set the isolation preference.

Hardening Proposals

  • proposed — Expose or clarify the effective mode when an inherited ORCA_CODEX_ISOLATE=0 overrides the enabled preference, so the displayed switch cannot be mistaken for proof that every new Codex process is isolated.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 24 functions across 21 files. (1 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely describes the main change: allowing Codex terminals to use Codex's shared server through a settings option.
Description check ✅ Passed The description is complete and aligned with the template. It explains the user impact, mechanism, rationale, linked issues, visual proof, testing, compatibility considerations, and checklist status.
Full details: Docstring Coverage

Explanation

Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 24 functions across 21 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

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

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 2c3d2336-251c-4f93-aad6-28bfcbbb2089

📥 Commits

Reviewing files that changed from the base of the PR and between 5c59a2d and 74ba744.

📒 Files selected for processing (22)
  • src/main/ipc/pty/ipc/spawn-options-codex-isolation.test.ts
  • src/main/ipc/pty/ipc/spawn-options.ts
  • src/main/ipc/pty/runtime/spawn-options.ts
  • src/main/pty/wsl-orca-env.test.ts
  • src/relay/pty-handler-spawn-environment.test.ts
  • src/renderer/src/app-shell/use-app-shell-services.ts
  • src/renderer/src/components/settings/AgentsPane.tsx
  • src/renderer/src/components/settings/CodexTerminalServerIsolationSetting.tsx
  • src/renderer/src/components/settings/agents-search.ts
  • src/renderer/src/components/settings/codex-terminal-server-isolation-copy.ts
  • src/renderer/src/components/terminal-pane/codex-terminal-server-isolation-notice.test.ts
  • src/renderer/src/components/terminal-pane/codex-terminal-server-isolation-notice.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/settings-navigation-types.ts
  • src/renderer/src/store/slices/ui/ui-slice-contract-contextual.ts
  • src/renderer/src/store/slices/ui/ui-slice-hydration-actions.ts
  • src/renderer/src/store/slices/ui/ui-slice-trust-actions.ts
  • src/shared/codex-terminal-server-isolation.ts
  • src/shared/default-global-settings.ts
  • src/shared/global-settings-types.ts
  • src/shared/persisted-ui-state-types.ts
  • src/shared/rpc-contract/client-ui-params.ts

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

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

The default-on isolation can be silently overridden by an inherited ORCA_CODEX_ISOLATE: the "on" path injects nothing, but no env builder drops a value already present in the host process environment. A host process carrying ORCA_CODEX_ISOLATE=0 leaks it into setting-on terminals and disables isolation on local, daemon, and SSH paths. Details below.

Reviewed changes

  • New setting: codexTerminalServerIsolation (default true, absent reads as on) in global-settings-types.ts / default-global-settings.ts, rendered as a switch in Settings → Agents and hidden on paired web clients.
  • Spawn-time injection: withCodexTerminalServerIsolationEnv adds ORCA_CODEX_ISOLATE=0 when the setting is off, called from both ipc/spawn-options.ts and runtime/spawn-options.ts; the existing codex wrapper reads the variable.
  • One-time notice: useCodexTerminalServerIsolationNotice with a persisted codexTerminalServerIsolationNoticeSeen flag, triggered by an Orca-launched Codex tab, a hook-reported Codex row, or a foreground codex.
  • Tests: spawn-env on both hosts, relay passthrough, WSLENV forwarding, and the notice hook.

I confirmed verify:localization-extraction, audit-localization-coverage, and check:code-quality:changed pass, both new test files pass, and independently verified the notice hook cannot double-fire or miss-fire across hydration/StrictMode ordering.

⚠️ An inherited ORCA_CODEX_ISOLATE is never dropped, so "on" does not guarantee isolation

The setting is implemented as "inject nothing when on", which is correct only if nothing else supplies the variable. Every provider builds its final spawn env by merging process.env and then the explicit spawn env, and each already scrubs sibling Orca-owned keys (ORCA_CODEX_LAUNCH_PREFLIGHT, ORCA_HISTFILE, fish_history, pane identity) for exactly this reason. ORCA_CODEX_ISOLATE is absent from all of those scrub lists, so a host process that carries ORCA_CODEX_ISOLATE=0 (for example a daemon or relay started from an Orca pane whose setting was off) silently flips setting-on terminals back to Codex's shared server — the opposite of what the switch and the one-time notice promise.

Technical details
# Inherited `ORCA_CODEX_ISOLATE` reaches setting-on terminals

## Affected sites
- `src/shared/codex-terminal-server-isolation.ts:22-25` — the enabled branch returns `env` unchanged; it neither adds nor removes the key.
- `src/main/providers/local-pty-spawn-environment.ts:25-26` — final env is `{ ...process.env, ...spawn.env }`; nothing deletes `ORCA_CODEX_ISOLATE`.
- `src/main/daemon/pty-subprocess/spawn-environment.ts:169-177` — same merge; conditional drops exist for pane identity, `fish_history`, `HISTFILE`, `ORCA_HISTFILE` but not this key.
- `src/relay/pty-handler.ts:849` — unconditionally deletes `ORCA_CODEX_LAUNCH_PREFLIGHT`; there is no matching delete for `ORCA_CODEX_ISOLATE`.
- `src/relay/pty-handler-spawn-environment.test.ts:366-375` — the new test only proves a client-supplied `ORCA_CODEX_ISOLATE=0` is preserved; it never seeds the relay process env, unlike the adjacent `ORCA_CODEX_LAUNCH_PREFLIGHT` test which is parameterized over `['process', 'client']`.
- `src/main/pty/wsl-orca-env.ts:85` — `ORCA_CODEX_ISOLATE/u` is forwarded whenever the value is truthy (`'0'` is), so a leaked value also crosses into WSL.

## Required outcome
A setting-on spawn must not inherit `ORCA_CODEX_ISOLATE` from the host process, while a setting-off spawn must still deliver its explicit `0`.

## Suggested approach (optional)
The two spawn-options builders already thread an `envToDelete` list into every provider builder (daemon `deleteRequestedDaemonEnvKeys`, local `enforceLocalPtySpawnEnvironmentOverrides`, relay `:851-853`). When isolation is on, add `CODEX_ISOLATE_ENV` to that list so all providers drop the inherited value in one place; a follow-up unit test seeding `process.env.ORCA_CODEX_ISOLATE` and omitting it from the spawn env would pin it.

## Open questions for the human (optional)
Is an inherited `ORCA_CODEX_ISOLATE` considered in scope to drop, or is the host process env assumed free of it?

ℹ️ Nitpicks

  • src/renderer/src/components/settings/codex-terminal-server-isolation-copy.ts:25-32 — the settings.agents.codexTerminalServerIsolation.search.* keys are passed through searchKeywords specs, which the extractor does not scan, so they never enter en.json and stay English-only. Every neighbouring entry uses auto.* catalog keys; reusing the existing auto.components.settings.agents.search.* keys (as agent-status-hooks-copy.ts does for codex/status) would keep these translated.
  • src/renderer/src/components/terminal-pane/codex-terminal-server-isolation-notice.test.ts — the mocked store selector is non-reactive (selector(backing.getState())) and resetStore always seeds persistedUIReady: true, ...NoticeSeen: false before mount, so the real seen: true → false-after-mount re-run (the only path that exercises React's reactive selector) is untested. The production store is reactive so this is coverage, not a bug.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

export function getCodexTerminalServerIsolationDescription(): string {
return translate(
'settings.agents.codexTerminalServerIsolation.description',
"Keeps Orca's status and closing tabs working correctly. Turn off to use Codex's shared server and its agents overview. Applies to new terminals."

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Shared-server risk is omitted The setting no longer warns that turning off isolation can make Orca’s Codex status inaccurate. Users choosing the shared server for its agents overview see the benefit but not this known trade-off at the point of choice. Please restore an explicit warning in the setting description.

Knowledge Base Used: Agent integrations and hooks

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

id: 'codex-terminal-server-isolation-notice',
description: translate(
'terminal.codexTerminalServerIsolationNotice.description',
'This makes status more reliable. You can turn it back on in Settings.'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Notice reverses switch guidance The notice says users can “turn it back on,” but Open Settings leads to a switch labeled “Run each Codex terminal on its own server” that is already on. Users must turn that switch off to restore Codex’s shared server. The revised notice also no longer explains that isolated Orca terminals are absent from Codex’s agents overview, so users may miss why they would change the setting. Please say explicitly what turning the switch off restores.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Keeps main's agent workspace trust setting beside this branch's Codex
terminal server isolation setting in the settings types, defaults,
Agents pane and its search entries.
Gives its search entry an id and gates it with
includeCodexTerminalServerIsolation, as the other host-only rows are, so
a paired web client cannot find a row it never renders. Its search
keywords now use catalogued agents-search keys instead of missing ones;
CODEX_ISOLATE_ENV is no longer exported; the toast id comment names the
case it guards.
@Jinwoo-H

Copy link
Copy Markdown
Contributor Author

@pullfrog re the inherited ORCA_CODEX_ISOLATE: not changing: same as main; forcing a value would add an env var for default-on users.

@pullfrog

pullfrog Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Agreed — withdrawing the inherited ORCA_CODEX_ISOLATE finding, no code change.

Verified the rationale against the code: on main nothing ever dropped ORCA_CODEX_ISOLATE, and the wrapper's opt-out is user-facing, so an inherited value already determines behavior there. With this PR the "on" path still adds nothing, so default-on spawn environments stay byte-for-byte identical to main, and a user's own ORCA_CODEX_ISOLATE=0 keeps working. Force-setting or dropping the value would either add an env var for default-on users or defeat that documented opt-out, so the current design is the right call.

Also resolved the now-fixed paired-web search-entry thread (agents-search.ts), addressed in 8fca145.

Pullfrog  | View workflow run | via Pullfrog | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — minor suggestions inline.

Reviewed changes

  • Paired-web search leak fixed: the Codex setting's search entry now carries an id and is gated by includeCodexTerminalServerIsolation, which buildCapabilitySettingsSections threads from !isWebClient, matching the neighboring host-only rows.
  • Search keywords localized: hand-written settings.agents.codexTerminalServerIsolation.search.* keys replaced with shared auto.components.settings.agents.search.* catalog keys.
  • Dead export removed: CODEX_ISOLATE_ENV is no longer exported; it was only read inside codex-terminal-server-isolation.ts.
  • Tests/comment: added a paired-web assertion in AgentsPane.test.tsx and reworded the notice's stable-id comment.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

…ata builder

Calling getAgentsPaneSearchEntries directly stayed green with the web
gate deleted; the metadata builder test fails without it.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

This run covered the delta since the prior pullfrog review (8fca14511e) — the test-only commit c676c8f192 that closes out the last open thread.

  • Paired-web search gate pinned through the builder: useSettingsNavigationMetadata.test.ts now builds real navigation metadata and asserts the Codex server setting is listed in desktop Agents search and absent for a web client, replacing the test that called getAgentsPaneSearchEntries with the option directly.
  • AgentsPane.test.tsx trimmed: the paired-web case now asserts only that the row does not render; the option-filter search assertions live with the other search coverage.

I verified the new test is falsifiable: removing includeCodexTerminalServerIsolation: !isWebClient from settings-navigation-capability-sections.ts:47 fails it. Both affected test files pass (57 tests).

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

…setting

# Conflicts:
#	src/main/ipc/pty/ipc/spawn-options.ts
#	src/main/ipc/pty/runtime/spawn-options.ts
@Jinwoo-H
Jinwoo-H merged commit a0abcb6 into main Sep 30, 2026
6 of 7 checks passed
Jinwoo-H added a commit that referenced this pull request Sep 30, 2026
…er (#23929)

* feat(settings): add a setting to run Codex terminals on Codex's shared server

Off injects ORCA_CODEX_ISOLATE=0 into new terminals on every host (local,
daemon, SSH relay, WSL), which the codex shell wrapper from #23900 reads
to skip --no-daemon. On (the default) injects nothing.

* feat(terminal): announce per-terminal Codex servers once

Shows a one-time toast the first time a Codex terminal starts, with an
Open Settings action that lands on the new Codex server setting. The
seen flag persists in UI state and is set when the toast is shown.

* fix(settings): drop the status warning from the Codex server setting

* fix(terminal): simplify the Codex shared-server notice

* fix(terminal): say agent status in the Codex notice

* fix(settings): hide the Codex server setting from paired web search

Gives its search entry an id and gates it with
includeCodexTerminalServerIsolation, as the other host-only rows are, so
a paired web client cannot find a row it never renders. Its search
keywords now use catalogued agents-search keys instead of missing ones;
CODEX_ISOLATE_ENV is no longer exported; the toast id comment names the
case it guards.

* test(settings): assert the Codex server search gate through the metadata builder

Calling getAgentsPaneSearchEntries directly stayed green with the web
gate deleted; the metadata builder test fails without it.

Backport: #23744 (workspace trust setting) is not on this branch, so its adjacent setting, search entry and test are left out.

(cherry picked from commit a0abcb6)
x-Ai pushed a commit to x-Ai/orca that referenced this pull request Oct 4, 2026
…rch keywords to Chinese

Upstream added settings.agents.codexTerminalServerIsolation.* and
codexSharedServerWarning.* (stablyai#23929, stablyai#24217) with English only, so the
Agents pane showed both rows untranslated; five of their settings-search
keywords were missing too.
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.

1 participant