fix(claude): skills picked from the composer now run #9128
Mergedt3dotgg(GitHub profile, opens in a new tab)merged 4 commits into
main fromrefs/pull/9128/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- apps/server/src/provider/Drivers/ClaudeSkills.ts line 148Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -58,0 +120,21 @@120+121+/**122+ * Settings files Claude Code merges for `skillOverrides`, in increasing123+ * precedence: user, project, project-local, then the administrator's managed124+ * policy, which wins outright. A skill the user switched off is reported125+ * disabled rather than dropped, so the picker can grey it out instead of126+ * silently losing it.127+ */128+export function skillOverrideSettingsPaths(129+ path: Path.Path,130+ configDirPath: string,131+ cwd: string | undefined,132+ platform: NodeJS.Platform,133+ environment: NodeJS.ProcessEnv,134+): ReadonlyArray<string> {135+ const managedPath = claudeManagedSettingsPath(path, platform, environment);136+ return [137+ path.join(configDirPath, "settings.json"),138+ ...(cwd139+ ? [140+ path.join(cwd, ".claude", "settings.json"),apps/server/src/provider/Drivers/ClaudeSkillDispatch.ts lines 32 to 32Resolvedby t3dotgg(GitHub profile, opens in a new tab)@@ -0,0 +12,21 @@12+ * - The check runs on the LAST text block of the message. Earlier text13+ * blocks are preserved verbatim, and image blocks may sit before it.14+ * - Leading whitespace, or a `/name` that starts a later line of the same15+ * block, is literal text.16+ * - Only one skill expands per message; a second `/x` becomes argument text17+ * (anthropics/claude-code#87113). The model still starts the rest through18+ * its Skill tool when it reads `/name` in the prompt, so earlier mentions19+ * are rewritten to `/name` inline.20+ *21+ * So one mention anywhere in the prompt becomes a guaranteed invocation, and22+ * the user's text on either side is kept in order.23+ *24+ * @module provider/Drivers/ClaudeSkillDispatch25+ */26+27+/**28+ * Same token shape the composer and timeline chips recognise29+ * (`packages/shared/src/composerInlineTokens.ts`), so a rendered chip and a30+ * dispatched skill are always the same set.31+ */32+const SKILL_MENTION_PATTERN = /(^|\s)\$([a-zA-Z][a-zA-Z0-9:_-]*)(?=\s|$)/g;
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed