fix: gate direct session creation by workspace policy

This commit is contained in:
2026-08-04 06:13:22 +02:00
parent 7a780d8904
commit b686ffe271
5 changed files with 144 additions and 4 deletions
+3
View File
@@ -13,6 +13,9 @@ test("createSession migrates legacy selections and POSTs browser preferences", a
http.get("http://localhost:8787/settings", () => HttpResponse.json({
workspace: "psd-clinical", provider: "zai", model: "glm-5.2", thinking: "low",
})),
http.get("http://localhost:8787/workspaces", () => HttpResponse.json([{
id: "psd-clinical", name: "psd-clinical", file: "psd-clinical.yaml", displayName: "PSD Clinical",
}])),
http.post("http://localhost:8787/sessions", async ({ request }) => {
body = await request.json();
return HttpResponse.json({ id: "s1" });