Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): ACP Registry composer lists the project's own commands and skills #34965

Closedjuliusmarmingewants to merge 7 commits intomain fromrefs/pull/34965/headopened View on GitHub

Showing 11 changed files with 42 additions and 17 deletions (loading 8).

x
0 of 11 viewed, 11 left
11 additions and 1 deletionapps/server/src/provider/ProviderRegistry.test.tsModified
View file
@@ -895,7 +895,7 @@
});
​
describe("ProviderRegistry.layer", () => {
- it("marks folder catalogs pending when a machine refresh changes the machine models", () => {
+ it("rescans folders when a machine refresh changes the machine models or commands", () => {
const machineModel = {
slug: "opencode/big-pickle",
name: "Big Pickle",
@@ -947,6 +947,16 @@
{ cwd: "/plain", models: undefined, modelsPending: true },
+ const liveCommands = ProviderRegistry.mergeProviderSnapshot(withCatalog, {
+ ...provider,
+ slashCommands: [{ name: "new-live-command" }],
+ });
+ assert.strictEqual(liveCommands.workspaceSnapshots, undefined);
+ const liveRevision = ProviderRegistry.mergeProviderSnapshot(withCatalog, {
+ ...provider,
+ workspaceSnapshotsRevision: 1,
+ });
+ assert.strictEqual(liveRevision.workspaceSnapshots, undefined);
});
​
it("stores workspace skills, commands and options without changing machine metadata", () => {
24 additions and 16 deletionsapps/server/src/provider/ProviderRegistry.tsModified
View file