Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): Claude no longer refuses earlier skills the user invoked in a prompt #19485

Mergedchuks-qua(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/19485/headmerged by juliusmarminge View on GitHub

Showing 5 changed files with 117 additions and 17 deletions (loading 2).

x
0 of 5 viewed, 5 left
77 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -2715,6 +2715,7 @@
event.type === "turn.terminal",
return {
+ attachmentsDir,
runtime,
providerThread,
threadId,
@@ -2890,6 +2891,82 @@
+ it.effect(
+ "carries earlier user-only skill instructions on sends and steering with attachments",
+ () =>
+ Effect.gen(function* () {
+ const fs = yield* FileSystem.FileSystem;
+ const path = yield* Path.Path;
+ const homePath = yield* fs.makeTempDirectoryScoped({ prefix: "t3-claude-skill-dispatch-" });
+ for (const [name, userOnly] of [
+ ["interrogate", true],
+ ["implement", true],
+ ["review", false],
+ ] as const) {
+ const directory = path.join(homePath, "skills", name);
+ yield* fs.makeDirectory(directory, { recursive: true });
+ yield* fs.writeFileString(
+ path.join(directory, "SKILL.md"),
+ `---\nname: ${name}\ndisable-model-invocation: ${userOnly}\n---\nFollow the ${name} instructions.\n`,