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(settings): cover stale proxy draft restoration
vastsa95a405dda0ff
diff --git a/apps/desktop/test/settings-general.test.mjs b/apps/desktop/test/settings-general.test.mjsindex 41676560d..85916be18 100644--- a/apps/desktop/test/settings-general.test.mjs+++ b/apps/desktop/test/settings-general.test.mjs@@ -209,6 +209,11 @@ test("General Network card persists a custom HTTP or SOCKS5 proxy and the relaxenetworkProxySource,/settingsForInactiveProxyMode\(mode, saved, urlDraft, bypassDraft\)/,);+ assert.match(+ networkProxySource,+ /resolveCustomProxyUrl\(urlDraft, saved\.url\)/,+ );+ assert.match(networkProxySource, /url: resolved\.url/);// Fake-IP tolerance belongs to the network mode now, not to the proxy payload.assert.doesNotMatch(networkProxySource, /allowFakeIp/);assert.match(settingsSearchSource, /settings\.proxy/);diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.mdindex 295fec914..4b91fbdad 100644--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@ -13359,6 +13359,10 @@ are withdrawn with ADR 0165.System immediately without clicking elsewhere. Confirm `settings.get`retains the URL and Bypass while `mode` is `system`. Select Custom againand confirm both values return to the fields and `mode` is `custom`.+ With the valid URL saved, enter `not-a-proxy` and blur so the invalid+ draft remains visible. Switch to System and back to Custom; confirm the+ field returns to the remembered valid URL and `settings.get` still holds+ that URL instead of the built-in default.4. Click Test against a listening proxy. Confirm a Connected status. ClickTest against a closed port. Confirm a failure status without changingthe saved URL. Enter `http://user:[email protected]:<auth-port>` and