Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(chat): pin the empty-home gap check to the standalone rule

vastsa1c52ecaa53de
diff --git a/apps/desktop/test/interaction-polish.test.mjs b/apps/desktop/test/interaction-polish.test.mjs
index cef6c42db..038276c08 100644
--- a/apps/desktop/test/interaction-polish.test.mjs
+++ b/apps/desktop/test/interaction-polish.test.mjs
@@ -26,7 +26,9 @@ test("high-traffic chrome uses shared motion tokens on hover fills", () => {
});
test("empty-home stack gap stays within the 24px workstation ceiling", () => {
- const block = styles.match(/\.home-stack-inner\s*\{[^}]+\}/)?.[0] ?? "";
+ // The resizing override also mentions `.home-stack-inner`; pin the
+ // standalone rule so this check does not bind to `transition: none`.
+ const block = styles.match(/^\.home-stack-inner\s*\{[\s\S]*?\}/m)?.[0] ?? "";
assert.match(block, /gap:\s*(?:1[0-9]px|2[0-4]px)/);
assert.doesNotMatch(block, /gap:\s*2[5-9]px|gap:\s*[3-9]\dpx/);
});