Skip to content

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

fix(chat): update preview routing assertion

vastsa52bf1ed50b7b
diff --git a/apps/desktop/test/open-http-url.test.mjs b/apps/desktop/test/open-http-url.test.mjs
index 5afb76ce1..92f5475f3 100644
--- a/apps/desktop/test/open-http-url.test.mjs
+++ b/apps/desktop/test/open-http-url.test.mjs
@@ -164,7 +164,7 @@ test("previewable transcript URLs follow the link-open setting", () => {
assert.match(previewSource, /import \{ openHttpUrl \} from "\.\.\/lib\/open-http-url"/);
assert.match(
previewSource,
- /target\.kind === "file" \? openFileRef\(target\.path\) : openHttpUrl\(target\.url\)/,
+ /target\.kind === "file"\s*\?\s*openFileRef\(target\.path,[\s\S]*?\)\s*:\s*openHttpUrl\(target\.url\)/,
);
});