Keep desktop skills up to date automatically (#1309)
* Keep installed desktop skills up to date * Preserve user files during skill sync
This commit is contained in:
@@ -36,6 +36,24 @@ describe("desktop startup", () => {
|
||||
expect(calls).toEqual(["cli", "env", "gui"]);
|
||||
});
|
||||
|
||||
it("starts skills auto-update after GUI startup", async () => {
|
||||
const calls: string[] = [];
|
||||
await runDesktopStartup({
|
||||
hasPendingOpenProjectPath: false,
|
||||
runCliPassthroughIfRequested: vi.fn(async () => {
|
||||
calls.push("cli");
|
||||
return false;
|
||||
}),
|
||||
inheritLoginShellEnv: vi.fn(() => calls.push("env")),
|
||||
bootstrapGui: vi.fn(async () => {
|
||||
calls.push("gui");
|
||||
}),
|
||||
autoUpdateInstalledSkills: vi.fn(() => calls.push("skills")),
|
||||
});
|
||||
|
||||
expect(calls).toEqual(["cli", "env", "gui", "skills"]);
|
||||
});
|
||||
|
||||
it("does not route open-project launches through CLI passthrough", async () => {
|
||||
const runCliPassthroughIfRequested = vi.fn(async () => true);
|
||||
const calls: string[] = [];
|
||||
|
||||
Reference in New Issue
Block a user