Skip to content

fix(clients): autocomplete Claude bundled skills inline - #26031

Open
Martin-e60 wants to merge 3 commits into
pingdotgg:mainfrom
Martin-e60:fix/claudeAutocomplete
Open

Martin-e60 wants to merge 3 commits into
pingdotgg:mainfrom
Martin-e60:fix/claudeAutocomplete

Conversation

@Martin-e60

@Martin-e60 Martin-e60 commented Oct 27, 2026 •

Copy link
Copy Markdown

Problem

With Claude selected, /code-review appears at the start of a message but disappears after other text, such as please run /code.

Fixes https://git.cafe/pingdotgg/t3code/issues/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/main passed, 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-review preserves that text.
  • Confirmed /verify appears only at the start.
  • Mobile behavior is covered by unit tests. The native mobile UI and Electron shell weren't tested manually.
image image

Fixes #25290

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Oct 27, 2026
@macroscopeapp

macroscopeapp Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

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.

@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 2fd2895 and d3ec17f.

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 /clear are offered only at the message start.

Changes: Inline command matching

Layer / File(s) Summary
Inline command eligibility
packages/client-runtime/src/providerSkills.ts
Adds isProviderSlashCommandInline, which accepts code-review, simplify, and run for the claudeAgent driver.
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.ts
The web and mobile composers retain accepted provider commands after the message start. Side-chat commands and /clear are 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 /clear placement rule in the web and mobile composers.

Suggested reviewers: t3dotgg, juliusmarminge, maria-rcks

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Issue #25290 requires 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 Passed 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 #25290 requires 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

Commits

Reviewing files that changed from the base of the PR and between 0d56a5e and 2fd2895.

Files selected for processing: 5

  • apps/mobile/src/features/threads/use-composer-command-menu.test.ts
  • apps/mobile/src/features/threads/use-composer-command-menu.ts
  • apps/web/src/components/chat/composerSlashCommandSearch.ts
  • apps/web/src/composer-logic.test.ts
  • packages/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.

@juliusmarminge juliusmarminge added bugfix Fix PR opened by an issue lead; enters the PR loop pr:gate-failed A land gate failed labels Oct 28, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

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.

@fawzii0x3

Copy link
Copy Markdown
Contributor

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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fix PR opened by an issue lead; enters the PR loop pr:gate-failed A land gate failed size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Claude bundled slash commands (/code-review, /simplify, /run) don't show in the / menu after other text

3 participants