Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(provider): resolve skills and slash commands against the workspace root #7882

ClosedCurlyPeter(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/7882/headopened View on GitHub

Showing 14 changed files with 72 additions and 8 deletions (loading 11).

x
0 of 14 viewed, 14 left
3 additions and 0 deletionsapps/server/src/auth/RpcAuthorization.tsModified
View file
@@ -83,6 +83,9 @@
[WS_METHODS.projectsWriteFile]: AuthOrchestrationOperateScope,
[WS_METHODS.shellOpenInEditor]: AuthOrchestrationOperateScope,
[WS_METHODS.filesystemBrowse]: AuthOrchestrationReadScope,
+ // Reads a thread, its project's workspace root, and that directory's
+ // skill definitions. Read-only, so it sits with the other read methods.
+ [WS_METHODS.providersWorkspaceSkills]: AuthOrchestrationReadScope,
[WS_METHODS.assetsCreateUrl]: AuthOrchestrationReadScope,
[WS_METHODS.subscribeVcsStatus]: AuthOrchestrationReadScope,
[WS_METHODS.subscribeResourceTelemetry]: AuthOrchestrationReadScope,
38 additions and 8 deletionsapps/server/src/provider/Drivers/ClaudeDriver.tsModified
View file
@@ -54,11 +54,15 @@
makeProviderSnapshotSettingsSource,
type ProviderSnapshotSettings,
} from "../providerUpdateSettings.ts";
-import { makeClaudeCapabilitiesCacheKey, makeClaudeContinuationGroupKey } from "./ClaudeHome.ts";
+import { makeClaudeContinuationGroupKey } from "./ClaudeHome.ts";
Thread on lines 57 to 57

Dropping this import leaves makeClaudeCapabilitiesCacheKey in ClaudeHome.ts with no production caller — the only remaining references are in ClaudeHome.test.ts. Suggest deleting the helper and its now-obsolete test cases along with the cache-key change so no dead pre-refactor path is retained.

Posted via Macroscope — Effect Service Conventions
+import { discoverClaudeSkills } from "./ClaudeSkills.ts";
const decodeClaudeSettings = Schema.decodeSync(ClaudeSettings);
​
const DRIVER_KIND = ProviderDriverKind.make("claudeAgent");
const CAPABILITIES_PROBE_TTL = Duration.minutes(5);
+// One entry per workspace the user has open. Small enough to bound CLI
+// spawns, large enough that switching between projects does not re-probe.
+const CAPABILITIES_PROBE_CACHE_CAPACITY = 16;
​