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'
vastsaaf44fd20246c
diff --cc docs/spec/06-delivery/04-e2e-test-plan.mdindex d57b4d7cd,f5eae1cd8..fd37cda7d--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@@ -13855,19 -13960,30 +13960,47 @@@ the latest destination. These assertionsupplement, but do not replace, real Chromium geometry and pointer checks.- **Status:** Implemented. Native Windows evidence; macOS/Linux not qualified.+### E2E-OUTPUT-CAP-716: Keep model requests inside the published context window++- **Preconditions:** A deterministic provider fixture exposes a published context+ window, supports parent and subagent requests, and records request payloads.+- **Steps:** Configure a user context override larger than the published window;+ send a CJK-heavy parent prompt, invoke a subagent, and run a one-shot+ completion. Repeat the parent request with `thinkingLevel: "omit"`.+- **Expected:** Each request carries a concrete output budget no larger than the+ remaining published window after input estimation and safety reserve. The+ runtime compacts against the published safety ceiling, and no request is sent+ with `input + output` beyond that ceiling. Small ASCII requests retain the+ configured budget when it fits.+- **Specs linked:** `03-runtime/02-agent-runtime.md`,+ `03-runtime/13-model-catalog-and-selection.md`+- **Acceptance:** F (runtime provider requests), C (chat and stream)+- **Status:** Unit-covered; deterministic provider fixture pending+++ ### E2E-PROVIDER-certificate-trust-and-terminal-errors++ - **Preconditions:** Built request candidate incorporating current `origin/main`,+ Electron installed, isolated test process/profile and loopback HTTPS fixture.+ No real provider, credentials, user profile, or OS certificate-store writes.+ - **Steps:** Run `node scripts/e2e-provider-certificates.mjs`. Launch the actual+ desktop sidecar and submit a chat prompt against an untrusted localhost+ certificate. Relaunch with its CA in `NODE_EXTRA_CA_CERTS`, then request the+ same certificate through a hostname absent from its SAN.+ - **Expected:** The child's default CA set includes system roots and extra CAs.+ The first request fails once with a non-retriable certificate error and no+ retry status; the trusted request returns text; the hostname mismatch still+ fails once. TLS and hostname verification remain enabled.+ - **UI:** Run `node scripts/e2e-provider-certificate-ui.mjs` for the real error+ component in isolated Chromium. Certificate errors get localized guidance;+ DNS and protocol errors retain the generic summary. Errno/raw details remain+ visible, and details can be closed and reopened. Optional+ `PI_CERTIFICATE_EVIDENCE_DIR` records a screenshot; `--baseline` uses the+ upstream error component with the same fixture and stylesheet.+ - **Lower-level coverage:** `provider-certificate-flow.test.ts` enters main+ session `prompt()` and delegate `run()` through real Agent/pi-ai wiring,+ with only the external fetch mocked. Both stop after one request and retain+ the certificate cause. Error classification and recovery suites cover direct,+ nested, flattened, non-certificate and wrapped certificate failures.+ - **Limits:** OS-root inclusion is checked without installing a root. The TLS+ success fixture uses a child-only extra CA; it does not reproduce a specific+ antivirus installation or claim native macOS/Linux verification.