Skip to content

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

test(transcript): align turn-process probe with Thinking defaults

v_wyxgwang60817a510958
diff --git a/scripts/e2e/turn-process.tsx b/scripts/e2e/turn-process.tsx
index 3f25c1133..7ee20cade 100644
--- a/scripts/e2e/turn-process.tsx
+++ b/scripts/e2e/turn-process.tsx
@@ -512,9 +512,16 @@ export async function turnProcessProbe() {
Boolean(container.querySelector(".tool-row.thinking")),
"turning show thinking back on restores the completed reasoning row",
);
+ click(processHeaders()[0] ?? null);
+ const restoredThinking = container.querySelector<HTMLElement>(
+ ".tool-row.thinking .tool-row-header",
+ );
+ if (restoredThinking?.getAttribute("aria-expanded") !== "true") {
+ click(restoredThinking);
+ }
check(
container.textContent?.includes("Reasoning before the answer"),
- "the restored row shows the retained reasoning text",
+ "the restored row shows the retained reasoning text when opened",
);
// Search reveal opens the process chunk that owns the named message.