[Bug]: The / menu opens at any line start, but a skill only runs from character 0 of the message — accepted skills silently do nothing #8758
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Searched: #8295, #7671, #7673, #6095. #8295 is about which character the accept handler inserts. This is about where in the message the menu is willing to open at all.
Area#
apps/web
Summary#
The / menu opens at the start of any line, and inserts the skill as plain text. The Claude CLI expands plain text as a skill only at character 0 of the whole message. So a skill accepted from the menu on line 2 or later never runs — and for a disable-model-invocation skill nothing happens at all: no expansion, no Skill tool call, no error.
Claude Code's own TUI has the same limit — it offers the completion mid-message and then does not run it either. So the trap is shared rather than T3-specific. What is T3's to fix is that the composer keeps offering a completion in a position where it cannot deliver one.
Steps to reproduce#
- Claude provider, any user-invocable skill (
/grill-mehere). - In an empty composer type
hello there. - Press Shift+Enter for a new line.
- Type
/grill-me. The menu opens and offers it. - Accept with Tab, then send.
Expected behavior#
The menu does not offer a skill in a position where accepting it cannot run it.
Actual behavior#
Nothing runs. The message is delivered as plain text.
Where the two rules disagree#
T3 anchors the trigger to the start of the line — apps/web/src/composer-logic.ts:
if (linePrefix.startsWith("/")) {
const commandMatch = /^\/(\S*)$/.exec(linePrefix);
linePrefix runs from lineStart to the cursor, so any line start opens the menu.
Plain text is expanded only at character 0 of the message. I confirmed this headlessly against claude 2.1.251 in print mode, which is the same Agent SDK surface T3 drives. Two probe skills in <repo>/.claude/skills/, identical except that zebra-locked sets disable-model-invocation: true. Each run is claude -p "<message>" --output-format stream-json --verbose --model haiku:
| message sent | normal skill | disable-model-invocation skill |
|---|---|---|
/name at character 0 | expands, body reaches the model | expands |
hello there\n/name | no expansion; model falls back to a Skill tool call | nothing — model answers "I don't recognize the command" |
hello there /name now | — | nothing, same |
\n/name (one leading newline) | — | nothing |
The leading-newline row is the sharp one: the rule is character 0, not "the first line".
The same holds in the interactive TUI. Typing test /probe-beta there, where probe-beta sets disable-model-invocation: true, produces:
I don't see `probe-beta` in the available skills list. The probe skills that
are available are: probe-alpha, probe-gamma, zebra-probe. Did you mean one of
those...?
Why it is worse for user-invocable-only skills#
A normal skill degrades gracefully, because its description is in context and the model can choose to call the Skill tool. A disable-model-invocation skill has no description in context by design, so there is no fallback path at all — the model does not know the skill exists and says so. The user typed the skill's name, saw it in the menu, accepted it, and got a "I don't recognize that" reply.
This also corrects a nuance stated in #8295, that authorization is whitespace-bounded and so mid-message /name still authorizes the Skill tool. That does not hold on 2.1.251 in print mode — see rows 2 and 3 above.
Suggested fix#
Open the / menu for skill-backed entries only when the trigger starts at index 0 of the composer value, rather than at any lineStart. Native, non-skill commands can keep the current behaviour if the CLI handles them differently.
A richer alternative — keep offering the completion anywhere and rewrite the sent message so it still runs — is possible but not something I can point at a working precedent for, since Claude Code's own client does not do it either.
Impact#
Major degradation or frequent failure
Version or commit#
T3 Code (Alpha) 0.0.36, packaged desktop.
Environment#
macOS 26.5.2 (Apple Silicon), Claude provider, claude CLI 2.1.251.
Workaround#
Put the skill first in the message, with nothing before it — not even a newline.
juliusmarminge closed this
Sign in to join this conversation.