Files
orca/src
Jinjing 6a1a0579cb fix: token-match agent names to prevent cwd/worktree false positives (#4727)
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
2026-06-05 16:10:28 -07:00
..