fix(clients): autocomplete Claude bundled skills inline#26031
Problem
With Claude selected, /code-review appears at the start of a message but disappears after other text, such as please run /code.
Fixes #25290.
Change
Allow Claude's advertised /code-review, /simplify, and /run commands in autocomplete after other text, on web/desktop and mobile.
Keep /verify, /compact, and other provider commands start-only.
Both clients use the same check. Since the SDK doesn't provide model-invocation metadata, this uses an explicit list of those three commands.
Scope and approval
This is a small fix to an existing autocomplete bug. The web and mobile changes address the same filtering problem.
Verification
vp run check:changed upstream/mainpassed, including 35 tests, formatting, lint, typechecks, and Knip.- Six new regression cases failed before the fix and pass afterward.
- Tested in Chrome on macOS: all three commands appear after leading text. Selecting
/code-reviewpreserves that text. - Confirmed
/verifyappears only at the start. - Mobile behavior is covered by unit tests. The native mobile UI and Electron shell weren't tested manually.
Fixes pingdotgg/t3code#25290
Checks
Added 1 commit
- fix(clients): autocomplete Claude bundled skills inline0d56a5e
Approvability
Verdict: Approved at 0d56a5e
Macroscope's review found this PR approvable — This is a small, well-scoped autocomplete bug fix that enables only Claude’s three bundled skills inline while preserving existing behavior for other commands and providers. Both web and mobile paths are covered by regression tests, with no product-default, schema, infrastructure, or static-analysis changes.
You can add or adjust custom eligibility rules. Learn more.
Important
Review skipped
Review was skipped as selected files did not have any reviewable changes.
Run configuration
-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: f70e349
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
d55bf6e7-745b-4ad8-ba8c-5cdd4c2ce549
Commits
-
Reviewing files that changed from the base of the PR and between 2fd2895499a6b97d2cb8f97078c32b55bc5f8512 and d3ec17f126ac81b754d33ef0e90358abf9845f90.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- Trigger review
No actionable comments were generated in the recent review.
Walkthrough
-
The web and mobile composers now allow selected Claude provider slash commands after message text. Other provider commands remain start-only. Side-chat commands and
/clearare offered only at the message start.Changes: Inline command matching
Layer / File(s) Summary Inline command eligibility
packages/client-runtime/src/providerSkills.tsAdds isProviderSlashCommandInline, which acceptscode-review,simplify, andrunfor theclaudeAgentdriver.Composer filtering and tests
apps/web/src/components/chat/composerSlashCommandSearch.ts,apps/mobile/src/features/threads/use-composer-command-menu.ts,apps/web/src/composer-logic.test.ts,apps/mobile/src/features/threads/use-composer-command-menu.test.tsThe web and mobile composers retain accepted provider commands after the message start. Side-chat commands and /clearare start-only. Tests cover inline and start-only command suggestions.Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix · Severity of issue fixed: Medium
Possibly related PRs
- pingdotgg/t3code#22466: Changes the same web and mobile filters to allow provider commands with the
skill:prefix after message text. - pingdotgg/t3code#35152: Changes the same filters and test expectations, using a
skill:prefix to identify inline commands. - pingdotgg/t3code#30325: Changes the same
/clearplacement rule in the web and mobile composers.
Suggested reviewers:
t3dotgg,juliusmarminge,maria-rcks - pingdotgg/t3code#22466: Changes the same web and mobile filters to allow provider commands with the
Merge Risk: Minimal · previous review 2fd28
-
This change lets Claude's code-review, simplify, and run commands autocomplete after other text, and keeps other commands start-only. No merge-blocking risk was identified.
Pre-merge checks: 4
-
Check name Status Explanation Title check The title "fix(clients): autocomplete Claude bundled skills inline" matches the main change. The changeset lets Claude's /code-review, /simplify, and /run appear in autocomplete after other text on we… Description check The description follows the repository template. It has Problem, Change, Scope, and Verification sections. The Problem section states the bug and links issue #25290. The Change section explains the fi…Linked Issues check Issue #25290requires Claude's model-invocable bundled commands to match after other text. Hidden or other provider commands stay start-only. At head 2fd2895, isProviderSlashCommandInline in packages/…Out of Scope Changes check Changes since the previous review stay in the same filtering path. The mobile diff also makes the T3 /clear item start-only (previously offered anywhere) and gates side-chat items on message start in … Full details: Title check
-
Explanation
The title "fix(clients): autocomplete Claude bundled skills inline" matches the main change. The changeset lets Claude's /code-review, /simplify, and /run appear in autocomplete after other text on web, desktop, and mobile. The title follows the conventional commit format and names the affected feature. It is concise and specific, and it does not use vague terms.
Full details: Description check
-
Explanation
The description follows the repository template. It has Problem, Change, Scope, and Verification sections. The Problem section states the bug and links issue
#25290. The Change section explains the fix and the start-only exclusions for /verify and /compact. The Scope section explains why the change is a small bug fix and links the issue. The Verification section lists the checks run, the six regression cases, the manual Chrome test on macOS, and what was not tested (native mobile UI and Electron shell). The author did not include the template's HTML comments, and the scope section does not name a maintainer request. Both gaps are minor. The description also does not state which agent or model produced the work, which the template asks for when an agent was used. The description is mostly complete.
Full details: Linked Issues check
-
Explanation
Issue
#25290requires Claude's model-invocable bundled commands to match after other text. Hidden or other provider commands stay start-only. At head 2fd2895, isProviderSlashCommandInline in packages/client-runtime/src/providerSkills.ts returns true only for driver claudeAgent and names code-review, simplify, or run. The mobile buildComposerSlashCommandItems in use-composer-command-menu.ts skips provider commands away from message start unless this predicate accepts them. The web composerSlashCommandSearch.ts uses the same predicate. Regression tests in composer-logic.test.ts and use-composer-command-menu.test.ts cover inline matches, start-only commands such as verify, and non-Claude providers. The predicate and filtering are unchanged in substance since the previous review, so the earlier conclusion still holds.
Full details: Out of Scope Changes check
-
Explanation
Changes since the previous review stay in the same filtering path. The mobile diff also makes the T3 /clear item start-only (previously offered anywhere) and gates side-chat items on message start in one condition. This is not described in the PR description. It matches the web behavior, where composerSlashCommandSearch.ts already names /side, /btw, and /clear as message-start commands, so it aligns the two clients. It does not change any other command's visibility. The remaining changes support the linked issue: the shared classification helper, web and mobile filtering, and regression tests. No unrelated files or behavior were found. The PR description should mention the mobile /clear change for reviewers.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: 7eca0ed
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
c4211856-9b71-4f4a-b237-8623d0b68778
Commits
-
Reviewing files that changed from the base of the PR and between 0d56a5e1fbb2bd6e955378dfb43d4590581b71fe and 2fd2895499a6b97d2cb8f97078c32b55bc5f8512.
Files selected for processing: 5
-
apps/mobile/src/features/threads/use-composer-command-menu.test.tsapps/mobile/src/features/threads/use-composer-command-menu.tsapps/web/src/components/chat/composerSlashCommandSearch.tsapps/web/src/composer-logic.test.tspackages/client-runtime/src/providerSkills.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Recent review info
-
Run configuration
-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: 7eca0ed
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
c4211856-9b71-4f4a-b237-8623d0b68778
Commits
-
Reviewing files that changed from the base of the PR and between 0d56a5e1fbb2bd6e955378dfb43d4590581b71fe and 2fd2895499a6b97d2cb8f97078c32b55bc5f8512.
Files selected for processing: 5
-
apps/mobile/src/features/threads/use-composer-command-menu.test.tsapps/mobile/src/features/threads/use-composer-command-menu.tsapps/web/src/components/chat/composerSlashCommandSearch.tsapps/web/src/composer-logic.test.tspackages/client-runtime/src/providerSkills.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
Added 2 commits
The automated pipeline stopped on this pull request and will not merge it:
the fix is written and reviewed, but proving it needs something no worker has:
- Permanent blocker: real Claude execution access is needed to establish whether /code-review, /simplify, /run, and /verify are model-invocable inline in Claude Code 2.1.322. The VM brief lists first-party Claude OAuth as unavailable and instructs against workarounds. The installed CLI reports a saved OAuth login, but no model request was made to establish usable access.
- The base and head autocomplete interactions, preservation of leading text, and start-only command exclusions were not exercised. Replay menu captures alone would not resolve the rejected proof's missing execution premise or validate the three-command allowlist.
- Mobile device behavior and the Electron shell were not exercised because the required provider execution proof has a permanent blocker.
It stays open for a person to finish or close.
Execution proof for the blocker above, from a real Claude Code run (CLI 2.1.333, Agent SDK 0.3.333, --model sonnet, logged in with OAuth, empty git repo, hooks off, no MCP).
Each prompt was thanks for the help so far, now please run /<name>, so the command comes after other text. I ran it with claude -p --max-turns 1 --output-format stream-json --verbose and recorded Claude's first tool call:
| Typed mid-message | First tool call |
|---|---|
/code-review | Skill {"skill":"code-review"} |
/simplify | Skill {"skill":"simplify"} |
/run | Skill {"skill":"run"} |
/verify | no Skill call (the model ran Bash instead) |
So /code-review, /simplify and /run are model-invocable after other text, and /verify is not. That matches the three-command allowlist in this PR.
One addition: /init is model-invocable too (Skill {"skill":"init"} from the same prompt), and Claude lists it among its Skill tool's skills along with the three above. It may belong in the allowlist. SlashCommand in the SDK still has no model-invocation field, only builtin, so an explicit list is still the only option.
This covers only the execution premise. I did not exercise the autocomplete UI, mobile or Electron.
Written with Claude Sonnet 5.5 in Claude Code.