mirror of
https://github.com/stablyai/orca.git
synced 2026-09-24 16:02:41 +00:00
Substring detection mis-fired on titles like "opencode-blinker" or "claude-scratch", labeling a Codex tab as OpenCode whenever the terminal title fell back to the bare worktree directory name. - Extract token-matching regexes into `agent-name-token-match.ts` with a boundary guard that rejects path separators and hyphenated compounds - Replace all `lower.includes(name)` calls in `agent-detection.ts` with `titleHasAgentName()`; re-export `AGENT_NAMES` to keep existing importers working - Allow `.exe/.cmd/.bat/.ps1` suffixes so Windows launcher process names (e.g. `openclaude.exe`) still resolve correctly - Update tests: cwd-path fragments now return null; real agent titles that contain the name as a proper token still resolve correctly