@firstpick/pi-package-webui 0.8.2 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +76 -19
  2. package/bin/pi-webui.mjs +864 -140
  3. package/lib/WEBUI_TUI_NATIVE_PARITY.json +26 -0
  4. package/lib/git-workflow-preferences.mjs +246 -19
  5. package/lib/optional-feature-catalog.mjs +29 -0
  6. package/lib/optional-feature-migration.mjs +410 -0
  7. package/lib/session-summary-core.mjs +320 -0
  8. package/lib/session-summary-preferences.mjs +267 -0
  9. package/lib/thinking-stream-recovery.mjs +156 -0
  10. package/lib/ui-layout-settings.mjs +254 -0
  11. package/package.json +5 -40
  12. package/public/app.js +2898 -92
  13. package/public/index.html +77 -14
  14. package/public/service-worker.js +1 -1
  15. package/public/styles.css +669 -2
  16. package/session-summary.ts +403 -0
  17. package/tests/aur-review-widget-static.test.mjs +3 -2
  18. package/tests/boot-failure-diagnostics.test.mjs +3 -3
  19. package/tests/browser/composer-action-grid-reorder.spec.mjs +303 -0
  20. package/tests/browser/feature-decision-output-popup.spec.mjs +156 -0
  21. package/tests/browser/interaction-continuity.spec.mjs +29 -0
  22. package/tests/browser/persistent-ui-layout.spec.mjs +744 -0
  23. package/tests/browser/session-summary.spec.mjs +271 -0
  24. package/tests/codex-fast-mode-static.test.mjs +10 -9
  25. package/tests/composer-action-grid-reorder-static.test.mjs +63 -0
  26. package/tests/fast-mode-client-static.test.mjs +2 -2
  27. package/tests/feature-decision-output-popup-static.test.mjs +172 -0
  28. package/tests/fixtures/fake-pi.mjs +51 -1
  29. package/tests/git-workflow-preferences.test.mjs +4 -2
  30. package/tests/http-endpoints-harness.test.mjs +507 -4
  31. package/tests/interaction-state-stability-static.test.mjs +3 -0
  32. package/tests/mobile-continuity-tablet-static.test.mjs +3 -3
  33. package/tests/mobile-foundation-static.test.mjs +3 -3
  34. package/tests/mobile-phone-experience-static.test.mjs +1 -1
  35. package/tests/mobile-static.test.mjs +118 -103
  36. package/tests/native-parity-harness.test.mjs +9 -1
  37. package/tests/native-parity.test.mjs +23 -1
  38. package/tests/open-issue-wizard-static.test.mjs +1 -1
  39. package/tests/optional-feature-migration-frontend.test.mjs +72 -0
  40. package/tests/optional-feature-migration.test.mjs +142 -0
  41. package/tests/persistent-ui-layout-static.test.mjs +267 -0
  42. package/tests/questionnaire-dialog.test.mjs +511 -0
  43. package/tests/queue-edit-reorder-static.test.mjs +1 -0
  44. package/tests/remote-auth-settings-harness.test.mjs +1 -1
  45. package/tests/session-summary-core.test.mjs +491 -0
  46. package/tests/session-summary-preferences.test.mjs +103 -0
  47. package/tests/side-panel-resize-static.test.mjs +1 -0
  48. package/tests/side-panel-section-reorder-static.test.mjs +3 -3
  49. package/tests/subagent-launch-slots.test.mjs +1 -1
  50. package/tests/thinking-stream-recovery.test.mjs +88 -0
  51. package/tests/ui-layout-settings.test.mjs +92 -0
  52. package/tests/webui-settings-locking.test.mjs +159 -0
@@ -0,0 +1,271 @@
1
+ import { spawn } from "node:child_process";
2
+ import { createServer } from "node:net";
3
+ import { mkdtemp, rm } from "node:fs/promises";
4
+ import { tmpdir } from "node:os";
5
+ import { dirname, join } from "node:path";
6
+ import { setTimeout as delay } from "node:timers/promises";
7
+ import { fileURLToPath } from "node:url";
8
+ import { expect, test } from "@playwright/test";
9
+
10
+ const root = join(dirname(fileURLToPath(import.meta.url)), "..", "..");
11
+ const serverScript = join(root, "bin", "pi-webui.mjs");
12
+ const fakePi = join(root, "tests", "fixtures", "fake-pi.mjs");
13
+
14
+ async function freePort() {
15
+ const server = createServer();
16
+ await new Promise((resolve) => server.listen(0, "127.0.0.1", resolve));
17
+ const { port } = server.address();
18
+ await new Promise((resolve) => server.close(resolve));
19
+ return port;
20
+ }
21
+
22
+ let child;
23
+ let baseURL;
24
+ let tempRoot;
25
+ let output = "";
26
+
27
+ test.beforeAll(async () => {
28
+ const port = await freePort();
29
+ tempRoot = await mkdtemp(join(tmpdir(), "pi-webui-session-summary-"));
30
+ baseURL = `http://127.0.0.1:${port}`;
31
+ child = spawn(process.execPath, [serverScript, "--cwd", tempRoot, "--host", "127.0.0.1", "--port", String(port), "--pi", fakePi], {
32
+ stdio: ["ignore", "pipe", "pipe"],
33
+ env: {
34
+ ...process.env,
35
+ PI_WEBUI_RPC_SUPERVISOR: "0",
36
+ PI_CODING_AGENT_DIR: join(tempRoot, "agent"),
37
+ PI_WEBUI_SETTINGS_FILE: join(tempRoot, "settings.json"),
38
+ PI_SESSION_SUMMARY_CONFIG_FILE: join(tempRoot, "session-summary.json"),
39
+ },
40
+ });
41
+ child.stdout.on("data", (chunk) => { output += String(chunk); });
42
+ child.stderr.on("data", (chunk) => { output += String(chunk); });
43
+ for (let attempt = 0; attempt < 80; attempt += 1) {
44
+ if (child.exitCode !== null) break;
45
+ try {
46
+ const response = await fetch(`${baseURL}/api/health`, { signal: AbortSignal.timeout(500) });
47
+ if (response.ok) return;
48
+ } catch {
49
+ // Wait for the isolated real server and fake RPC fixture.
50
+ }
51
+ await delay(100);
52
+ }
53
+ throw new Error(`Pi Web UI did not start:\n${output}`);
54
+ });
55
+
56
+ test.afterAll(async () => {
57
+ if (child?.exitCode === null) child.kill("SIGTERM");
58
+ if (child && child.exitCode === null) await new Promise((resolve) => child.once("exit", resolve));
59
+ await rm(tempRoot, { recursive: true, force: true });
60
+ });
61
+
62
+ function preferencesData({ configured = false, summary = null } = {}) {
63
+ return {
64
+ version: 1,
65
+ preferences: {
66
+ version: 1,
67
+ configured,
68
+ enabled: false,
69
+ model: { provider: "fake", modelId: "fake-model", thinkingLevel: "off" },
70
+ prompts: { title: "Create a bounded title", summary: "Create a bounded Markdown summary" },
71
+ input: { scope: "text-and-tool-names" },
72
+ context: { injectLatest: false },
73
+ title: { enabled: true, minSettledTurns: 3 },
74
+ },
75
+ models: [{ provider: "fake", id: "fake-model", name: "Fake Model", reasoning: false }],
76
+ modelThinkingLevels: { "fake/fake-model": ["off"] },
77
+ disclosure: {
78
+ scope: "Active-branch user text, final assistant text, and tool names only.",
79
+ cost: "One configured-model request with no fallback.",
80
+ persistence: "Preferences and validated output are stored locally.",
81
+ },
82
+ summary: summary || (configured ? { version: 1, status: "idle", configured: true, enabled: false, durable: false, updatedAt: new Date().toISOString() } : null),
83
+ };
84
+ }
85
+
86
+ function generatedSummaryResponse() {
87
+ return {
88
+ status: 200,
89
+ payload: {
90
+ ok: true,
91
+ data: {
92
+ requested: true,
93
+ summary: {
94
+ version: 1,
95
+ status: "success",
96
+ configured: true,
97
+ enabled: false,
98
+ durable: false,
99
+ title: "Validated fixture title",
100
+ summaryMarkdown: "## Goal\n\nKeep **validated Markdown** visible.\n\n<script>globalThis.summaryPwned = true</script>",
101
+ updatedAt: new Date().toISOString(),
102
+ },
103
+ },
104
+ },
105
+ };
106
+ }
107
+
108
+ async function installSummaryRoutes(page, requests, { configured = false, summary = null, generate = generatedSummaryResponse } = {}) {
109
+ await page.route("**/api/commands?*", async (route) => {
110
+ await route.fulfill({
111
+ status: 200,
112
+ contentType: "application/json",
113
+ body: JSON.stringify({ ok: true, data: { commands: [
114
+ { name: "summary", source: "extension", description: "Open the latest session summary" },
115
+ { name: "summary-setup", source: "extension", description: "Configure session summaries" },
116
+ ] } }),
117
+ });
118
+ });
119
+ await page.route("**/api/session-summary/preferences?*", async (route) => {
120
+ const method = route.request().method();
121
+ if (method === "GET") {
122
+ requests.get += 1;
123
+ await route.fulfill({ status: 200, contentType: "application/json", body: JSON.stringify({ ok: true, data: preferencesData({ configured, summary }) }) });
124
+ return;
125
+ }
126
+ requests.put.push(JSON.parse(route.request().postData() || "{}"));
127
+ await route.fulfill({ status: 200, contentType: "application/json", body: JSON.stringify({ ok: true, data: preferencesData({ configured: true }) }) });
128
+ });
129
+ await page.route("**/api/session-summary/generate?*", async (route) => {
130
+ const request = JSON.parse(route.request().postData() || "{}");
131
+ requests.generate.push(request);
132
+ const response = await generate(request, requests.generate.length);
133
+ await route.fulfill({
134
+ status: response.status,
135
+ contentType: "application/json",
136
+ body: JSON.stringify(response.payload),
137
+ });
138
+ });
139
+ }
140
+
141
+ test("first click opens confirmed setup, cancel has no side effect, and save opens a non-blocking sanitized overlay", async ({ page }) => {
142
+ const requests = { get: 0, put: [], generate: [] };
143
+ await installSummaryRoutes(page, requests);
144
+ await page.goto(baseURL);
145
+
146
+ const summaryButton = page.locator("#summaryHeaderButton");
147
+ await expect(summaryButton).toBeVisible();
148
+ await summaryButton.evaluate((button) => button.click());
149
+ await expect(page.locator("#nativeCommandDialog")).toBeVisible();
150
+ await expect(page.locator("#nativeCommandTitle")).toHaveText("/summary-setup");
151
+ await expect(page.locator("#nativeCommandBody")).toContainText("Privacy scope");
152
+ expect(requests.put).toHaveLength(0);
153
+ expect(requests.generate).toHaveLength(0);
154
+
155
+ await page.locator("#nativeCommandActions").getByRole("button", { name: "Cancel" }).click();
156
+ await expect(page.locator("#nativeCommandDialog")).not.toBeVisible();
157
+ expect(requests.put).toHaveLength(0);
158
+ expect(requests.generate).toHaveLength(0);
159
+
160
+ await summaryButton.evaluate((button) => button.click());
161
+ await expect(page.locator("#nativeCommandDialog")).toBeVisible();
162
+ await page.locator("#nativeCommandActions").getByRole("button", { name: "Save and generate" }).click();
163
+ await expect(page.locator("#confirmationDialog")).toBeVisible();
164
+ await expect(page.locator("#confirmationSummary")).toContainText("Active-branch user text");
165
+ expect(requests.put).toHaveLength(0);
166
+ expect(requests.generate).toHaveLength(0);
167
+ await page.locator("#confirmationConfirmButton").click();
168
+
169
+ await expect(page.locator("#sessionSummaryOverlay")).toBeVisible();
170
+ await expect(page.locator("#sessionSummaryOverlay")).toHaveAttribute("aria-modal", "false");
171
+ await expect(page.locator("#sessionSummaryOverlayTitle")).toHaveText("Validated fixture title");
172
+ await expect(page.locator("#sessionSummaryOverlayBody h2")).toHaveText("Goal");
173
+ await expect(page.locator("#sessionSummaryOverlayBody strong")).toHaveText("validated Markdown");
174
+ await expect(page.locator("#sessionSummaryOverlayBody script")).toHaveCount(0);
175
+ await expect(page.locator("#sessionSummaryOverlayBody")).toContainText("<script>globalThis.summaryPwned = true</script>");
176
+ expect(await page.evaluate(() => globalThis.summaryPwned)).toBeUndefined();
177
+ expect(requests.put).toHaveLength(1);
178
+ expect(requests.put[0]).toMatchObject({ confirmed: true, preferences: { input: { scope: "text-and-tool-names" } } });
179
+ expect(requests.generate).toEqual([{ refresh: true }]);
180
+
181
+ await page.setViewportSize({ width: 390, height: 844 });
182
+ const dimensions = await page.locator("#sessionSummaryOverlay").evaluate((element) => ({
183
+ clientWidth: element.clientWidth,
184
+ scrollWidth: element.scrollWidth,
185
+ right: element.getBoundingClientRect().right,
186
+ }));
187
+ expect(dimensions.scrollWidth).toBeLessThanOrEqual(dimensions.clientWidth + 1);
188
+ expect(dimensions.right).toBeLessThanOrEqual(391);
189
+ });
190
+
191
+ test("typed summary commands stay native, preserve failures, reset sessions, restore focus, and close on tab switch", async ({ page }) => {
192
+ const requests = { get: 0, put: [], generate: [], prompt: [] };
193
+ const initialSummary = {
194
+ version: 1,
195
+ status: "success",
196
+ configured: true,
197
+ enabled: false,
198
+ durable: true,
199
+ sessionId: "session-a",
200
+ title: "Session A",
201
+ summaryMarkdown: "## Previous success\n\nKeep this Markdown on refresh failure.",
202
+ updatedAt: new Date().toISOString(),
203
+ };
204
+ let generationMode = "failure";
205
+ await installSummaryRoutes(page, requests, {
206
+ configured: true,
207
+ summary: initialSummary,
208
+ generate: async () => generationMode === "failure"
209
+ ? { status: 503, payload: { ok: false, error: "Fixture provider unavailable" } }
210
+ : {
211
+ status: 200,
212
+ payload: {
213
+ ok: true,
214
+ data: {
215
+ requested: true,
216
+ summary: {
217
+ version: 1,
218
+ status: "idle",
219
+ configured: true,
220
+ enabled: false,
221
+ durable: true,
222
+ sessionId: "session-b",
223
+ updatedAt: new Date().toISOString(),
224
+ },
225
+ },
226
+ },
227
+ },
228
+ });
229
+ await page.route("**/api/prompt?*", async (route) => {
230
+ requests.prompt.push(JSON.parse(route.request().postData() || "{}"));
231
+ await route.fulfill({ status: 200, contentType: "application/json", body: JSON.stringify({ ok: true, data: {} }) });
232
+ });
233
+ await page.goto(baseURL);
234
+ await expect(page.locator("#summaryHeaderButton")).toBeVisible();
235
+
236
+ const prompt = page.locator("#promptInput");
237
+ await prompt.fill("/summary");
238
+ await prompt.press("Enter");
239
+ await expect(page.locator("#sessionSummaryOverlay")).toBeVisible();
240
+ await expect(page.locator("#sessionSummaryOverlayTitle")).toHaveText("Session A");
241
+ await expect(page.locator("#sessionSummaryOverlayBody")).toContainText("Previous success");
242
+ await expect(prompt).toHaveValue("");
243
+ await expect(prompt).toBeFocused();
244
+ expect(requests.generate).toHaveLength(0);
245
+ expect(requests.prompt).toHaveLength(0);
246
+ expect(await page.locator(".message.user").allTextContents()).not.toContainEqual(expect.stringContaining("/summary"));
247
+
248
+ await page.keyboard.press("Escape");
249
+ await expect(page.locator("#sessionSummaryOverlay")).toBeHidden();
250
+ await expect(prompt).toBeFocused();
251
+
252
+ await prompt.fill("/summary refresh");
253
+ await prompt.press("Enter");
254
+ await expect.poll(() => requests.generate.length).toBe(1);
255
+ expect(requests.generate[0]).toEqual({ refresh: true });
256
+ await expect(page.locator("#sessionSummaryOverlayStatus")).toContainText("Fixture provider unavailable");
257
+ await expect(page.locator("#sessionSummaryOverlayBody")).toContainText("Keep this Markdown on refresh failure");
258
+ expect(requests.prompt).toHaveLength(0);
259
+
260
+ generationMode = "session-reset";
261
+ await prompt.fill("/summary refresh");
262
+ await prompt.press("Enter");
263
+ await expect.poll(() => requests.generate.length).toBe(2);
264
+ await expect(page.locator("#sessionSummaryOverlayBody")).not.toContainText("Previous success");
265
+ await expect(page.locator("#sessionSummaryOverlayBody")).toContainText("Generate a summary to populate this view.");
266
+
267
+ await page.locator("#newTabButton").evaluate((button) => button.click());
268
+ await page.locator("#newTabCurrentDirectoryButton").evaluate((button) => button.click());
269
+ await expect(page.locator("#tabBar [role=\"tab\"]")).toHaveCount(2);
270
+ await expect(page.locator("#sessionSummaryOverlay")).toBeHidden();
271
+ });
@@ -4,7 +4,7 @@ import { dirname, join } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
 
6
6
  const root = join(dirname(fileURLToPath(import.meta.url)), "..");
7
- const [server, app, html, styles, serviceWorker, readme, packageRaw, lockRaw] = await Promise.all([
7
+ const [server, app, html, styles, serviceWorker, readme, packageRaw, lockRaw, optionalFeatureCatalog] = await Promise.all([
8
8
  readFile(join(root, "bin", "pi-webui.mjs"), "utf8"),
9
9
  readFile(join(root, "public", "app.js"), "utf8"),
10
10
  readFile(join(root, "public", "index.html"), "utf8"),
@@ -13,18 +13,19 @@ const [server, app, html, styles, serviceWorker, readme, packageRaw, lockRaw] =
13
13
  readFile(join(root, "README.md"), "utf8"),
14
14
  readFile(join(root, "package.json"), "utf8"),
15
15
  readFile(join(root, "package-lock.json"), "utf8"),
16
+ readFile(join(root, "lib", "optional-feature-catalog.mjs"), "utf8"),
16
17
  ]);
17
18
  const pkg = JSON.parse(packageRaw);
18
19
  const lock = JSON.parse(lockRaw);
19
20
  const packageName = "@firstpick/pi-extension-codex-fast-mode";
20
21
 
21
- assert.equal(pkg.optionalDependencies?.[packageName], "^0.1.0", "WebUI should declare the Fast-mode companion as optional");
22
- assert.ok(pkg.pi?.extensions?.includes(`node_modules/${packageName}/index.ts`), "WebUI should load the optional Fast-mode extension when installed");
23
- assert.equal(lock.packages?.[""]?.optionalDependencies?.[packageName], "^0.1.0", "lock root should mirror the unpublished optional requirement without inventing a resolved artifact");
24
- assert.equal(lock.packages?.[`node_modules/${packageName}`]?.version, "0.1.0", "lockfile should resolve the published Fast-mode companion");
25
- assert.equal(lock.packages?.[`node_modules/${packageName}`]?.optional, true, "resolved Fast-mode companion should remain optional");
22
+ assert.equal(pkg.optionalDependencies?.[packageName], undefined, "WebUI should keep the Fast-mode companion as a separate Pi package");
23
+ assert.equal(pkg.pi?.extensions?.includes(`node_modules/${packageName}/index.ts`), false, "WebUI should not claim the separately configured Fast-mode extension");
24
+ assert.equal(lock.packages?.[""]?.optionalDependencies?.[packageName], undefined, "lock root should not install the Fast-mode companion with WebUI core");
25
+ assert.equal(lock.packages?.[`node_modules/${packageName}`], undefined, "lockfile should not resolve the separately installed Fast-mode companion");
26
+ assert.match(optionalFeatureCatalog, /\["codexFastMode", "@firstpick\/pi-extension-codex-fast-mode", "\^0\.1\.0"\]/, "Optional Features should retain the Pi-installable Fast-mode package mapping");
26
27
 
27
- assert.match(server, /\["codexFastMode", "@firstpick\/pi-extension-codex-fast-mode"\]/, "server should register the package in Optional Features");
28
+ assert.match(server, /const OPTIONAL_FEATURE_PACKAGES = new Map\(OPTIONAL_FEATURE_CATALOG/, "server should derive Fast-mode installation from the shared Optional Features catalog");
28
29
  assert.match(server, /CODEX_FAST_MODE_STATUS_KEY = "codex-fast-mode"[\s\S]*?CODEX_FAST_MODE_COMMAND_NAME = "fast-mode"/, "server should use the extension-owned status and command contracts");
29
30
  assert.match(server, /function codexFastModeStatusState\(statusText\)[\s\S]*?text !== "on" && text !== "off"[\s\S]*?known: true, enabled: text === "on"/, "server should accept only exact published on/off states");
30
31
  assert.match(server, /function codexFastModeSnapshot\(tab, patch = \{\}\)[\s\S]*?extensionStatusMap\(tab\)\.get\(CODEX_FAST_MODE_STATUS_KEY\)/, "server snapshots should come from remembered extension status");
@@ -53,7 +54,7 @@ assert.match(app, /statusKey === CODEX_FAST_MODE_STATUS_KEY[\s\S]*?applyCodexFas
53
54
  assert.match(readme, /### Compact live output mode[\s\S]*?select \*\*Compact\*\*[\s\S]*?`compact-v1`/, "README should document Compact mode with the stable wire identifier");
54
55
  assert.match(readme, /### Codex subscription Fast mode[\s\S]*?service_tier: "priority"[\s\S]*?1\.5× faster[\s\S]*?2× Standard credits[\s\S]*?2\.5×/, "README should separately document subscription Fast mode and its cost semantics");
55
56
  // Intent preserved: browser-asset changes must advance the coherent cache tuple.
56
- assert.match(serviceWorker, /pi-webui-pwa-v62/, "PWA cache identity should be bumped for changed browser assets");
57
- assert.match(html, /data-app-src="\/app\.js\?v=104"/, "browser module URL should be cache-busted for Fast-mode wiring");
57
+ assert.match(serviceWorker, /pi-webui-pwa-v71/, "PWA cache identity should be bumped for changed browser assets");
58
+ assert.match(html, /data-app-src="\/app\.js\?v=112"/, "browser module URL should be cache-busted for Fast-mode wiring");
58
59
 
59
60
  console.log("codex-fast-mode-static.test.mjs passed");
@@ -0,0 +1,63 @@
1
+ import assert from "node:assert/strict";
2
+ import { readFile } from "node:fs/promises";
3
+ import { dirname, join } from "node:path";
4
+ import { fileURLToPath } from "node:url";
5
+
6
+ const root = join(dirname(fileURLToPath(import.meta.url)), "..");
7
+ const [html, app, css, serviceWorker] = await Promise.all([
8
+ readFile(join(root, "public", "index.html"), "utf8"),
9
+ readFile(join(root, "public", "app.js"), "utf8"),
10
+ readFile(join(root, "public", "styles.css"), "utf8"),
11
+ readFile(join(root, "public", "service-worker.js"), "utf8"),
12
+ ]);
13
+
14
+ assert.match(html, /id="newSessionButton"[^>]*data-composer-action-id="new"[^>]*data-composer-action-span="1"/, "New should occupy one composer grid cell");
15
+ for (const [id, label] of [
16
+ ["compact", "Compact"],
17
+ ["app-runner", "App runner"],
18
+ ["steer", "Steer"],
19
+ ["follow-up", "Follow-up"],
20
+ ["abort", "Abort"],
21
+ ["send", "Send"],
22
+ ]) {
23
+ assert.match(html, new RegExp(`data-composer-action-id="${id}"[^>]*data-composer-action-span="2"`), `${label} should occupy two composer grid cells`);
24
+ }
25
+ for (const id of ["git", "publish", "native-command", "options", "btw"]) {
26
+ assert.match(html, new RegExp(`data-composer-action-id="${id}"[^>]*data-composer-action-span="1"`), `${id} should occupy one composer grid cell`);
27
+ }
28
+ assert.match(html, /id="composerActionGridGuide"[^>]*class="composer-action-grid-guide"[^>]*aria-hidden="true"[^>]*hidden/, "the composer should provide a decorative drag-only grid guide");
29
+ assert.match(html, /id="composerActionOrderStatus"[^>]*role="status"[^>]*aria-live="polite"/, "reordering should have a polite live-region announcement");
30
+
31
+ assert.match(
32
+ css,
33
+ /body\.composer-action-grid-enabled \.composer-row\s*\{[\s\S]*--composer-action-cell-min-width:\s*3\.2rem[\s\S]*display:\s*grid[\s\S]*grid-template-columns:\s*repeat\(auto-fill, minmax\(var\(--composer-action-cell-min-width\), 1fr\)\)[\s\S]*grid-auto-flow:\s*dense/,
34
+ "the desktop composer should use wider dense responsive grid cells",
35
+ );
36
+ assert.match(css, /grid-column:\s*var\(--composer-action-grid-column, auto\) \/ span var\(--composer-action-grid-span\)/, "actions should support explicit sparse grid columns");
37
+ assert.match(css, /\[data-composer-action-span="2"\]\s*\{\s*--composer-action-grid-span:\s*2;/, "wide actions should span exactly two cells");
38
+ assert.match(css, /body\.composer-action-grid-enabled \.composer-row \[data-composer-action-id\]\.composer-publish-menu:hover,[\s\S]*\.composer-publish-menu:focus-within,[\s\S]*\.composer-publish-menu\.open \{\s*z-index:\s*100;/, "open composer dropdowns should stack above prompt tags and neighboring grid controls");
39
+ assert.match(css, /#newSessionButton\s*\{[\s\S]*display:\s*grid[\s\S]*place-items:\s*center[\s\S]*padding-inline:\s*0\.4rem[\s\S]*text-align:\s*center/, "New should center its label inside the one-cell button");
40
+ assert.match(css, /composer-action-drag-active[\s\S]*composer-action-grid-guide:not\(\[hidden\]\)[\s\S]*position:\s*absolute[\s\S]*inset:\s*0[\s\S]*grid-template-columns:\s*repeat\(auto-fill, minmax\(var\(--composer-action-cell-min-width\), 1fr\)\)[\s\S]*gap:\s*0\.5rem/, "the drag-only guide should cover the complete composer row with the same responsive tracks");
41
+ assert.match(css, /\.composer-action-grid-cell\s*\{[\s\S]*min-width:\s*0[\s\S]*border:[\s\S]*background:/, "empty guide cells should render as full grid cells");
42
+ assert.match(css, /composer-action-dragging[\s\S]*cursor:\s*grabbing[\s\S]*composer-action-drag-before[\s\S]*composer-action-drag-after/, "dragging and occupied drop targets should have visible affordances");
43
+ assert.match(css, /composer-action-grid-cell-target[\s\S]*border-color:\s*var\(--ctp-teal\)/, "empty-cell drop targets should have a visible affordance");
44
+
45
+ assert.match(app, /const COMPOSER_ACTION_ORDER_STORAGE_KEY = "pi-webui-composer-action-order-v1";[\s\S]*const COMPOSER_ACTION_LAYOUT_STORAGE_KEY = "pi-webui-composer-action-layout-v2";[\s\S]*const COMPOSER_ACTION_POINTER_DRAG_THRESHOLD_PX = 6;/, "composer order and sparse layout should use versioned storage with a bounded drag threshold");
46
+ assert.match(app, /function readStoredComposerActionOrder\(\)[\s\S]*localStorage\.getItem\(COMPOSER_ACTION_ORDER_STORAGE_KEY\)[\s\S]*new Set[\s\S]*function persistComposerActionOrder\(\)[\s\S]*localStorage\.setItem\(COMPOSER_ACTION_ORDER_STORAGE_KEY/, "stored order should be validated, deduplicated, and persisted");
47
+ assert.match(app, /function applyComposerActionOrder\(orderIds\)[\s\S]*knownIds[\s\S]*completeOrder[\s\S]*--composer-action-order/, "new actions should append safely when restoring an older order");
48
+ assert.match(app, /function showComposerActionGridGuide\(\)[\s\S]*composerActionGridColumnCount\(\)[\s\S]*top - groups\.at\(-1\) > 4[\s\S]*columnCount \* rowCount[\s\S]*composer-action-drag-active[\s\S]*function hideComposerActionGridGuide/, "dragging should materialize every full-row guide cell without splitting near-equal action tops into false rows");
49
+ assert.match(app, /function composerActionGridColumnCount\(\)[\s\S]*--composer-action-cell-min-width[\s\S]*row\.clientWidth[\s\S]*Math\.floor\(\(availableWidth \+ gap\) \/ \(minWidth \+ gap\)\)/, "column counts should derive from the visible row width instead of overflow-created implicit tracks");
50
+ assert.match(app, /function readStoredComposerActionLayout\(\)[\s\S]*COMPOSER_ACTION_LAYOUT_STORAGE_KEY[\s\S]*function composerActionSlotCanFit[\s\S]*function persistComposerActionSlotLayout[\s\S]*positions:\s*Object\.fromEntries/, "sparse cell positions should be validated and persisted independently from order");
51
+ assert.match(app, /function remapComposerActionSlot\(record, slot, sourceColumns, targetColumns\)[\s\S]*relativeColumn[\s\S]*function nearestAvailableComposerActionSlot[\s\S]*function restoreComposerActionSlotLayout\(\)[\s\S]*stored\.columns === columns[\s\S]*remapComposerActionSlot/, "saved sparse positions should project into changed responsive grid widths instead of being cleared");
52
+ assert.doesNotMatch(app, /if \(!stored \|\| stored\.columns !== columns\)/, "column-count changes should not discard saved sparse positions");
53
+ assert.match(app, /function captureComposerActionSlotLayout\(\)[\s\S]*composerActionGridGuide[\s\S]*function moveComposerActionToGridCell\(actionId, cell\)[\s\S]*composerActionSlotCanFit[\s\S]*composer-action-grid-cell-target/, "empty grid cells should capture and retain exact action slots");
54
+ assert.match(app, /function composerActionRootFromPoint\(clientX, clientY\)[\s\S]*elementFromPoint[\s\S]*function updateComposerActionPointerDrag\(event\)[\s\S]*Math\.hypot[\s\S]*COMPOSER_ACTION_POINTER_DRAG_THRESHOLD_PX[\s\S]*showComposerActionGridGuide\(\)[\s\S]*captureComposerActionSlotLayout\(\)[\s\S]*composerActionGridCellFromPoint[\s\S]*moveComposerActionToGridCell/, "pointer dragging should activate after the threshold and distinguish occupied from empty grid cells");
55
+ assert.match(app, /function initializeComposerActionOrdering\(\)[\s\S]*MutationObserver[\s\S]*ResizeObserver[\s\S]*observedRowWidth[\s\S]*scheduleComposerActionSlotLayoutRestore[\s\S]*aria-keyshortcuts[\s\S]*ArrowLeft[\s\S]*ArrowRight[\s\S]*moveComposerActionByOffset[\s\S]*pointerdown/, "keyboard and pointer reordering should stay synchronized with dynamic action visibility and composer width");
56
+ assert.match(app, /event\.key === COMPOSER_ACTION_ORDER_STORAGE_KEY\) restoreComposerActionOrder\(\)[\s\S]*event\.key === COMPOSER_ACTION_LAYOUT_STORAGE_KEY\) restoreComposerActionSlotLayout\(\)/, "other tabs should apply persisted composer order and sparse-layout changes");
57
+ assert.match(app, /initializeComposerActionOrdering\(\);[\s\S]*restoreSidePanelSectionOrder\(\);/, "composer ordering should initialize during guarded app startup");
58
+
59
+ assert.match(html, /styles\.css\?v=98/, "changed composer styles should advance the stylesheet revision");
60
+ assert.match(html, /app\.js\?v=112/, "changed composer behavior should advance the app revision");
61
+ assert.match(serviceWorker, /const CACHE_NAME = "pi-webui-pwa-v71"/, "changed browser assets should advance the PWA cache identity");
62
+
63
+ console.log("composer-action-grid-reorder-static.test.mjs passed");
@@ -123,7 +123,7 @@ assert.match(styles, /\.compact-tool-shell \.compact-tool-status\s*\{[\s\S]*?dis
123
123
  assert.match(styles, /\.compact-tool-shell\.tool-running \.compact-tool-status[\s\S]*?\.compact-tool-shell\.tool-success \.compact-tool-status[\s\S]*?\.compact-tool-shell\.tool-error \.compact-tool-status/, "running, success, and failure tool states should have distinct visual tones");
124
124
  assert.match(compactUpdate, /compactLiveState = reduced\.state;\s+clearCompactToolShells\(\)/, "new assistant or tool-call deltas should clear the preceding transient tool shell");
125
125
  assert.match(compactLiveStreamActive, /messageOutputActive = streamMessageActive && Boolean\([\s\S]*?compactLiveState\.text[\s\S]*?compactLiveState\.thinking[\s\S]*?compactOutputActive\(\) && currentState\?\.isStreaming === true && Boolean\(compactToolShells\.size \|\| messageOutputActive\)/, "mid-stream reconciliation should preserve active compact message output or a current tool shell, but not completed final text");
126
- assert.match(restoreCompactStream, /compactTextBubble = null[\s\S]*?compactThinkingBubble = null[\s\S]*?if \(streamMessageActive\) flushCompactLiveOutput\(\)[\s\S]*?compactToolShells\.values\(\)[\s\S]*?appendChatMessageBubble\(shell\.bubble\)/, "compact message state should be restored only while its message is active, while the current shell can survive between messages");
126
+ assert.match(restoreCompactStream, /compactTextBubble = null[\s\S]*?compactThinkingBubble = null[\s\S]*?if \(streamMessageActive\) flushCompactLiveOutput\(\)[\s\S]*?compactToolShells\.values\(\)[\s\S]*?appendChatMessageBubble\(shell\.bubble, \{ liveTail: true \}\)/, "compact message state should be restored only while its message is active, while the current shell survives in chronological live-tail order between messages");
127
127
  assert.match(refreshMessages, /preserveCompactStream = compactLiveStreamRenderActive\(\)[\s\S]*?!preserveCompactStream && !preserveNormalStream[\s\S]*?renderMessages\(latestMessages\)[\s\S]*?preserveCompactStream\) restoreCompactLiveOutputAfterChatRebuild\(\)/, "message refreshes must not reset active compact output before rebuilding the transcript");
128
128
 
129
129
  assert.match(app, /const SETTINGS_OUTPUT_MODE_OPTIONS = \[[\s\S]*?value: "normal"[\s\S]*?value: "compact-v1"/, "settings should offer normal and compact-v1 server defaults");
@@ -155,7 +155,7 @@ assert.match(worker, /pi-webui-pwa-v\d+[\s\S]*?"\/fast-output-live\.mjs"/, "PWA
155
155
  assert.match(html, /<label for="fastOutputModeSelect">Compact mode \(Experimental\)<\/label>/, "the sidebar should mark compact mode as experimental");
156
156
  assert.match(html, /Lightweight browser rendering; Markdown final output; live thinking expanded; stored thinking grouped and collapsed/, "the sidebar should distinguish compact rendering from model inference");
157
157
  // Intent preserved: the guarded PWA entry point must advance whenever app wiring changes.
158
- assert.match(html, /id="webuiBootLoader"[^>]*data-app-src="\/app\.js\?v=104"/, "the guarded PWA entry point should cache-bust browser wiring");
158
+ assert.match(html, /id="webuiBootLoader"[^>]*data-app-src="\/app\.js\?v=112"/, "the guarded PWA entry point should cache-bust browser wiring");
159
159
  assert.match(JSON.parse(packageRaw).scripts.check, /node --check public\/fast-output-live\.mjs/, "package checks should parse the compact helper");
160
160
 
161
161
  const events = createFastModeOutputEvents();
@@ -0,0 +1,172 @@
1
+ import assert from "node:assert/strict";
2
+ import vm from "node:vm";
3
+ import { readFile } from "node:fs/promises";
4
+ import { dirname, join } from "node:path";
5
+ import { fileURLToPath } from "node:url";
6
+
7
+ const root = join(dirname(fileURLToPath(import.meta.url)), "..");
8
+ const [html, app, css] = await Promise.all([
9
+ readFile(join(root, "public", "index.html"), "utf8"),
10
+ readFile(join(root, "public", "app.js"), "utf8"),
11
+ readFile(join(root, "public", "styles.css"), "utf8"),
12
+ ]);
13
+
14
+ function functionSource(name) {
15
+ const start = app.indexOf(`function ${name}(`);
16
+ assert.ok(start >= 0, `${name} should exist`);
17
+ const next = app.slice(start + 1).match(/\nfunction [A-Za-z0-9_$]+\(/);
18
+ const end = next ? start + 1 + next.index : app.length;
19
+ return app.slice(start, end);
20
+ }
21
+
22
+ assert.match(
23
+ html,
24
+ /<button id="featureCategoryTag"[^>]*type="button"[^>]*aria-haspopup="dialog"[^>]*aria-controls="featureDecisionDialog"[^>]*disabled hidden><\/button>/,
25
+ "the category tag should be a native dialog-triggering button and remain unavailable until exact output arrives",
26
+ );
27
+ assert.match(
28
+ html,
29
+ /<dialog id="featureDecisionDialog" class="extension-dialog feature-decision-dialog" aria-labelledby="featureDecisionDialogTitle">[\s\S]*<h2 id="featureDecisionDialogTitle">Classifier output<\/h2>[\s\S]*<pre id="featureDecisionDialogOutput"[\s\S]*<button id="featureDecisionDialogCloseButton" type="submit" value="close">Close<\/button>/,
30
+ "the popup should use a labelled native dialog, plain-text output container, and explicit close control",
31
+ );
32
+ assert.match(html, /<form method="dialog">[\s\S]*id="featureDecisionDialogCloseButton"/, "the popup close button should use native dialog close semantics");
33
+ assert.doesNotMatch(app, /featureDecisionDialog\?\.addEventListener\("cancel"/, "Escape should retain native dialog cancellation behavior");
34
+ assert.match(css, /\.composer-feature-category-tag:hover:not\(:disabled\),\s*\.composer-feature-category-tag:focus-visible/, "the category button should expose hover and keyboard focus styling");
35
+ assert.match(css, /\.feature-decision-dialog-output \{[\s\S]*white-space:\s*pre-wrap;/, "exact output should render as wrapping preformatted plain text");
36
+
37
+ assert.match(app, /const FEATURE_DECISION_OUTPUT_STATUS_KEY = "feature-decision-output";/, "the consumer should use the approved dedicated status key");
38
+ assert.match(app, /const featureCategoryByTab = new Map\(\);\s*const featureDecisionOutputByTab = new Map\(\);/, "category and decision output should remain isolated in separate per-tab maps");
39
+ assert.match(app, /const FEATURE_DECISION_PAYLOAD_MAX_CHARS = \d+;/, "the consumer should bound the accepted status payload size");
40
+ assert.match(app, /const FEATURE_DECISION_REASON_MAX_CHARS = \d+;/, "the consumer should bound the rendered classifier reason");
41
+
42
+ const context = vm.createContext({ Map, JSON });
43
+ vm.runInContext(`
44
+ const FEATURE_DECISION_PAYLOAD_MAX_CHARS = ${/const FEATURE_DECISION_PAYLOAD_MAX_CHARS = (\d+);/.exec(app)[1]};
45
+ const FEATURE_DECISION_REASON_MAX_CHARS = ${/const FEATURE_DECISION_REASON_MAX_CHARS = (\d+);/.exec(app)[1]};
46
+ ${functionSource("normalizeFeatureCategory")}
47
+ ${functionSource("normalizeFeatureDecisionKind")}
48
+ ${functionSource("normalizeFeatureDecisionReason")}
49
+ ${functionSource("parseFeatureDecisionPayload")}
50
+ ${functionSource("featureDecisionKindLabel")}
51
+ ${functionSource("formatFeatureDecisionText")}
52
+ const featureCategoryByTab = new Map();
53
+ const featureDecisionOutputByTab = new Map();
54
+ ${functionSource("featureDecisionForTab")}
55
+ ${functionSource("featureDecisionOutputForTab")}
56
+ `, context);
57
+ assert.equal(context.normalizeFeatureCategory("lightweight-feature"), "lightweight-feature");
58
+ assert.equal(context.normalizeFeatureCategory("complex-feature"), "complex-feature");
59
+ assert.equal(context.normalizeFeatureCategory(" lightweight-feature"), "", "category validation must not trim payloads");
60
+ assert.equal(context.normalizeFeatureDecisionKind("feature_lightweight"), "feature_lightweight");
61
+ assert.equal(context.normalizeFeatureDecisionKind("feature_complex"), "feature_complex");
62
+ for (const invalid of ["feature_lightweight\n", "feature-lightweight", "lightweight-feature", "", null, undefined]) {
63
+ assert.equal(context.normalizeFeatureDecisionKind(invalid), "", `decision kind should reject ${String(invalid)}`);
64
+ }
65
+
66
+ // The parser runs inside the sandbox realm, so compare plain field copies rather than prototypes.
67
+ function parsePayload(payload) {
68
+ const decision = context.parseFeatureDecisionPayload(payload);
69
+ return decision ? { kind: decision.kind, reason: decision.reason } : decision;
70
+ }
71
+
72
+ assert.deepEqual(
73
+ parsePayload(JSON.stringify({ kind: "feature_complex", reason: "Crosses two packages." })),
74
+ { kind: "feature_complex", reason: "Crosses two packages." },
75
+ "the structured classifier payload should be accepted",
76
+ );
77
+ assert.deepEqual(
78
+ parsePayload(JSON.stringify({ reason: " Collapses\n\tuntrusted\u0007 whitespace and \u202espoofed direction. ", kind: "feature_lightweight" })),
79
+ { kind: "feature_lightweight", reason: "Collapses untrusted whitespace and spoofed direction." },
80
+ "reason text should strip control and bidi formatting characters and collapse whitespace regardless of key order",
81
+ );
82
+ assert.deepEqual(
83
+ parsePayload("feature_complex"),
84
+ { kind: "feature_complex", reason: "" },
85
+ "the legacy exact label should stay accepted for rolling compatibility",
86
+ );
87
+ assert.equal(
88
+ parsePayload(JSON.stringify({ kind: "feature_complex", reason: "x".repeat(900) }))?.reason.length,
89
+ 500,
90
+ "an oversized reason should be bounded rather than rendered in full",
91
+ );
92
+ for (const invalid of [
93
+ undefined,
94
+ null,
95
+ 42,
96
+ "",
97
+ "feature-lightweight",
98
+ "lightweight-feature",
99
+ '["feature_complex","reason"]',
100
+ "{not json",
101
+ JSON.stringify({ kind: "feature_complex" }),
102
+ JSON.stringify({ kind: "feature_complex", reason: "" }),
103
+ JSON.stringify({ kind: "feature_complex", reason: " " }),
104
+ JSON.stringify({ kind: "feature_complex", reason: 7 }),
105
+ JSON.stringify({ kind: "bug", reason: "Restores documented behavior." }),
106
+ JSON.stringify({ kind: "feature_complex", reason: "Extra fields are rejected.", extra: true }),
107
+ JSON.stringify({ kind: "feature_complex", reason: "y".repeat(6000) }),
108
+ ]) {
109
+ assert.equal(parsePayload(invalid), null, `payload should fail closed: ${String(invalid).slice(0, 60)}`);
110
+ }
111
+
112
+ assert.equal(
113
+ context.formatFeatureDecisionText({ kind: "feature_complex", reason: "Crosses two packages." }),
114
+ "Decision: Complex feature (feature_complex)\nReason: Crosses two packages.",
115
+ "the dialog text should read as a decision plus reason, not only the machine label",
116
+ );
117
+ assert.equal(
118
+ context.formatFeatureDecisionText({ kind: "feature_lightweight", reason: "" }),
119
+ "Decision: Lightweight feature (feature_lightweight)\nReason: The classifier reported feature_lightweight without a reason.",
120
+ "a legacy label should render a deterministic readable fallback reason",
121
+ );
122
+ assert.equal(context.formatFeatureDecisionText(null), "", "absent decisions should render no dialog text");
123
+
124
+ vm.runInContext(`
125
+ featureCategoryByTab.set("light", "lightweight-feature");
126
+ featureDecisionOutputByTab.set("light", { kind: "feature_lightweight", reason: "One localized slice." });
127
+ featureCategoryByTab.set("complex", "complex-feature");
128
+ featureDecisionOutputByTab.set("complex", { kind: "feature_complex", reason: "Crosses two packages." });
129
+ featureCategoryByTab.set("legacy", "complex-feature");
130
+ featureDecisionOutputByTab.set("legacy", { kind: "feature_complex", reason: "" });
131
+ featureCategoryByTab.set("mismatch", "complex-feature");
132
+ featureDecisionOutputByTab.set("mismatch", { kind: "feature_lightweight", reason: "One localized slice." });
133
+ `, context);
134
+ assert.equal(
135
+ context.featureDecisionOutputForTab("light"),
136
+ "Decision: Lightweight feature (feature_lightweight)\nReason: One localized slice.",
137
+ "lightweight output should stay readable and tab-scoped",
138
+ );
139
+ assert.equal(
140
+ context.featureDecisionOutputForTab("complex"),
141
+ "Decision: Complex feature (feature_complex)\nReason: Crosses two packages.",
142
+ "complex output should stay readable and tab-scoped",
143
+ );
144
+ assert.equal(
145
+ context.featureDecisionOutputForTab("legacy"),
146
+ "Decision: Complex feature (feature_complex)\nReason: The classifier reported feature_complex without a reason.",
147
+ "legacy exact-label state should render the deterministic fallback reason",
148
+ );
149
+ assert.equal(context.featureDecisionOutputForTab("mismatch"), "", "a category/decision mismatch must not open a popup");
150
+ assert.equal(context.featureDecisionOutputForTab("missing"), "", "a tab must not inherit another tab's decision");
151
+
152
+ const openSource = functionSource("openFeatureDecisionDialog");
153
+ assert.match(openSource, /const tabId = activeTabId;[\s\S]*featureDecisionOutputForTab\(tabId\)[\s\S]*textContent = output;[\s\S]*dialog\.showModal\(\)/, "popup opening should resolve and render only the active tab's exact output");
154
+ assert.doesNotMatch(app, /featureDecisionDialogOutput\.innerHTML/, "classifier reason text must never reach innerHTML");
155
+ assert.match(functionSource("handleFeatureDecisionOutputStatus"), /parseFeatureDecisionPayload\(statusText\)[\s\S]*featureDecisionOutputByTab\.set\(tabId, decision\);\s*else featureDecisionOutputByTab\.delete\(tabId\)/, "status handling should store only parsed decisions and drop rejected payloads");
156
+ assert.match(openSource, /featureDecisionDialogCloseButton\?\.focus/, "popup opening should place focus on its explicit close control");
157
+ assert.match(app, /elements\.featureCategoryTag\?\.addEventListener\("click", openFeatureDecisionDialog\)/, "native click and keyboard button activation should open the popup");
158
+ assert.match(app, /function installDialogModalPrimitive\(dialog\)[\s\S]*trigger\.focus\(\{ preventScroll: true \}\)/, "native dialog close should return focus to the triggering category button");
159
+
160
+ const clearSource = functionSource("clearFeatureDecisionStateForTab");
161
+ assert.match(clearSource, /featureCategoryByTab\.delete\(tabId\);\s*featureDecisionOutputByTab\.delete\(tabId\);[\s\S]*closeFeatureDecisionDialog\(\{ restoreFocus: false \}\)/, "lifecycle cleanup should clear both maps and close the affected popup");
162
+ assert.match(functionSource("handleFeatureCategoryStatus"), /else clearFeatureDecisionStateForTab\(tabId\)/, "clearing or rejecting a category should defensively clear exact output");
163
+ assert.match(functionSource("setActiveTabId"), /nextTabId !== activeTabId[\s\S]*closeFeatureDecisionDialog\(\{ restoreFocus: false \}\)/, "switching tabs should close the prior tab popup");
164
+ assert.match(functionSource("syncTabMetadata"), /clearFeatureDecisionStateForTab\(tabId\)/, "closed-tab metadata cleanup should remove decision state");
165
+ assert.match(functionSource("closeTerminalTabs"), /clearFeatureDecisionStateForTab\(id\)/, "explicit tab closure should remove decision state");
166
+ assert.match(app, /case "webui_connected":[\s\S]*clearFeatureDecisionStateForTab\(connectedTabId, \{ render: true \}\)[\s\S]*scheduleForegroundReconcile\("event stream reconnect", 0\)/, "reconnect should clear local state before authoritative replay");
167
+ assert.match(app, /statusKey === FEATURE_DECISION_OUTPUT_STATUS_KEY[\s\S]*handleFeatureDecisionOutputStatus[\s\S]*return;[\s\S]*statusKey === FEATURE_CATEGORY_STATUS_KEY[\s\S]*return;[\s\S]*statusEntries\.set/, "both feature statuses should be intercepted before generic footer storage while preserving category handling");
168
+
169
+ assert.match(html, /\/styles\.css\?v=98/, "integrated stylesheet changes should advance the cache query");
170
+ assert.match(html, /\/app\.js\?v=112/, "integrated app changes should advance the cache query");
171
+
172
+ console.log("feature decision-output popup static checks passed");