Skip to content

fix(clients): complete advertised ACP skills inside prompts - #35152

Open
Microck wants to merge 1 commit into
pingdotgg:mainfrom
Microck:fix/inline-acp-skills-current-main
Open

Microck wants to merge 1 commit into
pingdotgg:mainfrom
Microck:fix/inline-acp-skills-current-main

Conversation

@Microck

@Microck Microck commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Problem

ACP agents advertise skills as commands such as /skill:logo-archive. autocomplete offers them at the start of a message, but hides them inside a prompt such as Please use /skill:logo even though the agent accepts that form.

Change

allow advertised skill: commands inline in the web/desktop and mobile command filters. ordinary provider commands and T3's /side, /btw, and /clear stay start-only. completion uses the existing insertion path and preserves surrounding text. update the ACP user guide to describe the distinction.

Scope

replaces #22466 with a fresh branch from main (ee90bdc9), as requested in Theo's closing comment. this keeps the original autocomplete fix; no provider, protocol, or insertion changes.

Verification

  • on unchanged main production code, three focused regressions fail because the advertised skill is missing: web filtering, mobile inline completion, and mobile newline completion.
  • after the fix, vp test run apps/web/src/composer-logic.test.ts apps/mobile/src/features/threads/use-composer-command-menu.test.ts passes all 75 tests in an isolated Raft box. coverage includes start-only restrictions and preservation of text/cursor position during insertion.
  • vp run check:changed origin/main --concurrency 1 passes format, lint, both knip checks, three package typechecks, the 75 tests, and seven scoped React Compiler checks. CI's full test suites and builds were not run locally.
  • current live browser verification is unverified. the repo's e2e runner started the isolated app, but timed out on visible sidebar/composer controls before reaching completion. the throwaway scenario and replay-provider changes are not included.
  • native iOS/Android, Electron, a real provider turn, and remote/relay/tunnel connections were not exercised in this replacement run.
historical before/after captures from #22466, not new verification

before, inline skill excluded:

historical before: no matching inline skill command

after the original fix, real OMP advertised skills offered inline:

historical after: advertised OMP skills offered inline

implemented and verified with maisa-codex/gpt-6.1-sol through the acpRegistry harness in T3 Code.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 12, 2026
@macroscopeapp

macroscopeapp Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 65f143f

Macroscope's review found this PR approvable — Web and mobile now offer advertised skill: completions within prompts while keeping ordinary commands restricted to the message start. This is a narrow, user-invoked completion change with no change to command execution or permissions.

You can add or adjust custom eligibility rules. Learn more.

@coderabbitai

coderabbitai Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Web and mobile composers now allow advertised provider skill: commands to be completed after other prompt text. Other provider commands, along with /side, /btw, and /clear, remain limited to the message start. Tests and ACP provider documentation cover these rules.

Changes: Inline ACP skill completion

Layer / File(s) Summary
Composer command filtering and coverage
apps/mobile/src/features/threads/use-composer-command-menu.ts, apps/web/src/components/chat/composerSlashCommandSearch.ts, apps/mobile/src/features/threads/use-composer-command-menu.test.ts, apps/web/src/composer-logic.test.ts, docs/user/providers-acp.md
The web and mobile filters retain provider skill: commands away from the message start. Tests check prompt-position filtering and mobile completion. The ACP provider documentation describes which commands can be completed inline.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related issues

  • pingdotgg/t3code#26443 — The change enables inline autocomplete for advertised ACP skills, as described for Copilot ACP skills in the issue.

Possibly related PRs

  • pingdotgg/t3code#22466 — This PR changes the same web and mobile filters to allow inline provider skill: commands.
  • pingdotgg/t3code#26031 — This PR changes the same filters to retain selected provider commands away from the message start.

Suggested reviewers: juliusmarminge, macroscopeapp

Merge Risk: Minimal · up to 65f14

Advertised skill commands can now be completed inline in web and mobile composers, while other commands stay start-only. No actionable merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(clients): complete advertised ACP skills inside prompts" names the main change: advertised ACP skill commands can now be completed inside a prompt, not only at the start. The raw summar…
Description check Passed The description follows the repository template. It has Problem, Change, Scope, and Verification sections, and each is filled in. The Problem explains the bug and its reproduction (`Please use /skill:…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(clients): complete advertised ACP skills inside prompts" names the main change: advertised ACP skill commands can now be completed inside a prompt, not only at the start. The raw summary, the objectives, and the changed files (web composer filtering, mobile command menu, tests, ACP docs) all match this. It is a conventional-commit style title in plain language, and it is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description follows the repository template. It has Problem, Change, Scope, and Verification sections, and each is filled in. The Problem explains the bug and its reproduction (Please use /skill:logo). The Change explains the fix and keeps ordinary provider commands and /side, /btw, /clear start-only. The Scope names the replaced PR #22466 and gives the reason. Verification lists focused tests, the check run, and what was not verified. The model and harness are named at the end, as the template asks. Minor gaps: the Change section is not split by component in detail, and the Scope section does not describe a maintainer request beyond the linked comment. These do not affect the outcome.

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 b2e86d7 and 65f143f.

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
  • docs/user/providers-acp.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@maria-rcks

maria-rcks commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

Note

Written by gpt-6.1-sol on behalf of Maria

Verified in a real dev environment

verified unchanged head 65f143f1bf1dc19c598e14e1a33d2a57648029fc on a disposable linux vm using the real dev web app, repository playwright, and /usr/bin/google-chrome.

  • reproduced on github/main at 843893e58c: /skill:file-upload was offered at message start, but Please use /skill:file-up showed "No matching command."
  • on the pr head, the same inline input offers /skill:file-upload. selecting it preserves preceding text, a following newline and suffix, and the caret position. newline-prefixed completion also works.
  • created the project and provider through the app. real native codex gpt-6.1-sol turns succeeded on main and the pr. for the advertised-command path, used installed pi-acp 0.0.34 with pi 1.5.2, gpt-6.1-sol, the local provider proxy, and the existing real file-upload skill. the completed inline prompt was sent through the composer; the agent read the skill and quoted its first instruction. no mock provider, fixture commands, or demo data.
  • neighboring behavior: /session is offered at message start and hidden inline, including after a newline. sending /session returned real session stats. inline /side, /btw, and /clear remain hidden; inline /model remains available.
  • blacksmith: vp test run apps/web/src/composer-logic.test.ts apps/mobile/src/features/threads/use-composer-command-menu.test.ts passed all 75 tests. github checks on this head are green. no code changes or push were needed.

short runtime transcript:

PASS "/session" -> advertised provider command offered
PASS "Please use /session" -> no options
PASS "Please use\n/session" -> no options
PASS inline /side, /btw, /clear -> no options
PASS inline /model -> offered
PASS "/skill:file-up" -> /skill:file-upload
PASS "Please use\n/skill:file-up" -> /skill:file-upload
PASS newline, suffix and caret preserved
native codex response: CODEX_PR_PATH_OK
acp response: ACP_REAL_PATH_OK
/session response: session stats, messages and token counts

before, current main:

main: inline advertised skill has no matching command

after, exact pr head:

pr: the same inline skill input offers file-upload

inline completion, submission, real skill read and provider response:

inline skill completed and sent through the real acp provider

Not verified

native ios/android interaction and electron shell behavior were not exercised on this linux vm. mobile filtering/insertion has focused unit coverage above, not native client verification. other acp implementations and remote/relay/tunnel connections were not exercised. no performance claim is made.

@github-actions

Copy link
Copy Markdown
Contributor

This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.

See the conflict window.

@github-actions github-actions Bot added the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 27, 2026

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

needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. size:S 10-29 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.

2 participants