Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): preserve instructions around Claude skill chips #13299

ClosedScottN-PV(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/13299/headopened View on GitHub

Showing 4 changed files with 33 additions and 16 deletions (loading 1).

x
0 of 4 viewed, 4 left
22 additions and 5 deletionsapps/server/src/provider/Drivers/ClaudeSkillDispatch.test.tsModified
View file
@@ -11,9 +11,9 @@
expect(planClaudeSkillDispatch("echo $HOME then $unknown", SKILLS)).toBeUndefined();
});
​
- it("moves a mid-prompt mention into a trailing slash command", () => {
+ it("preserves the complete request before a mid-prompt skill invocation", () => {
expect(planClaudeSkillDispatch("ok, now $implement all the tickets", SKILLS)).toEqual({
- leadingText: "ok, now",
+ leadingText: "ok, now /implement all the tickets",
commandText: "/implement all the tickets",
skillName: "implement",
});
@@ -29,7 +29,7 @@
​
it("dispatches a known skill whose name begins with a digit", () => {
expect(planClaudeSkillDispatch("use $2spec for this", SKILLS)).toEqual({
- leadingText: "use",
+ leadingText: "use /2spec for this",
commandText: "/2spec for this",
skillName: "2spec",
});
@@ -37,7 +37,7 @@
​
it("dispatches the last mention and rewrites earlier ones inline", () => {
expect(planClaudeSkillDispatch("$review the diff, then $implement the fixes", SKILLS)).toEqual({
- leadingText: "/review the diff, then",
+ leadingText: "/review the diff, then /implement the fixes",
commandText: "/implement the fixes",