Repository navigation
refactor(cli): drop the copilot command handler's frontmatter method nothing calls - #823
Merged
blafourcade merged 1 commit intoSep 10, 2026
Conversation
…nothing calls The copilot commands capability is built with convertCommandFrontmatter directly, so commandsHandler.convertFrontmatter was never reached: the handler serves buildFilePath alone. Copilot's commands are unchanged; the tools suite and the golden snapshots pass as they were. Fixes #822 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_011x4ms5qcGuZgYhCxfdHMUb AIDD-Session-Id: 4acc9a1c-19bc-4468-b8b6-e86644bcba60
blafourcade
deleted the
refactor/copilot-drop-unused-command-frontmatter
branch
September 11, 2026 07:42
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 What & why
commandsHandler.convertFrontmatterin the copilot profile is never called. The commands capability getsconvertCommandFrontmatterdirectly, and the handler only servesbuildFilePath. The #799 mutation pass found it, because its mutants could only survive. knip does not see unused methods on an object literal.🛠️ How it works
Six lines deleted from
cli/src/contexts/tools/domain/profiles/copilot/profile.ts. Nothing else changes.🧪 How to verify
The tools suite and the golden snapshots pass unchanged. Typecheck, lint, test:arch, knip and type honesty are clean.
CI runs the
tools-copilotmutation gate. Removing lines whose mutants could only survive can only raise that score.🔗 Linked issue
Fixes #822
✅ I certify
🤖 Generated with Claude Code
https://claude.ai/code/session_011x4ms5qcGuZgYhCxfdHMUb