Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
fix(e2e): reset image candidates between locale passes
vastsad66b20cf7f38
diff --git a/scripts/e2e/image-generation-ui.tsx b/scripts/e2e/image-generation-ui.tsxindex 0bc2f1776..4815e5545 100644--- a/scripts/e2e/image-generation-ui.tsx+++ b/scripts/e2e/image-generation-ui.tsx@@ -113,6 +113,12 @@ globalThis.imageGenerationProbe = async () => {try {for (const locale of ["en", "zh-CN"]) {await i18n.changeLanguage(locale);+ // The scenario precondition is "no image model configured", so each locale+ // pass starts unmarked instead of inheriting the candidates the previous+ // pass saved: a marked model's checkbox reads as selected, not "Set as+ // image model", which is what this pass looks for.+ settings = { ...settings, imageGeneration: null, imageGenerationModels: null };+ flushSync(() => useAppStore.setState({ settings }));render();const defaultRow = container.querySelector<HTMLElement>(".model-default-row")!;const initialImageRow = [...container.querySelectorAll<HTMLElement>(".settings-row")].find(