From 1559cd290f3366033a6ec70ad4b5c42fdc886292 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Tue, 28 Apr 2026 12:37:50 -0700 Subject: [PATCH] fix(agents): detect Kiro under its real binary name `kiro-cli` (#1223) Co-authored-by: Orca --- src/renderer/src/lib/agent-catalog.tsx | 6 +++++- src/shared/tui-agent-config.ts | 10 +++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/lib/agent-catalog.tsx b/src/renderer/src/lib/agent-catalog.tsx index dae7b1344..041764edb 100644 --- a/src/renderer/src/lib/agent-catalog.tsx +++ b/src/renderer/src/lib/agent-catalog.tsx @@ -85,7 +85,11 @@ export const AGENT_CATALOG: AgentCatalogEntry[] = [ { id: 'kiro', label: 'Kiro', - cmd: 'kiro', + // Why: the Kiro installer (https://cli.kiro.dev/install) ships a binary + // named `kiro-cli`, not `kiro`. Match TUI_AGENT_CONFIG.kiro.detectCmd so + // the settings pane's "default command" hint aligns with what Orca + // actually looks for on PATH. + cmd: 'kiro-cli', faviconDomain: 'kiro.dev', homepageUrl: 'https://kiro.dev/docs/cli/' }, diff --git a/src/shared/tui-agent-config.ts b/src/shared/tui-agent-config.ts index 7a579cd25..a5ed20950 100644 --- a/src/shared/tui-agent-config.ts +++ b/src/shared/tui-agent-config.ts @@ -76,9 +76,13 @@ export const TUI_AGENT_CONFIG: Record = { promptInjectionMode: 'stdin-after-start' }, kiro: { - detectCmd: 'kiro', - launchCmd: 'kiro', - expectedProcess: 'kiro', + // Why: the official Kiro installer (https://cli.kiro.dev/install) places a + // binary named `kiro-cli` on PATH — there is no `kiro` binary. Keep the + // TuiAgent id as 'kiro' for stored preferences, but detect/launch/identify + // the real binary name so the agent is recognized as active. + detectCmd: 'kiro-cli', + launchCmd: 'kiro-cli', + expectedProcess: 'kiro-cli', promptInjectionMode: 'stdin-after-start' }, crush: {