Skip to content

feat(codex): support account-scoped agent launches - #13271

Closed
rp0927 wants to merge 5 commits into
stablyai:mainfrom
rp0927:feat/codex-agent-account-reference
Closed

rp0927 wants to merge 5 commits into
stablyai:mainfrom
rp0927:feat/codex-agent-account-reference

Conversation

@rp0927

@rp0927 rp0927 commented Aug 8, 2026

Copy link
Copy Markdown

Summary

Agent launches can now carry an optional ProviderAccountRef that identifies the selected provider account without exposing its credential home. Codex launches resolve and validate that reference in the owning main/runtime process before applying the managed account environment.

The reference is forwarded through local PTY, background-session, web-host, and remote-runtime launch paths. Remote clients send it only when the runtime advertises the new capability; older runtimes keep the existing launch contract.

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

Screenshots

No visual layout change. This PR adds the launch contract used by the account selector in the next PR.

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 account references, runtime-home validation, local PTY launches, runtime agent sessions, RPC, remote transport, and renderer launch helpers — 877 tests passed.
  • pnpm run build:desktop — passed.
  • git diff --check — passed.
  • git merge-tree --write-tree origin/main HEAD — passed with a clean merge result.

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 traced ProviderAccountRef from renderer launch helpers through preload/IPC and runtime RPC to the main-process authority boundary. It checked capability-gated remote forwarding, launch-token fingerprinting, provider/agent matching, local-versus-WSL ownership, and fallback behavior when no account is selected.

Regression tests cover local and remote launch transport, unsupported remote runtimes, account/agent mismatch, runtime mismatch, WSL distro mismatch, and unchanged launches without an account reference.

Cross-platform review:

  • The reference records runtime kind and optional WSL distro, while path resolution remains platform-owned in main.
  • SSH downstreams reject a local account reference because the local process cannot attest the remote credential registry.
  • Older remote runtimes omit the optional field through capability negotiation.

Security Audit

  • ProviderAccountRef contains provider, opaque local account ID, runtime kind, and optional WSL distro only; it contains no token, auth file, or credential path.
  • Main/runtime validates provider-agent ownership and runtime scope before resolving a managed home.
  • Launch-token fingerprints include the account reference so a token cannot be replayed under another account selection.
  • Unknown, deleted, mismatched, and remote-owned references fail closed instead of falling back to another managed account.
  • Dependencies and credential file 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
@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: c399c5d0-7de3-4646-aecd-14a75d7db538

📥 Commits

Reviewing files that changed from the base of the PR and between 5464525 and a5052d8588f1492156bf063464163d09b616c316.

📒 Files selected for processing (52)
  • 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/git-inspection-api.ts
  • src/preload/api/pty-api.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/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/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/worktree/launch-types.ts
🚧 Files skipped from review as they are similar to previous changes (52)
  • src/renderer/src/components/terminal-pane/pty-transport.ts
  • src/shared/protocol-version.ts
  • src/renderer/src/components/terminal-pane/pty-connection.ts
  • src/main/ipc/filesystem.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.test.ts
  • src/shared/codex-model-list-probe.test.ts
  • src/main/runtime/rpc/methods/git-params.ts
  • src/main/runtime/rpc/methods/git.ts
  • src/preload/api/pty-api.ts
  • src/renderer/src/lib/launch-agent-in-new-tab.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection-types.ts
  • src/shared/agent-session-option-catalog.test.ts
  • src/renderer/src/components/terminal-pane/pty-transport.test.ts
  • src/shared/agent-session-option-catalog.ts
  • src/preload/api/git-inspection-api.ts
  • src/renderer/src/components/terminal-pane/pty-transport-types.ts
  • src/shared/worktree/launch-types.ts
  • src/main/text-generation/commit-message-agent-environment.ts
  • src/shared/codex-model-list-probe.ts
  • src/renderer/src/lib/launch-agent-web-host-tab.ts
  • src/main/runtime/rpc/methods/git.test.ts
  • src/shared/provider-account-ref.test.ts
  • src/main/text-generation/commit-message-agent-environment.test.ts
  • src/shared/provider-account-ref.ts
  • src/renderer/src/runtime/runtime-git-client.test.ts
  • src/renderer/src/runtime/remote-agent-session-launch.test.ts
  • src/renderer/src/store/slices/terminals.ts
  • src/main/runtime/orca-runtime.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.ts
  • src/renderer/src/runtime/runtime-git-client.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-enrichment.test.ts
  • src/main/runtime/rpc/methods/agent-session.test.ts
  • src/renderer/src/lib/launch-agent-in-new-tab.ts
  • src/preload/index.ts
  • src/main/runtime/rpc/methods/agent-session.ts
  • src/renderer/src/runtime/remote-agent-session-launch.ts
  • src/main/runtime/orca-runtime-agent-session-operation.test.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-discovery.ts
  • src/main/runtime/orca-runtime-git.ts
  • src/shared/agent-session-option-catalog-claude-codex.ts
  • src/main/ipc/pty.ts
  • src/renderer/src/lib/runtime-agent-background-create.ts
  • src/renderer/src/components/native-chat/use-native-chat-session-options.ts
  • src/main/ipc/pty.test.ts
  • src/main/ipc/filesystem.test.ts
  • src/shared/commit-message-agent-spec.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-enrichment.ts
  • src/renderer/src/runtime/web-runtime-session.ts
  • src/main/codex-accounts/runtime-home-service.test.ts
  • src/shared/agent-session-host-authority.ts
  • src/main/index.ts
  • src/main/codex-accounts/runtime-home-service.ts

📝 Walkthrough

Walkthrough

The change adds validated Codex provider-account references to local, WSL, runtime, web, and remote session launches. Codex home preparation and PTY model discovery now resolve account-specific routes without changing global selection. Commit-message model discovery carries PTY identifiers through local and remote paths. Native-chat enrichment is scoped by PTY and account. Codex model probing now parses bounded model-list output and creates dynamic reasoning-level options. Remote account-aware launches require negotiated host-authority capability.

🚥 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 several required template sections, including ELI5, Why, Linked Issue, AI Disclosure, Review, Checklist, and Author. Reformat the description with the template headings and add the required issue link, AI disclosure, review and checklist responses, author section, and explicit visual-proof status.
Docstring Coverage ⚠️ Warning Docstring coverage is 16.67% 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 identifies the primary change: account-scoped Codex agent launches.
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.

@AmethystLiang
AmethystLiang requested a review from OrcaWin August 13, 2026 16:51
@rp0927
rp0927 force-pushed the feat/codex-agent-account-reference branch from 03a93d7 to 4ceb692 Compare August 14, 2026 03:32

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

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/runtime/runtime-git-client.ts (1)

698-713: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Keep a remote PTY bound to its owning runtime.

When ptyId encodes env-1 but the selected target is env-2, this code sends the PTY handle to env-2. The receiving runtime can resolve a colliding handle or fall back to its default account home. Compare remotePty.environmentId with the selected target before adding ptyId. Omit the field when the environments differ. Add a mismatch 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 runtimePtyId =
+    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 } : {}),
+      ...(runtimePtyId ? { ptyId: runtimePtyId } : {}),
src/renderer/src/components/native-chat/native-chat-session-option-enrichment.ts (1)

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

Validate authoritative models in the active discovery scope.

Line 63 checks every host and PTY scope. If account A does not expose a persisted Codex model but account B does, this function keeps the model and the launch can send an unavailable --model value for account A.

Pass the active host and PTY scope into this function. Check only that scope before retaining a persisted model selection.

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

26214-26232: 🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift

Thread providerAccountRef through renderer-backed agent creation.

For a focused createAgentSession request with an attached renderer, terminal:requestTabCreate omits providerAccountRef. The renderer then queues startup data without it, so the PTY transport cannot apply the validated managed Codex account. Add the field to the shared IPC payload and queue it through to pty.spawn.

🧹 Nitpick comments (1)
src/main/runtime/orca-runtime.ts (1)

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

Extract the duplicated provider-account validation into a shared helper.

ensureAgentSession (lines 25462-25481) and createAgentSession (lines 25641-25662) run the exact same four checks against request.providerAccountRef: agent/provider must be codex, the workspace must not be SSH, the wsl/host runtime must match parseWslUncPath(workspace.path), and any wslDistro must match case-insensitively. The error codes and check order are identical.

Duplicated security-relevant validation risks silent divergence if one call site is updated later and the other is missed. Extract this into one private method, for example assertProviderAccountRefCompatibleWithWorkspace(providerAccountRef, agent, workspace), and call it from both places.

♻️ Proposed refactor
+  private assertProviderAccountRefCompatibleWithWorkspace(
+    providerAccountRef: ProviderAccountRef | undefined,
+    agent: TuiAgent,
+    workspace: TerminalWorkspaceLaunchScope
+  ): void {
+    if (!providerAccountRef) {
+      return
+    }
+    if (agent !== 'codex' || providerAccountRef.provider !== 'codex') {
+      throw new Error('agent_session_account_agent_mismatch')
+    }
+    if (workspace.connectionId) {
+      // Why: an account ref belongs to this Orca runtime, not an SSH
+      // downstream whose credential registry this process cannot attest.
+      throw new Error('agent_session_account_runtime_mismatch')
+    }
+    const wsl = parseWslUncPath(workspace.path)
+    if ((providerAccountRef.runtime === 'wsl') !== Boolean(wsl)) {
+      throw new Error('agent_session_account_runtime_mismatch')
+    }
+    if (
+      wsl &&
+      providerAccountRef.wslDistro?.trim() &&
+      providerAccountRef.wslDistro.trim().toLocaleLowerCase('en-US') !==
+        wsl.distro.toLocaleLowerCase('en-US')
+    ) {
+      throw new Error('agent_session_account_runtime_mismatch')
+    }
+  }

Then call this.assertProviderAccountRefCompatibleWithWorkspace(request.providerAccountRef, request.agent, workspace) at both sites.

Also applies to: 25641-25662


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 6eac47db-8f8c-4de5-9079-ddd19a46659e

📥 Commits

Reviewing files that changed from the base of the PR and between 400321e and 4ceb692438a6599dad6490b3634cc8aacca75e69.

📒 Files selected for processing (51)
  • 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/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/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/main/index.ts Resolved
Comment thread src/shared/protocol-version.ts Resolved
@rp0927
rp0927 force-pushed the feat/codex-agent-account-reference branch 4 times, most recently from f2e69cf to 1ad69c4 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.

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

♻️ Duplicate comments (1)
src/main/index.ts (1)

1067-1077: ⚠️ Potential issue | 🟠 Major

Restore best-effort hook preparation.

installForRuntimeHome and refreshRuntimeUserHooksForRuntimeHome can throw. This path has no try/catch, so a hook error blocks an explicit account launch. Match the error handling at Lines 1126-1151.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 98b05384-c15d-4178-af91-8322f7538b48

📥 Commits

Reviewing files that changed from the base of the PR and between cb42b60 and 1ad69c4248bbb52c6eea55026d99fcf948aad913.

📒 Files selected for processing (52)
  • 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/git-inspection-api.ts
  • src/preload/api/pty-api.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/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/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/worktree/launch-types.ts
🚧 Files skipped from review as they are similar to previous changes (48)
  • src/renderer/src/components/terminal-pane/pty-transport.test.ts
  • src/main/runtime/orca-runtime-git.ts
  • src/main/runtime/rpc/methods/agent-session.test.ts
  • src/main/ipc/filesystem.test.ts
  • src/shared/codex-model-list-probe.test.ts
  • src/shared/provider-account-ref.test.ts
  • src/renderer/src/components/terminal-pane/pty-transport.ts
  • src/main/runtime/rpc/methods/git.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection-types.ts
  • src/renderer/src/lib/launch-agent-in-new-tab.test.ts
  • src/renderer/src/runtime/runtime-git-client.test.ts
  • src/shared/codex-model-list-probe.ts
  • src/main/text-generation/commit-message-agent-environment.ts
  • src/shared/agent-session-option-catalog.test.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.ts
  • src/renderer/src/components/native-chat/use-native-chat-session-options.ts
  • src/main/text-generation/commit-message-agent-environment.test.ts
  • src/preload/index.ts
  • src/shared/provider-account-ref.ts
  • src/main/runtime/orca-runtime-agent-session-operation.test.ts
  • src/renderer/src/components/terminal-pane/pty-connection.ts
  • src/main/ipc/filesystem.ts
  • src/renderer/src/runtime/web-runtime-session.ts
  • src/renderer/src/store/slices/terminals.ts
  • src/main/ipc/pty.test.ts
  • src/main/runtime/rpc/methods/git.ts
  • src/renderer/src/components/terminal-pane/pty-transport-types.ts
  • src/shared/protocol-version.ts
  • src/main/codex-accounts/runtime-home-service.test.ts
  • src/renderer/src/runtime/runtime-git-client.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-discovery.ts
  • src/renderer/src/runtime/remote-agent-session-launch.ts
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport.test.ts
  • src/shared/commit-message-agent-spec.ts
  • src/main/runtime/rpc/methods/git-params.ts
  • src/main/runtime/rpc/methods/agent-session.ts
  • src/renderer/src/lib/launch-agent-web-host-tab.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-enrichment.test.ts
  • src/shared/agent-session-option-catalog-claude-codex.ts
  • src/shared/agent-session-option-catalog.ts
  • src/main/ipc/pty.ts
  • src/main/runtime/orca-runtime.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-enrichment.ts
  • src/shared/agent-session-host-authority.ts
  • src/renderer/src/lib/launch-agent-in-new-tab.ts
  • src/renderer/src/runtime/remote-agent-session-launch.test.ts
  • src/main/codex-accounts/runtime-home-service.ts
  • src/renderer/src/lib/runtime-agent-background-create.ts

@rp0927
rp0927 force-pushed the feat/codex-agent-account-reference branch 2 times, most recently from 2731a17 to a5052d8 Compare August 15, 2026 06:37
@coderabbitai

coderabbitai Bot commented Aug 15, 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-agent-account-reference branch 3 times, most recently from 3aa6d4f to 8142afc 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: 8142afc57.

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: 8142afc57 splits the account-scoped cases out of launch-agent-in-new-tab.test.ts, which this PR pushed to 828 lines against the 800-line budget.

rp0927 and others added 2 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
@rp0927
rp0927 force-pushed the feat/codex-agent-account-reference branch from 8142afc to d4d3e6e Compare August 15, 2026 22:58
@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