Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
test(desktop): update transcript source guards
vastsa2a81a5c93aee
diff --git a/apps/desktop/test/transcript-disclosure-reading.test.mjs b/apps/desktop/test/transcript-disclosure-reading.test.mjsindex 3e0fe6886..69edc59b4 100644--- a/apps/desktop/test/transcript-disclosure-reading.test.mjs+++ b/apps/desktop/test/transcript-disclosure-reading.test.mjs@@ -91,7 +91,7 @@ test("holding a disclosure leaves follow without a delayed grab-back", () => {// on real input or an explicit re-pin, never by taking the bottom back later.assert.match(transcript,- /const releaseFollow = useCallback\(\(\) => \{\s*cancelFollowScroll\(\);\s*pinnedRef\.current = false;\s*setShowJump\(true\);/,+ /const releaseFollow = useCallback\(\(\) => \{\s*cancelReadingPosition\(\);\s*cancelFollowScroll\(\);\s*pinnedRef\.current = false;\s*setShowJump\(true\);/,);assert.match(transcript,@@ -117,7 +117,7 @@ test("real input, a new turn and every navigation drop the held position", () =>);assert.match(transcript,- /const jumpToLatest = useCallback\(\(\) => \{\s*releaseDisclosureAnchor\(\);\s*pinnedRef\.current = true;/,+ /const jumpToLatest = useCallback\(\(\) => \{\s*cancelReadingPosition\(\);\s*releaseDisclosureAnchor\(\);\s*pinnedRef\.current = true;/,);assert.match(transcript,diff --git a/apps/desktop/test/transcript-window.test.mjs b/apps/desktop/test/transcript-window.test.mjsindex 0953380f4..94b072d73 100644--- a/apps/desktop/test/transcript-window.test.mjs+++ b/apps/desktop/test/transcript-window.test.mjs@@ -204,7 +204,7 @@ test("the transcript bounds mounted history and escalates at the top", () => {assert.match(transcript, /growTranscriptWindow/);assert.match(transcript,- /const \[windowSize, setWindowSize\] = useState\(TRANSCRIPT_WINDOW_MIN\)/,+ /const \[windowSize, setWindowSize\] = useState\(savedReadingPosition\?\.windowSize \?\? TRANSCRIPT_WINDOW_MIN\)/,);// Reaching the top mounts more of what is loaded first, and only fetches an// older page once the window already covers it.@@ -237,7 +237,7 @@ test("the window is owned per session pane, so no switch can inherit a budget",// state, which is what makes it session-scoped. The reset effect that used to// unwind it on `sessionId` change must be gone: a pane that reset its own// window would throw away the history the user had already paged in.- assert.match(transcript, /const \[windowSize, setWindowSize\] = useState\(TRANSCRIPT_WINDOW_MIN\)/);+ assert.match(transcript, /const \[windowSize, setWindowSize\] = useState\(savedReadingPosition\?\.windowSize \?\? TRANSCRIPT_WINDOW_MIN\)/);assert.doesNotMatch(transcript,/setWindowSize\(TRANSCRIPT_WINDOW_MIN\);\s*\}, \[sessionId\]\)/,