Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
Merge remote-tracking branch 'origin/main' into codex/pr1447-quit-archive-landing
vastsadf7f1460781c
diff --cc docs/spec/06-delivery/04-e2e-test-plan.mdindex b46f0a73b,ad338a39c..196e1c9f6--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@@ -16929,16 -16929,26 +16929,41 @@@ host-created files. The full app's filedefault-model-picker.test.mjs, and scripts/e2e-composer-model-selection.mjs.+ ## BOM-marked UTF-16 text tools++ - Create a UTF-16LE PowerShell build log with a BOM and CRLF, then ask the agent+ to Read it. The tool and the next model request contain readable log lines.+ - Edit a displayed line. The original BOM, endian and CRLF bytes are preserved.+ - Repeat with UTF-16BE Chinese text. Ordinary binary files remain rejected.+ - Automated coverage: `read_powershell_utf16le_log`,+ `read_and_edit_utf16be_chinese_text`, and the existing binary/CRLF tool tests.+++ ## Delegate mutation recovery isolation++ - Start two Task delegates editing the same file. Delegate A produces text and+ fails three Edits; B fails twice and then completes. A is failed with+ `MUTATION_RETRY_BUDGET_EXHAUSTED`, B completes, and the parent has no mutation+ error. Resume A with a corrected task and verify successful completion.+ - Run the same flow with failing shell patch commands. Repeat with one delegate+ to prove that text preceding exhaustion does not become a completed report.+ - While a delegate continues, a new parent prompt resets only the parent's+ recovery counters. Both default and explicit delegate permissions retain the+ same isolation.+ - Automated provider-boundary flow: `node scripts/e2e-subagent-edit-isolation.mjs`+ with optional `--single` and `--patch`; runtime tests cover parent restart.+++++## Regenerate archival during quit++- Regenerate a completed answer and quit as soon as the terminal event arrives.+ Restart the isolated profile: both revisions and their final messages remain+ readable, and no `host-core disposed` archival failure appears in the logs.+- Hold the archive RPC while requesting quit. Host disposal waits for successful+ archival; storage errors are logged. An unresponsive archive warns and allows+ quit after the existing two-second bounded wait.+- Automated coverage: `shutdown-regenerate-persistence.test.mjs` and+ `node scripts/e2e-regenerate-quit.mjs` (built Desktop, sidecar and host required;+ Playwright can be supplied through `PI_TEST_PLAYWRIGHT`). Only the model server+ is simulated in the Electron flow. The fixture profile and screenshots stay+ under `.artifacts/` for inspection; no user profile or paid model is used.