Skip to content

Allow custom agent commands when automatic detection fails - #21653

Closed
nwparker wants to merge 3 commits into
nwparker/agy-skill-installfrom
nwparker/agy-manual-command
Closed

nwparker wants to merge 3 commits into
nwparker/agy-skill-installfrom
nwparker/agy-manual-command

Conversation

@nwparker

@nwparker nwparker commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 15 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​961 $\color{#cf222e}{\Huge{\mathbf{−}}}$​95 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​866
Prod 23 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​819 $\color{#cf222e}{\Huge{\mathbf{−}}}$​182 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​637

ELI5

If Orca cannot find Antigravity automatically, you can now enter its location and launch it. Previously the path editor disappeared precisely when detection failed.

What Changed

Allow command editing for undetected agents, retain saved overrides in Settings, and offer explicitly configured commands in workspace creation, New Tab search, and the New Tab menu. Reuse the existing command editor and launch pipeline; consolidate the menu's duplicate agent ordering into the existing search ordering function. Disabled agents remain excluded. Detection results are not changed or presented as proof that a custom command works. Adds a linked Antigravity setup guide covering CLI versus desktop detection, Windows path checks, custom paths, permissions, authentication, and remote execution hosts.

Why

Exposing the editor alone would still leave the launch pickers empty. Using the existing explicit-command setting avoids a second path setting, new host probes, or a separate launch implementation.

Linked Issue

Addresses manual configuration and setup documentation from #21541. Does not close the broader detection/version request. Stacked on #21650.

Visual Proof

Actual Settings page with an intentionally empty detection result in an isolated profile. This simulates PATH detection failure; the installed binary was not removed. Captured through CDP with the Electron window hidden, using the electron and visual-proof skills.

Before: no command editor on the undetected row.

Before

After: the same row accepts a custom path.

After

Actual launch through New Tab search with detection still empty: /tmp/orca-agy-custom/agy (a temporary symlink to installed agy) started in the existing non-git folder workspace. Verified the process command and rendered composer. Cropped screenshot excludes the shell's account/hostname line.

Installed agy running

The new setup guide was built and checked in a headless browser, including both navigation links.

Setup documentation

Testing

  • I manually tested these changes locally
  • Automated tests added/updated

86 focused tests pass across settings, tab launch selection, workspace composer, quick launch, and Windows command quoting. The new settings regression fails on the parent because the undetected row has no override button. Renderer typecheck and changed-code quality pass. Confirmed New Tab menu also offers the configured agent. Restored the isolated profile's command overrides and detection state after verification.

Docs: 13 package tests pass; production build passes; lint has no errors and four existing image warnings. Checked rendered text, Windows path formatting, and links with agent-browser.

AI Disclosure

Review

The command remains an explicit user setting and uses existing execution-host routing and quoting. No RPC shape, subprocess probe, polling, or authentication change. Agent permissions and launch arguments retain their existing settings.

Reliability invariant: an explicit agent choice uses its existing command and workspace owner (agent-session.provider-ownership). Oracle: actual custom-path process starts in the selected folder; disabled-agent selection and command-quoting tests remain green. Gate gap: no new cross-host launch gate is claimed. macOS local/folder launch covered; Linux, Windows, WSL, SSH, paired runtime and mobile remain unverified for this UI flow. The settings are still global launch defaults, so a configured path must exist on the execution host. A bad custom command can still fail at launch; this change does not validate it in advance.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer material copied.

Notes

Installed agy banner is 1.2.7. This probe verifies launch and composer, not authenticated generation. Version/path diagnostics, real Windows verification, and auto-detection improvements from #21541 remain open. Setup documentation is included. A fresh installed-CLI print-mode probe still returns 401 ACCESS_TOKEN_TYPE_UNSUPPORTED; no authenticated generation claimed. Full build and broad CI pending.

Checklist

  • This PR is small and focused
  • I explained the user-facing change, mechanism, and approach
  • Before/after screenshots attached
  • Self-reviewed for correctness, security, and performance
  • Cross-platform and SSH/remote impact considered
  • Full lint, typecheck, test and build gates pass (focused checks above; CI pending)

@nwparker

Copy link
Copy Markdown
Contributor Author

Independent verification (2026-09-20):

  • Focused renderer tests: AgentsPane.manual-command.test.tsx, tab-agent-launch-options.test.ts, and QuickLaunchButton.test.ts — 19/19 passed.
  • pnpm tc:web passed.
  • pnpm run check:code-quality:changed origin/main passed with 0 new findings.
  • Installed agy 1.2.7 exact sentinel returned AGY_X; this verifies the local CLI is callable, not authenticated generation.
  • PR CI is green, including typecheck, static analysis, 8 test shards, macOS/Linux package, Windows package, and docs build (runs 35436689753 and 35436689652).

Verdict: approve for the explicit custom-command path and picker behavior on the local macOS/folder-workspace scope. Keep this draft pending authenticated worker execution and rendered validation on Windows, WSL, SSH, and paired runtimes; the PR correctly makes no broader claim. No merge performed.

…21654)

Adopts native usage parsing and display from PR #20797, adding a pre-invocation version guard and legacy group labels.

Co-authored-by: Abhishek Tiwari <[email protected]>
@nwparker

nwparker commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #39178, which re-lands the intent of this PR on current main (stale branch, not rebased).

@nwparker nwparker closed this Nov 6, 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.

1 participant