Skip to content

AI fix actions use the + menu's agent picker and remember chat or terminal - #31310

Merged
brennanb2025 merged 122 commits into
mainfrom
brennanb2025/source-control-agent-surface
Oct 27, 2026
Merged

brennanb2025 merged 122 commits into
mainfrom
brennanb2025/source-control-agent-surface

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What was wrong

When a commit or push fails, or checks break, Orca offers to start an AI agent to fix it. Those AI actions (in the Source Control panel, the Checks panel and on pull request pages) had their own plain list of agents. That list worked differently from the agent menu behind the + button on the tab bar:

  • You couldn't choose to open an agent in a terminal (its command-line version) instead of a chat. With chats turned on, every action opened as a chat.
  • The action remembered which agent you picked, but not whether you wanted a chat or a terminal.
  • "Customize launch…" could start a saved action while it was still opening, before you had a chance to edit anything.

What changes

  1. Same agent menu as the + button. The AI action dialog now lists agents exactly the way the + menu does. Hover a chat agent and a small terminal button appears; click it to open that agent in a terminal instead, shown as "Claude (CLI)".
  2. Terminal-only settings show only for terminals. When you pick the terminal version, an arguments box appears for extra command-line options. With a chat pick, it stays hidden, because chats don't use it.
  3. Actions remember chat or terminal. Save an action as "Claude (CLI)" and its main button opens Claude in a terminal from then on, with no dialog in between. Actions you never saved keep following your normal settings, exactly as today.
  4. "Customize launch…" never starts anything by itself. It only opens the editor. The agent starts when you click Start.
  5. Settings match. Each action's card in Settings → Git & Source Control uses the same agent menu and remembers chat or terminal the same way.
  6. Agent list follows the computer running the work. When you work on another computer over a remote connection, the menu shows that computer's agents and default, so what you pick is what actually starts.

Nothing changes for people who never open these menus: their actions behave as before.

Screenshots

The agent menu in the AI action dialog. Before: a plain list. After: the same rows as the + menu, with a terminal button on the hovered row (Claude).

Before After
Before: plain agent list After: + menu rows, terminal button on Claude

Picking the terminal version. "Claude (CLI)" is selected, and the arguments box for extra command-line options appears below it.

After: Claude (CLI) selected with its arguments box

Settings → Git & Source Control, "Commit failure fixes" card. Before: one agent list and no arguments box. After: the same agent menu, saved as "Claude (CLI)", with its arguments box.

Before After
Before: Settings card After: Settings card with Claude (CLI) and arguments

More screenshots, including "Customize launch…" opening without starting anything and a saved terminal action opening Claude directly, are in the review status comment.

How it was checked

  • Tested in the running app on a Mac with real Claude and Codex, in both chat and terminal:
    • starting from the dialog;
    • a saved action's main button;
    • Resolve with AI on a real merge conflict;
    • Fix checks from the Checks panel and from a pull request page;
    • upgrading from the previous version with saved actions already in place.
  • Phone launches, folders that aren't git projects, and cancelling mid-start are covered by automated tests.
  • All CI checks pass.

Known limits (not caused by this PR, tracked separately)

  • Phone: when an action's saved command-line options conflict with its saved model, the phone keeps its current behavior and starts the saved model (STA-11502).
  • Codex: on Codex's first-ever run, its one-time setup screen can swallow the action's prompt (STA-11545).
  • Large prompts in terminals: a very large prompt can arrive in a terminal before the agent is ready for it (STA-11600).
  • Fix checks and setup scripts: Fix checks can't create a new workspace when the project's setup script is set to "Ask"; this fails on main too (STA-11616).

This PR covers STA-11429. Wider clean-up of how tabs open is tracked in #29095.

Files Added Deleted Net
Test 19 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1844 $\color{#cf222e}{\Huge{\mathbf{−}}}$​512 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1332
Prod 68 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1950 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1371 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​579

A "start an agent" action's model lived only in free-text CLI arguments, which a native chat
never reads, so AI Fix opened a chat on the default model. Each action now saves a structured
model and effort that both routes apply: chat create options, or the agent's own flags in a
terminal (winning over the same flag in CLI arguments). Desktop, dialog, fix-checks and mobile
launches carry it; Settings rows get Model/Effort selects and the CLI arguments field says it is
terminal-only.

Tracked in STA-11102.
…t-ui-launch-ignores-model-argument

# Conflicts:
#	src/renderer/src/lib/structured-agent-session-launch-callers.ts
An action's saved chat choice may now carry a permission mode, with or without a model;
"Same as new chats" saves nothing. A model is replaced only when the action names one,
so a permission-only choice keeps the chat's remembered model and options.
…t-ui-launch-ignores-model-argument

# Conflicts:
#	src/main/runtime/rpc/methods/agent-launch-surfaces.ts
#	src/main/runtime/rpc/methods/structured-agent-session-create-message.test.ts
…p action options readable

- An action's saved permission mode is sent only to hosts that advertise
  agentSession.create.options-mode.v1. Older hosts get no mode, in create
  options or a later setOption, so the chat starts on that host's new-chat
  default, as a phone launch to such a host already does. Hosts from
  1.4.225 to 1.4.227 refused a mode their tables lacked (OpenCode, Grok,
  OMP), leaving the action unable to start.
- Settings action rows give Model and Permissions full rows in the options
  column so saved values are readable; the loading placeholder reserves the
  same rows.
- Remove two unused locale keys; fix two stale comments.
- Tests: the older-host create carries no permission mode; a permission
  mode picked alone keeps the remembered model on an acquired create.
…othing saved

Terminal and permissions-only rows no longer shrink when loading ends; a chat
agent with a model list may grow by its Model row once known.
…CLI per agent, like the "+" menu

The Create worktree, Create folder and session-continuation agent pickers now
list the same rows as the tab bar "+" menu: chat agents first, each with a
terminal button that picks the agent's CLI instead, then the agents that only
run in a terminal, labelled "(CLI)". A terminal pick shows as "Claude (CLI)"
and starts the agent in a terminal even when chats are the default.
A continuation into a subfolder shows chat as unavailable there.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 8, 2026
…tream's saved-start path

Upstream stablyai#31310 replaced the dialog's agent checks with the + menu's agent choice and moved
saved-recipe starts to use-saved-source-control-action-start.ts. use-ai.ts's resolve-conflicts
editor now carries the folder workspace and the repo's start directory, and the dialog test is
rewritten for the new hooks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 8, 2026
…the conflict dialog's repo cwd

The WSL wake test now types its request (anti-slop rejects a bare object parameter) and checks
that a save nudge stays gated. A conflict start without a saved agent opens the dialog with
use-ai's editor, which upstream stablyai#31310 spreads over the panel's worktreeId and initialCwd props;
pin that it carries the folder workspace and the repo directory. Two git-owner tests that guard
seams join the seam list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 8, 2026
…tream's saved-start path

Upstream stablyai#31310 replaced the dialog's agent checks with the + menu's agent choice and moved
saved-recipe starts to use-saved-source-control-action-start.ts. use-ai.ts's resolve-conflicts
editor now carries the folder workspace and the repo's start directory, and the dialog test is
rewritten for the new hooks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 8, 2026
…the conflict dialog's repo cwd

The WSL wake test now types its request (anti-slop rejects a bare object parameter) and checks
that a save nudge stays gated. A conflict start without a saved agent opens the dialog with
use-ai's editor, which upstream stablyai#31310 spreads over the panel's worktreeId and initialCwd props;
pin that it carries the folder workspace and the repo directory. Two git-owner tests that guard
seams join the seam list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 10, 2026
…tream's saved-start path

Upstream stablyai#31310 replaced the dialog's agent checks with the + menu's agent choice and moved
saved-recipe starts to use-saved-source-control-action-start.ts. use-ai.ts's resolve-conflicts
editor now carries the folder workspace and the repo's start directory, and the dialog test is
rewritten for the new hooks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 10, 2026
…the conflict dialog's repo cwd

The WSL wake test now types its request (anti-slop rejects a bare object parameter) and checks
that a save nudge stays gated. A conflict start without a saved agent opens the dialog with
use-ai's editor, which upstream stablyai#31310 spreads over the panel's worktreeId and initialCwd props;
pin that it carries the folder workspace and the repo directory. Two git-owner tests that guard
seams join the seam list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 10, 2026
…tream's saved-start path

Upstream stablyai#31310 replaced the dialog's agent checks with the + menu's agent choice and moved
saved-recipe starts to use-saved-source-control-action-start.ts. use-ai.ts's resolve-conflicts
editor now carries the folder workspace and the repo's start directory, and the dialog test is
rewritten for the new hooks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 10, 2026
…the conflict dialog's repo cwd

The WSL wake test now types its request (anti-slop rejects a bare object parameter) and checks
that a save nudge stays gated. A conflict start without a saved agent opens the dialog with
use-ai's editor, which upstream stablyai#31310 spreads over the panel's worktreeId and initialCwd props;
pin that it carries the folder workspace and the repo directory. Two git-owner tests that guard
seams join the seam list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 12, 2026
…tream's saved-start path

Upstream stablyai#31310 replaced the dialog's agent checks with the + menu's agent choice and moved
saved-recipe starts to use-saved-source-control-action-start.ts. use-ai.ts's resolve-conflicts
editor now carries the folder workspace and the repo's start directory, and the dialog test is
rewritten for the new hooks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 12, 2026
…the conflict dialog's repo cwd

The WSL wake test now types its request (anti-slop rejects a bare object parameter) and checks
that a save nudge stays gated. A conflict start without a saved agent opens the dialog with
use-ai's editor, which upstream stablyai#31310 spreads over the panel's worktreeId and initialCwd props;
pin that it carries the folder workspace and the repo directory. Two git-owner tests that guard
seams join the seam list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 13, 2026
…tream's saved-start path

Upstream stablyai#31310 replaced the dialog's agent checks with the + menu's agent choice and moved
saved-recipe starts to use-saved-source-control-action-start.ts. use-ai.ts's resolve-conflicts
editor now carries the folder workspace and the repo's start directory, and the dialog test is
rewritten for the new hooks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 13, 2026
…the conflict dialog's repo cwd

The WSL wake test now types its request (anti-slop rejects a bare object parameter) and checks
that a save nudge stays gated. A conflict start without a saved agent opens the dialog with
use-ai's editor, which upstream stablyai#31310 spreads over the panel's worktreeId and initialCwd props;
pin that it carries the folder workspace and the repo directory. Two git-owner tests that guard
seams join the seam list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 14, 2026
…tream's saved-start path

Upstream stablyai#31310 replaced the dialog's agent checks with the + menu's agent choice and moved
saved-recipe starts to use-saved-source-control-action-start.ts. use-ai.ts's resolve-conflicts
editor now carries the folder workspace and the repo's start directory, and the dialog test is
rewritten for the new hooks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 14, 2026
…the conflict dialog's repo cwd

The WSL wake test now types its request (anti-slop rejects a bare object parameter) and checks
that a save nudge stays gated. A conflict start without a saved agent opens the dialog with
use-ai's editor, which upstream stablyai#31310 spreads over the panel's worktreeId and initialCwd props;
pin that it carries the folder workspace and the repo directory. Two git-owner tests that guard
seams join the seam list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 16, 2026
…tream's saved-start path

Upstream stablyai#31310 replaced the dialog's agent checks with the + menu's agent choice and moved
saved-recipe starts to use-saved-source-control-action-start.ts. use-ai.ts's resolve-conflicts
editor now carries the folder workspace and the repo's start directory, and the dialog test is
rewritten for the new hooks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 16, 2026
…the conflict dialog's repo cwd

The WSL wake test now types its request (anti-slop rejects a bare object parameter) and checks
that a save nudge stays gated. A conflict start without a saved agent opens the dialog with
use-ai's editor, which upstream stablyai#31310 spreads over the panel's worktreeId and initialCwd props;
pin that it carries the folder workspace and the repo directory. Two git-owner tests that guard
seams join the seam list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
…tream's saved-start path

Upstream stablyai#31310 replaced the dialog's agent checks with the + menu's agent choice and moved
saved-recipe starts to use-saved-source-control-action-start.ts. use-ai.ts's resolve-conflicts
editor now carries the folder workspace and the repo's start directory, and the dialog test is
rewritten for the new hooks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
…the conflict dialog's repo cwd

The WSL wake test now types its request (anti-slop rejects a bare object parameter) and checks
that a save nudge stays gated. A conflict start without a saved agent opens the dialog with
use-ai's editor, which upstream stablyai#31310 spreads over the panel's worktreeId and initialCwd props;
pin that it carries the folder workspace and the repo directory. Two git-owner tests that guard
seams join the seam list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
…tream's saved-start path

Upstream stablyai#31310 replaced the dialog's agent checks with the + menu's agent choice and moved
saved-recipe starts to use-saved-source-control-action-start.ts. use-ai.ts's resolve-conflicts
editor now carries the folder workspace and the repo's start directory, and the dialog test is
rewritten for the new hooks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
…the conflict dialog's repo cwd

The WSL wake test now types its request (anti-slop rejects a bare object parameter) and checks
that a save nudge stays gated. A conflict start without a saved agent opens the dialog with
use-ai's editor, which upstream stablyai#31310 spreads over the panel's worktreeId and initialCwd props;
pin that it carries the folder workspace and the repo directory. Two git-owner tests that guard
seams join the seam list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 19, 2026
…tream's saved-start path

Upstream stablyai#31310 replaced the dialog's agent checks with the + menu's agent choice and moved
saved-recipe starts to use-saved-source-control-action-start.ts. use-ai.ts's resolve-conflicts
editor now carries the folder workspace and the repo's start directory, and the dialog test is
rewritten for the new hooks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 19, 2026
…the conflict dialog's repo cwd

The WSL wake test now types its request (anti-slop rejects a bare object parameter) and checks
that a save nudge stays gated. A conflict start without a saved agent opens the dialog with
use-ai's editor, which upstream stablyai#31310 spreads over the panel's worktreeId and initialCwd props;
pin that it carries the folder workspace and the repo directory. Two git-owner tests that guard
seams join the seam list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…tream's saved-start path

Upstream stablyai#31310 replaced the dialog's agent checks with the + menu's agent choice and moved
saved-recipe starts to use-saved-source-control-action-start.ts. use-ai.ts's resolve-conflicts
editor now carries the folder workspace and the repo's start directory, and the dialog test is
rewritten for the new hooks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…the conflict dialog's repo cwd

The WSL wake test now types its request (anti-slop rejects a bare object parameter) and checks
that a save nudge stays gated. A conflict start without a saved agent opens the dialog with
use-ai's editor, which upstream stablyai#31310 spreads over the panel's worktreeId and initialCwd props;
pin that it carries the folder workspace and the repo directory. Two git-owner tests that guard
seams join the seam list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…tream's saved-start path

Upstream stablyai#31310 replaced the dialog's agent checks with the + menu's agent choice and moved
saved-recipe starts to use-saved-source-control-action-start.ts. use-ai.ts's resolve-conflicts
editor now carries the folder workspace and the repo's start directory, and the dialog test is
rewritten for the new hooks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…the conflict dialog's repo cwd

The WSL wake test now types its request (anti-slop rejects a bare object parameter) and checks
that a save nudge stays gated. A conflict start without a saved agent opens the dialog with
use-ai's editor, which upstream stablyai#31310 spreads over the panel's worktreeId and initialCwd props;
pin that it carries the folder workspace and the repo directory. Two git-owner tests that guard
seams join the seam list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…tream's saved-start path

Upstream stablyai#31310 replaced the dialog's agent checks with the + menu's agent choice and moved
saved-recipe starts to use-saved-source-control-action-start.ts. use-ai.ts's resolve-conflicts
editor now carries the folder workspace and the repo's start directory, and the dialog test is
rewritten for the new hooks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…the conflict dialog's repo cwd

The WSL wake test now types its request (anti-slop rejects a bare object parameter) and checks
that a save nudge stays gated. A conflict start without a saved agent opens the dialog with
use-ai's editor, which upstream stablyai#31310 spreads over the panel's worktreeId and initialCwd props;
pin that it carries the folder workspace and the repo directory. Two git-owner tests that guard
seams join the seam list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 21, 2026
…tream's saved-start path

Upstream stablyai#31310 replaced the dialog's agent checks with the + menu's agent choice and moved
saved-recipe starts to use-saved-source-control-action-start.ts. use-ai.ts's resolve-conflicts
editor now carries the folder workspace and the repo's start directory, and the dialog test is
rewritten for the new hooks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 21, 2026
…the conflict dialog's repo cwd

The WSL wake test now types its request (anti-slop rejects a bare object parameter) and checks
that a save nudge stays gated. A conflict start without a saved agent opens the dialog with
use-ai's editor, which upstream stablyai#31310 spreads over the panel's worktreeId and initialCwd props;
pin that it carries the folder workspace and the repo directory. Two git-owner tests that guard
seams join the seam list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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