Skip to content

A local-first multi-agent app development platform, built on PenguinHarness

fix(ui-gallery): 画廊补上「开机自启动」的两条接口,模拟层不再缺路由

lmliheng83d65b2b52d7
diff --git a/packages/ui-gallery/src/app/mock/routes.ts b/packages/ui-gallery/src/app/mock/routes.ts
index fe46f562..7ad9b718 100644
--- a/packages/ui-gallery/src/app/mock/routes.ts
+++ b/packages/ui-gallery/src/app/mock/routes.ts
@@ -41,6 +41,7 @@ import type {
ChatDefaultsDto,
CommandPolicyDto,
DefaultModelResponse,
+ DesktopLoginItemStatusResponse,
DesktopPetStatusResponse,
DesktopTrayStatusResponse,
DesktopUpdateStatusResponse,
@@ -2687,6 +2688,10 @@ router
// "unknown" (null, which the page and the Appearance switch read as off) and the write lands.
.get("/api/desktop/pet", (): DesktopPetStatusResponse => ({ status: null }))
.put("/api/desktop/pet", () => empty())
+ // Starting at sign-in, the same shape: Windows' own record is unknown here (null draws no row,
+ // which is the honest answer for a browser gallery) and the write is acknowledged.
+ .get("/api/desktop/login-item", (): DesktopLoginItemStatusResponse => ({ status: null }))
+ .put("/api/desktop/login-item", () => empty())
.post("/api/desktop/privacy-settings", () => notFound("Desktop mode"));
// ---------------------------------------------------------------------------------------------