Skip to content

refactor(agent): compare tool names through a single helper - #1292

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-9714-canonicalize-tool-name-comparisons-behind-a-single-helper
Oct 2, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-9714-canonicalize-tool-name-comparisons-behind-a-single-helper

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Tool-name equality now routes through a single isSameTool helper that resolves both sides via canonicalToolName, so future wire renames and per-family projections only touch the alias tables
  • All director, subagent, and TUI tracking callsites compare through the helper; no raw wire-name === remains in those paths
  • Covers aliased wire names (read/bash/todowrite/shell/update_plan/wait) in task tracking, LSP triggers, watchdogs, and transcript rows

Verification

  • bun run check passes (lint, typecheck, dead-exports, build, guarded test suite: 8028 pass / 0 fail)
  • New canonical-tool-name.test.ts plus aliased-name cases across director, poll-exempt, and watchdog tests; fail-then-pass confirmed via stash

Fixes CL-9714

Wire-name aliases previously leaked into engine-name comparisons and broke tracking; each new alias required hunting every callsite. Both sides now resolve through canonicalToolName first, so future projections only touch the alias tables.
@linear-code

linear-code Bot commented Oct 2, 2026

Copy link
Copy Markdown

CL-9714

@TheGreatAxios
TheGreatAxios merged commit f82308d into main Oct 2, 2026
13 checks passed
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