From 9868eefa73cfefc2aeac64ea3eb12391e509789d Mon Sep 17 00:00:00 2001 From: Orca Worker Date: Fri, 11 Sep 2026 23:51:44 -0700 Subject: [PATCH] perf: reuse normalized executable during agent recognition --- src/shared/agent-process-recognition.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/agent-process-recognition.ts b/src/shared/agent-process-recognition.ts index e0fa3568c68..c2755993906 100644 --- a/src/shared/agent-process-recognition.ts +++ b/src/shared/agent-process-recognition.ts @@ -289,7 +289,7 @@ export function recognizeAgentProcessFromCommandLine( const keep = options?.includeHeadlessOneShot === true const tokens = tokenizeCommandLine(commandLine) const firstNormalized = normalizeProcessName(tokens[0]) - let direct = recognizeAgentProcess(tokens[0]) + let direct = recognizedAgentForProcess(firstNormalized) // Why: the generic Orca CLI is not an agent; only this subcommand launches its TUI mode. if (direct?.agent === 'claude-agent-teams' && tokens[1]?.toLowerCase() !== 'claude-teams') { direct = null