fix(server): keep Claude builtins in the command list #11094
main fromrefs/pull/11094/head·opened View on GitHubWhat Changed#
Merge a small CLAUDE_BUILTIN_SLASH_COMMANDS fallback (context, reload-plugins, reload-skills) into the Claude provider's slashCommands snapshot before deduping.
Fixes #11039
Why#
probeClaudeCapabilities builds the completion list from initializationResult().commands, which now returns skills only. The CLI advertises its builtins on a live session's system/init.slash_commands, which T3 does not read, so /context, /reload-plugins, and /reload-skills disappeared from the / menu even though typing them still works. The fallback is intentionally limited to stable, config-independent builtins; merging the live system/init list (and commands_changed) would be the durable follow-up.
Tests: vp test run apps/server/src/provider/Layers/ProviderRegistry.test.ts apps/server/src/provider/Layers/ClaudeCapabilitiesProbe.test.ts apps/server/src/provider/Layers/ClaudeAdapter.test.ts (180 passed)
Checklist#
- This PR is small and focused
- I explained what changed and why
- I included before/after screenshots for any UI changes (n/a)
- I included a video for animation/interaction changes (n/a)
Summary by CodeRabbit#
- Bug Fixes
- Claude provider status now consistently includes built-in slash commands, even when they are omitted by the SDK.
- Custom slash commands continue to be preserved and merged without duplicates.
- Tests
- Updated coverage verifies built-in commands remain available alongside custom commands and retain their metadata.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
e6f09c9e-ad52-47b7-a2d6-d5cb8a9813e9📥 Commits
Reviewing files that changed from the base of the PR and between 5b251c6667f3642dd88467efea23d1b60ca57b6c and 34d50364c5ad6be7765f40aa710ba40535e0a851.
📒 Files selected for processing (1)
apps/server/src/provider/Layers/ClaudeProvider.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- apps/server/src/provider/Layers/ClaudeProvider.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.
📝 Walkthrough
Walkthrough#
The Claude provider now restores stable built-in slash commands to provider status results. Tests verify built-in command presence, custom command preservation, metadata retention, and deduplication.
Changes#
Claude slash-command availability
Layer / File(s) Summary Register Claude built-in commands
apps/server/src/provider/Layers/ClaudeProvider.tsDefines context,reload-plugins, andreload-skillsas built-in commands and adds them to Claude provider status results.Validate command presence and deduplication
apps/server/src/provider/Layers/ProviderRegistry.test.tsTests built-in command presence, custom command lookup, metadata retention, and deduplication. Estimated code review effort: 2 (Simple) | ~10 minutes
Severity of issue fixed: Low
Merge Risk: ⚪ Minimal · up to
34d50This restores missing Claude built-in slash commands to completion results without changing their execution behavior. The supplied tests cover the intended command visibility and deduplication behavior, so the change is mergeable.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)#
Check name Status Explanation Resolution Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold. ✅ Passed checks (4 passed)
Check name Status Explanation Title check ✅ Passed The title clearly and concisely describes the main fix: preserving Claude built-in slash commands in the command list. Description check ✅ Passed The description explains what changed, why the fix is needed, test coverage, and checklist status. The UI sections are explicitly marked not applicable. Linked Issues check ✅ Passed The changes address issue #11039by restoring /context, /reload-plugins, and /reload-skills to the Claude completion list while preserving custom commands and deduplication behavior.Out of Scope Changes check ✅ Passed The changes are limited to the Claude provider command fallback, related tests, and documentation. No unrelated code changes are identified. - Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
Comment `@coderabbitai help` to get the list of available commands.macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
Approvability#
Verdict: Approved at
5b251c6Macroscope's review found this PR approvable — This is a narrowly scoped Claude completion-list bug fix that restores three existing CLI builtins without changing command execution, schemas, configuration, or other production workflows. Focused tests cover presence and deduplication, keeping the runtime impact limited.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).Thanks for the PR. We're not taking changes to the orchestration and provider layers right now: that part of the server is being rewritten for V2, and merging into the current code would either conflict with or be thrown away by that work.
Closing for now. If this is still an issue once V2 lands, please reopen (or open a fresh PR against the new code) and we'll take a proper look.
juliusmarminge closed this
Sign in to join this conversation.
Bugbot is paused — on-demand spend limit reached
Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.
A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.