Skip to content

fix(slash-commands): prevent Copilot builtins from overriding Claude standard commands (#586)#587

Merged
Kewton merged 3 commits intodevelopfrom
feature/586-fix-slash-command-override
Mar 30, 2026
Merged

fix(slash-commands): prevent Copilot builtins from overriding Claude standard commands (#586)#587
Kewton merged 3 commits intodevelopfrom
feature/586-fix-slash-command-override

Conversation

@Kewton
Copy link
Copy Markdown
Owner

@Kewton Kewton commented Mar 30, 2026

Summary

  • getSlashCommandGroups() から getCopilotBuiltinCommands() を除外
  • API route で cliTool === 'copilot' の場合のみ Copilot ビルトインを追加
  • Claude 使用時に /clear, /model 等の標準コマンドが正常に表示されるように修正

Closes #586

Test plan

🤖 Generated with Claude Code

Kewton and others added 3 commits March 31, 2026 00:32
…standard commands

Remove getCopilotBuiltinCommands() from deduplicateByName() in
getSlashCommandGroups() to prevent Copilot-only commands (clear, model,
compact, etc.) from replacing Claude standard commands via
mergeCommandGroups() SF-1 override. Copilot builtins are now injected
only in the API route when cliTool === 'copilot'.

Fixes #586

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Kewton Kewton merged commit 606ae90 into develop Mar 30, 2026
5 checks passed
@Kewton Kewton deleted the feature/586-fix-slash-command-override branch March 30, 2026 16:10
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