Skip to content

feat(codex): add account-scoped launch selectors - #13272

Closed
rp0927 wants to merge 7 commits into
stablyai:mainfrom
rp0927:feat/codex-account-selector
Closed

rp0927 wants to merge 7 commits into
stablyai:mainfrom
rp0927:feat/codex-account-selector

Conversation

@rp0927

@rp0927 rp0927 commented Aug 8, 2026

Copy link
Copy Markdown

Summary

Codex launches now expose account selection in both the quick-launch menu and the Orca CLI. The UI keeps Current default available during loading and failures, shows friendly account labels, and sends the canonical managed-account UUID through the launch contract added by the preceding PR.

The CLI accepts an explicit account selector for Codex terminal creation, resolves UUIDs through the provider-account snapshot, and rejects email aliases, deleted accounts, unsupported runtimes, valueless flags, and mismatched WSL lanes before launch.

This PR is stacked on #13271, #13270, and #13183. Please review it after those PRs land; their changes will disappear from this diff as the stack advances.

Screenshots

Not attached yet because this is a dependency-gated draft. Before marking it ready, I will capture the Codex quick-launch account submenu against the rebased branch.

Testing

  • pnpm lint
  • pnpm typecheck
  • pnpm test
  • pnpm build
  • Added or updated high-quality tests that would catch regressions

Focused validation:

  • Focused Vitest suite covering CLI account/terminal handling, launch-option construction, quick launch, and loading/error UI states — 49 tests passed.
  • pnpm run build:desktop — passed.
  • git diff --check — passed.

Local environment note: the repository requests Node 24, while this workstation currently exposes Node 25.8.1. The desktop build completed; its development CLI install step reported the expected permission warning for /usr/local/bin/orca-dev without failing the build.

AI Review Report

The review checked canonical UUID selection, current-default and system-default behavior, host/WSL lane filtering, remote capability gating, SSH fallback, loading/error/retry states, and the existing Radix dropdown keyboard behavior.

Regression tests cover loading fallback, friendly labels with UUID launch values, load errors and retry, SSH and older-runtime fallback, UUID-only CLI selection, WSL system selection, deleted/alias selectors, missing flag values, and managed WSL accounts without a distro.

Cross-platform review:

  • Host and WSL accounts are filtered into separate launch lanes with case-insensitive distro matching.
  • SSH workspaces keep the legacy default launch because this process cannot enumerate the remote credential registry.
  • Older paired runtimes retain Current default until they advertise account-reference support.

Security Audit

  • Renderer and CLI select accounts by opaque UUID and forward only ProviderAccountRef.
  • Email is display-only and is deliberately rejected as a CLI selector.
  • Unsupported, deleted, and cross-lane account references fail before agent launch.
  • Credential paths, auth files, and tokens remain main-process-owned and are not added to localization, renderer state, or CLI output.
  • Dependencies and credential formats are unchanged.

Notes

@rp0927

rp0927 commented Aug 13, 2026

Copy link
Copy Markdown
Author

Rebased onto current origin/main (392 commits). Conflict resolutions kept main’s usage-provider IPC/lifecycle and PTY cwd prevalidation, and ported account-filter / managed-home behavior onto those paths. Localization keys were merged rather than dropped. Stack branches were force-pushed with --force-with-lease. GitHub will not accept another fork branch as the base, so these PRs still target main and still contain the full stack below them — review bottom-up starting at #13183.

@rp0927
rp0927 marked this pull request as ready for review August 13, 2026 14:19
@rp0927
rp0927 requested a review from brennanb2025 as a code owner August 13, 2026 14:19
@coderabbitai

coderabbitai Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

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: Pro Plus

Run ID: 338c7431-72cb-4eba-a4a8-29bd7235e6f3

📥 Commits

Reviewing files that changed from the base of the PR and between adf2f2c4b1cafe95a3fd70909d781acbdf7077c7 and 6f2170b6f621493c6775219fb70b57ff96920145.

📒 Files selected for processing (5)
  • src/main/ipc/pty.test.ts
  • src/main/ipc/pty.ts
  • src/main/runtime/orca-runtime.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/protocol-version.ts
🚧 Files skipped from review as they are similar to previous changes (5)
  • src/shared/protocol-version.ts
  • src/renderer/src/i18n/locales/en.json
  • src/main/runtime/orca-runtime.ts
  • src/main/ipc/pty.ts
  • src/main/ipc/pty.test.ts

📝 Walkthrough

Walkthrough

The change adds account-scoped Codex launches for managed and system accounts across CLI, renderer, preload, runtime, and PTY flows. It validates provider account references, runtime lanes, WSL distributions, capabilities, and account availability. It preserves account-specific Codex homes without changing global selection. It also adds PTY-scoped Codex model discovery, dynamic model catalogs, account-selection UI, localization, and comprehensive tests.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the implementation and testing, but it omits the required linked issue and leaves required visual proof incomplete. Add a valid Fixes #... issue reference and attach the required before/after UI proof, or mark it N/A with a reason.
Docstring Coverage ⚠️ Warning Docstring coverage is 17.65% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: account-scoped Codex launch selectors.
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.

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: 7

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (3)
src/renderer/src/components/native-chat/native-chat-session-option-enrichment.ts (1)

63-71: 🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

Scope persisted Codex model defaults by account.

The cache now has separate Codex catalogs per PTY. Lines 63-71 accept a persisted model if any PTY supports it. Lines 225-236 can retire that same global model from one PTY result. Accounts with different model access can therefore retain an unsupported model or erase a valid model based on probe order.

  • src/renderer/src/components/native-chat/native-chat-session-option-enrichment.ts#L63-L71: Validate persisted Codex models against the selected account or PTY scope.
  • src/renderer/src/components/native-chat/use-native-chat-session-options.ts#L225-L236: Do not retire an agent-global persisted model from one account-scoped catalog. Persist defaults by account scope, or keep scoped discovery from mutating global defaults.
src/renderer/src/runtime/runtime-git-client.ts (1)

697-713: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Reject a PTY from a different runtime environment.

Line 713 forwards remotePty.handle without checking remotePty.environmentId against the active target.environmentId. If the active environment changes, a stale PTY ID such as remote:env-a@@pty-1 can scope discovery in env-b. This can resolve models from the wrong account context.

Only forward the handle when the selector is absent or matches the active environment. Add a mismatched-environment test.

Proposed fix
   if (target.kind === 'local' || !context.worktreeId) {
     return window.api.git.discoverCommitMessageModels({
       agentId,
       worktreePath: resolveLocalWorktreePath(context),
       connectionId: context.connectionId,
       ...(!remotePty && ptyId ? { ptyId } : {})
     }) as Promise<RuntimeDiscoverCommitMessageModelsResult>
   }
+  const ptyIdForTarget =
+    remotePty?.environmentId && remotePty.environmentId !== target.environmentId
+      ? undefined
+      : remotePty?.handle ?? ptyId
   return callRuntimeRpc<RuntimeDiscoverCommitMessageModelsResult>(
     target,
     'git.discoverCommitMessageModels',
     {
       worktree: toRuntimeWorktreeSelector(context.worktreeId),
       agentId,
-      ...(ptyId ? { ptyId: remotePty?.handle ?? ptyId } : {}),
+      ...(ptyIdForTarget ? { ptyId: ptyIdForTarget } : {}),

The supplied parseRemoteRuntimePtyId context defines the environment selector and handle.

src/main/runtime/orca-runtime.ts (1)

26006-26024: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Preserve providerAccountRef through renderer-backed terminal creation.

When createAgentSession uses the focused renderer-IPC path, providerAccountRef is omitted from the payload type, event handler, and queueTabStartupCommand call. The selected Codex account is therefore lost before PTY creation. Add and forward the field through each layer.

🧹 Nitpick comments (5)
src/cli/specs/core.ts (1)

237-240: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

List the allowed flags as explicit string literals.

Every other spec in this file lists flags as quoted literals. The .split(' ') form hides the flag names from a plain text search for 'account-runtime' or 'wsl-distro', and it widens the array element type to string.

♻️ Proposed refactor
-    allowedFlags: [
-      ...GLOBAL_FLAGS,
-      ...'worktree command title agent account account-runtime wsl-distro focus'.split(' ')
-    ],
+    allowedFlags: [
+      ...GLOBAL_FLAGS,
+      'worktree',
+      'command',
+      'title',
+      'agent',
+      'account',
+      'account-runtime',
+      'wsl-distro',
+      'focus'
+    ],
src/renderer/src/components/tab-bar/CodexLaunchAccountMenu.tsx (1)

152-185: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Hoist the repeated Current default item.

The loading branch and the error branch render the same DropdownMenuItem with the same translate key. Extract it into one local element and reuse it in both branches.

src/renderer/src/components/tab-bar/CodexLaunchAccountMenu.test.tsx (1)

213-216: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Assert the capability with the exported constant.

This test hardcodes 'agent-session.account-ref.v1'. The component passes AGENT_SESSION_ACCOUNT_REF_RUNTIME_CAPABILITY from src/shared/protocol-version. src/cli/handlers/terminal.test.ts imports that constant for the same assertion. Import it here as well so a value change fails in one obvious place.

src/main/codex-accounts/runtime-home-service.ts (1)

346-417: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Consider one error vocabulary for account resolution.

prepareForCodexAccountLaunch throws stable codes such as agent_session_account_unavailable. This method throws prose messages such as Codex pane account is no longer available. Callers that map failures to capability error codes must then match on message text. Emit the same code vocabulary here, and keep the prose as detail.

src/main/codex-accounts/runtime-home-service.test.ts (1)

409-437: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add cases for provider mismatch and durable credential absence.

This suite covers removed accounts and wrong-lane refs. Two fail-closed branches of prepareForCodexAccountLaunch remain untested: a non-Codex provider, which throws agent_session_account_agent_mismatch, and options.unavailableManagedHomePath matching a trusted home whose auth.json absence is durable, which throws agent_session_account_unavailable. Both branches decide whether a launch proceeds with the wrong credentials.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 88b507dc-1081-4e6d-91ff-b66578d689d6

📥 Commits

Reviewing files that changed from the base of the PR and between 9a81874 and 52731f631f53ae4ab9e916a7e2316d70ef66021e.

📒 Files selected for processing (64)
  • src/cli/handlers/account.test.ts
  • src/cli/handlers/account.ts
  • src/cli/handlers/terminal.test.ts
  • src/cli/handlers/terminal.ts
  • src/cli/help.ts
  • src/cli/specs/core.ts
  • src/main/codex-accounts/runtime-home-service.test.ts
  • src/main/codex-accounts/runtime-home-service.ts
  • src/main/index.ts
  • src/main/ipc/filesystem.test.ts
  • src/main/ipc/filesystem.ts
  • src/main/ipc/pty.test.ts
  • src/main/ipc/pty.ts
  • src/main/runtime/orca-runtime-agent-session-operation.test.ts
  • src/main/runtime/orca-runtime-git.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/runtime/rpc/methods/agent-session.test.ts
  • src/main/runtime/rpc/methods/agent-session.ts
  • src/main/runtime/rpc/methods/git-params.ts
  • src/main/runtime/rpc/methods/git.test.ts
  • src/main/runtime/rpc/methods/git.ts
  • src/main/text-generation/commit-message-agent-environment.test.ts
  • src/main/text-generation/commit-message-agent-environment.ts
  • src/preload/api-types.ts
  • src/preload/index.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-discovery.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-enrichment.test.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-enrichment.ts
  • src/renderer/src/components/native-chat/use-native-chat-session-options.ts
  • src/renderer/src/components/tab-bar/CodexLaunchAccountMenu.test.tsx
  • src/renderer/src/components/tab-bar/CodexLaunchAccountMenu.tsx
  • src/renderer/src/components/tab-bar/QuickLaunchButton.test.ts
  • src/renderer/src/components/tab-bar/QuickLaunchButton.tsx
  • src/renderer/src/components/tab-bar/codex-launch-account-options.test.ts
  • src/renderer/src/components/tab-bar/codex-launch-account-options.ts
  • src/renderer/src/components/terminal-pane/pty-connection-types.ts
  • src/renderer/src/components/terminal-pane/pty-connection.ts
  • src/renderer/src/components/terminal-pane/pty-transport-types.ts
  • src/renderer/src/components/terminal-pane/pty-transport.test.ts
  • src/renderer/src/components/terminal-pane/pty-transport.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.test.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/launch-agent-in-new-tab.test.ts
  • src/renderer/src/lib/launch-agent-in-new-tab.ts
  • src/renderer/src/lib/launch-agent-web-host-tab.ts
  • src/renderer/src/lib/runtime-agent-background-create.ts
  • src/renderer/src/runtime/remote-agent-session-launch.test.ts
  • src/renderer/src/runtime/remote-agent-session-launch.ts
  • src/renderer/src/runtime/runtime-git-client.test.ts
  • src/renderer/src/runtime/runtime-git-client.ts
  • src/renderer/src/runtime/web-runtime-session.ts
  • src/renderer/src/store/slices/terminals.ts
  • src/shared/agent-session-host-authority.ts
  • src/shared/agent-session-option-catalog-claude-codex.ts
  • src/shared/agent-session-option-catalog.test.ts
  • src/shared/agent-session-option-catalog.ts
  • src/shared/codex-model-list-probe.test.ts
  • src/shared/codex-model-list-probe.ts
  • src/shared/commit-message-agent-spec.ts
  • src/shared/protocol-version.ts
  • src/shared/provider-account-ref.test.ts
  • src/shared/provider-account-ref.ts
  • src/shared/types.ts

Comment thread src/cli/specs/core.ts Resolved
Comment thread src/main/index.ts Resolved
Comment thread src/main/index.ts Resolved
Comment thread src/main/runtime/orca-runtime.ts Resolved
@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@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.

🧹 Nitpick comments (1)
src/cli/handlers/account.ts (1)

41-41: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add coverage for both workspace-label fallback cases.

The current visible test covers only a non-empty workspaceLabel. Add cases for null and whitespace-only labels. Assert that both cases fall back to email and still include the account ID.

Also applies to: 60-61


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: cb4926f4-5096-48cb-b108-ebc1877115ba

📥 Commits

Reviewing files that changed from the base of the PR and between 400321e and 8b4e37487717388a30522e79d4315158c7b2f436.

📒 Files selected for processing (64)
  • src/cli/handlers/account.test.ts
  • src/cli/handlers/account.ts
  • src/cli/handlers/terminal.test.ts
  • src/cli/handlers/terminal.ts
  • src/cli/help.ts
  • src/cli/specs/core.ts
  • src/main/codex-accounts/runtime-home-service.test.ts
  • src/main/codex-accounts/runtime-home-service.ts
  • src/main/index.ts
  • src/main/ipc/filesystem.test.ts
  • src/main/ipc/filesystem.ts
  • src/main/ipc/pty.test.ts
  • src/main/ipc/pty.ts
  • src/main/runtime/orca-runtime-agent-session-operation.test.ts
  • src/main/runtime/orca-runtime-git.ts
  • src/main/runtime/orca-runtime.ts
  • src/main/runtime/rpc/methods/agent-session.test.ts
  • src/main/runtime/rpc/methods/agent-session.ts
  • src/main/runtime/rpc/methods/git-params.ts
  • src/main/runtime/rpc/methods/git.test.ts
  • src/main/runtime/rpc/methods/git.ts
  • src/main/text-generation/commit-message-agent-environment.test.ts
  • src/main/text-generation/commit-message-agent-environment.ts
  • src/preload/api-types.ts
  • src/preload/index.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-discovery.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-enrichment.test.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-enrichment.ts
  • src/renderer/src/components/native-chat/use-native-chat-session-options.ts
  • src/renderer/src/components/tab-bar/CodexLaunchAccountMenu.test.tsx
  • src/renderer/src/components/tab-bar/CodexLaunchAccountMenu.tsx
  • src/renderer/src/components/tab-bar/QuickLaunchButton.test.ts
  • src/renderer/src/components/tab-bar/QuickLaunchButton.tsx
  • src/renderer/src/components/tab-bar/codex-launch-account-options.test.ts
  • src/renderer/src/components/tab-bar/codex-launch-account-options.ts
  • src/renderer/src/components/terminal-pane/pty-connection-types.ts
  • src/renderer/src/components/terminal-pane/pty-connection.ts
  • src/renderer/src/components/terminal-pane/pty-transport-types.ts
  • src/renderer/src/components/terminal-pane/pty-transport.test.ts
  • src/renderer/src/components/terminal-pane/pty-transport.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.test.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/launch-agent-in-new-tab.test.ts
  • src/renderer/src/lib/launch-agent-in-new-tab.ts
  • src/renderer/src/lib/launch-agent-web-host-tab.ts
  • src/renderer/src/lib/runtime-agent-background-create.ts
  • src/renderer/src/runtime/remote-agent-session-launch.test.ts
  • src/renderer/src/runtime/remote-agent-session-launch.ts
  • src/renderer/src/runtime/runtime-git-client.test.ts
  • src/renderer/src/runtime/runtime-git-client.ts
  • src/renderer/src/runtime/web-runtime-session.ts
  • src/renderer/src/store/slices/terminals.ts
  • src/shared/agent-session-host-authority.ts
  • src/shared/agent-session-option-catalog-claude-codex.ts
  • src/shared/agent-session-option-catalog.test.ts
  • src/shared/agent-session-option-catalog.ts
  • src/shared/codex-model-list-probe.test.ts
  • src/shared/codex-model-list-probe.ts
  • src/shared/commit-message-agent-spec.ts
  • src/shared/protocol-version.ts
  • src/shared/provider-account-ref.test.ts
  • src/shared/provider-account-ref.ts
  • src/shared/types.ts
🚧 Files skipped from review as they are similar to previous changes (63)
  • src/renderer/src/components/tab-bar/codex-launch-account-options.test.ts
  • src/main/runtime/rpc/methods/agent-session.test.ts
  • src/shared/codex-model-list-probe.test.ts
  • src/cli/handlers/account.test.ts
  • src/renderer/src/components/terminal-pane/pty-transport-types.ts
  • src/main/runtime/rpc/methods/git.test.ts
  • src/main/ipc/filesystem.test.ts
  • src/main/ipc/filesystem.ts
  • src/shared/provider-account-ref.test.ts
  • src/main/runtime/rpc/methods/git.ts
  • src/main/text-generation/commit-message-agent-environment.test.ts
  • src/renderer/src/components/terminal-pane/pty-transport.test.ts
  • src/renderer/src/lib/launch-agent-in-new-tab.test.ts
  • src/main/runtime/orca-runtime-agent-session-operation.test.ts
  • src/renderer/src/runtime/remote-agent-session-launch.test.ts
  • src/renderer/src/lib/launch-agent-in-new-tab.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/runtime-agent-background-create.ts
  • src/cli/handlers/terminal.test.ts
  • src/preload/api-types.ts
  • src/main/runtime/orca-runtime-git.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.test.ts
  • src/shared/provider-account-ref.ts
  • src/main/runtime/rpc/methods/git-params.ts
  • src/shared/agent-session-host-authority.ts
  • src/renderer/src/runtime/runtime-git-client.test.ts
  • src/renderer/src/runtime/runtime-git-client.ts
  • src/renderer/src/components/tab-bar/QuickLaunchButton.tsx
  • src/renderer/src/components/terminal-pane/pty-connection-types.ts
  • src/cli/help.ts
  • src/preload/index.ts
  • src/renderer/src/components/terminal-pane/pty-transport.ts
  • src/renderer/src/components/native-chat/use-native-chat-session-options.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-enrichment.test.ts
  • src/cli/handlers/terminal.ts
  • src/shared/types.ts
  • src/shared/agent-session-option-catalog.test.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.ts
  • src/renderer/src/store/slices/terminals.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-discovery.ts
  • src/shared/agent-session-option-catalog.ts
  • src/main/index.ts
  • src/renderer/src/components/tab-bar/codex-launch-account-options.ts
  • src/shared/agent-session-option-catalog-claude-codex.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-enrichment.ts
  • src/renderer/src/components/tab-bar/QuickLaunchButton.test.ts
  • src/shared/protocol-version.ts
  • src/shared/codex-model-list-probe.ts
  • src/main/ipc/pty.test.ts
  • src/main/runtime/rpc/methods/agent-session.ts
  • src/renderer/src/runtime/web-runtime-session.ts
  • src/renderer/src/components/tab-bar/CodexLaunchAccountMenu.test.tsx
  • src/main/text-generation/commit-message-agent-environment.ts
  • src/renderer/src/components/terminal-pane/pty-connection.ts
  • src/main/codex-accounts/runtime-home-service.test.ts
  • src/renderer/src/runtime/remote-agent-session-launch.ts
  • src/renderer/src/lib/launch-agent-web-host-tab.ts
  • src/main/codex-accounts/runtime-home-service.ts
  • src/shared/commit-message-agent-spec.ts
  • src/cli/specs/core.ts
  • src/main/ipc/pty.ts
  • src/renderer/src/components/tab-bar/CodexLaunchAccountMenu.tsx
  • src/main/runtime/orca-runtime.ts

@rp0927
rp0927 force-pushed the feat/codex-account-selector branch 2 times, most recently from 597aad0 to cbbbfb1 Compare August 14, 2026 03:49

@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: Pro Plus

Run ID: 7067e911-411c-4686-88ab-153cb0d8e5fb

📥 Commits

Reviewing files that changed from the base of the PR and between 8b4e37487717388a30522e79d4315158c7b2f436 and 597aad03697686d0d6e433cc2ddab23744723120.

📒 Files selected for processing (3)
  • src/main/runtime/orca-runtime.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/worktree-launch-types.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/renderer/src/i18n/locales/en.json
  • src/main/runtime/orca-runtime.ts

Comment thread src/shared/worktree/launch-types.ts Resolved
@rp0927
rp0927 force-pushed the feat/codex-account-selector branch 2 times, most recently from d79f37a to adf2f2c Compare August 14, 2026 10:56
@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@rp0927
rp0927 force-pushed the feat/codex-account-selector branch 5 times, most recently from ff7770d to e4ad209 Compare August 15, 2026 13:23
@rp0927

rp0927 commented Aug 15, 2026

Copy link
Copy Markdown
Author

Restacked onto current origin/main (c0a775454); force-pushed with --force-with-lease. New head: e4ad20978.

The stack was also restructured so each PR is green on its own head — previously every follow-up fix landed on the tip (#13276), which meant ancestor heads failed typecheck/oxlint standalone and reviewers (including CodeRabbit) were reading a snapshot without the fixes. Details in #13276 (comment).

This head was verified standalone: typecheck:node, typecheck:web, typecheck:cli, oxlint all pass.

Added here: e4ad20978 imports the launch types from their own modules — main dropped the shared/types barrel, leaving src/cli/handlers/terminal.ts and codex-launch-account-options.ts unresolved.

rp0927 and others added 5 commits August 16, 2026 07:51
launch-agent-in-new-tab.test.ts grew past the 800-line budget once the
account-scoped cases landed; move those cases to their own file.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01KvdKNvkWoiVSxqbw7DKmgm
main dropped the shared/types barrel, so the CLI terminal handler and the
launch account options resolved neither import.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01KvdKNvkWoiVSxqbw7DKmgm
@rp0927
rp0927 force-pushed the feat/codex-account-selector branch from e4ad209 to 4a8301b Compare August 15, 2026 22:58
@rp0927

rp0927 commented Aug 15, 2026

Copy link
Copy Markdown
Author

Restacked onto origin/main (d2ffe1f36); new head 4a8301b3b.

src/cli/handlers/terminal.test.ts conflicted with #14608, which appended its own describe('terminal send CLI') block where this PR appends describe('terminal create account selection'). Both blocks are kept in full — main's suite is unchanged and this PR's account-selection cases follow it. The file has 3 top-level describes and all 11 tests pass.

Head re-verified standalone: typecheck:node/web/cli, oxlint, oxfmt --check all clean.

@nwparker nwparker removed the P2 label Aug 19, 2026
@rp0927 rp0927 closed this Sep 13, 2026
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.

4 participants