Skip to content

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

Merge origin/main into codex/fix-hourly-task-update

vastsa5e00114a345d
diff --cc docs/spec/06-delivery/04-e2e-test-plan.md
index 25e85f5ab,19f5202ce..0aa54929f
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@@ -7929,7 -7929,7 +7929,8 @@@ identify the platform validation still
| Acceptance | Scenarios |
|---|---|
+| C / F — Hourly task updates | E2E-SCHEDULED-manual-to-hourly |
+ | C / F / Quality — Saved project isolation | E2E-SCHEDULED-manual-workspace-binding |
| C / F / Quality — Desktop automations | E2E-SCHEDULED-desktop-automation-lifecycle |
| A / C — Unicode stdio framing | E2E-RPC-unicode-separators |
| C / G / Quality — Plugins navigation | E2E-NAV-plugins-button-goes-back |
@@@ -14288,17 -14288,19 +14289,34 @@@ the latest destination. These assertion
- **Coverage**: `chat-links.test.mjs`; native desktop click-through with the normal browser destination.
- **Specs linked**: `04-ux/08-component-spec.md` §8.3.
+### E2E-SCHEDULED-manual-to-hourly
+
+- **Preconditions:** Built host candidate, isolated data directory, no provider.
+- **Steps:** Through `tools.execute`, create a paused Manual task, update only
+ its id and cadence to Hourly, rename it, restart, and list tasks again.
+- **Expected:** Update succeeds without calendar fields; the next occurrence is
+ one hour away. Prompt, paused state and saved configuration survive. Rename
+ does not reset the interval. RPC tests also cover required Daily/Weekly times
+ and retention of an existing custom schedule.
+- **Specs:** 04-ux/01-ui-ia §3.4.
+- **Acceptance:** C / F — task configuration and persistence.
+- **Milestone:** Maintenance.
+- **Status:** `node scripts/e2e-scheduled-hourly-update.mjs` exercises the real
+ Rust host, permission path, stdio and SQLite; no model inference or desktop UI.
++
+ ### E2E-SCHEDULED-manual-workspace-binding
+
+ - **Preconditions:** Built request candidate; isolated host data and two project
+ directories. No provider credentials or paid API.
+ - **Steps:** Create Manual and Hourly tasks in project A and without a project;
+ restart the host, switch to B, Run now, rename through the editor payload,
+ and Run now again.
+ - **Expected:** Each result session and edited task retain the original binding,
+ including no-project tasks. Legacy cadence-only tasks keep their previous
+ fallback until explicitly configured (covered by host RPC tests).
+ - **Specs:** 04-ux/01-ui-ia §3.4.
+ - **Acceptance:** Saved workspace binding across run, edit and restart.
+ - **Milestone:** Maintenance.
+ - **Status:** Automated by `node --experimental-strip-types
+ scripts/e2e-scheduled-workspace.mjs`, using production Electron dispatch and
+ real Rust/stdio/SQLite. Only external inference is replaced with an observer.
diff --cc docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
index 30d58c0ad,babd402d5..35e0ca654
--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
@@@ -5184,7 -5184,7 +5184,8 @@@ eleven-tool-round desktop paths are ver
| 验收 | 应用场景 |
|---|---|
+| C / F — Hourly task updates | E2E-SCHEDULED-manual-to-hourly |
+ | C / F / Quality — Saved project isolation | E2E-SCHEDULED-manual-workspace-binding |
| C / F / Quality — 桌面定时任务 | E2E-SCHEDULED-desktop-automation-lifecycle |
| A / C — Unicode stdio 成帧 | E2E-RPC-unicode-separators |
| C / G / Quality — Plugins navigation | E2E-NAV-plugins-button-goes-back |
@@@ -8459,17 -8459,19 +8460,34 @@@ the latest destination. These assertion
- **覆盖**:`chat-links.test.mjs`;桌面端通过正常浏览器目标实际点击验证。
- **链接规格**:`04-ux/08-component-spec.md` §8.3。
+### E2E-SCHEDULED-manual-to-hourly
+
+- **Preconditions:** Built host candidate, isolated data directory, no provider.
+- **Steps:** Through `tools.execute`, create a paused Manual task, update only
+ its id and cadence to Hourly, rename it, restart, and list tasks again.
+- **Expected:** Update succeeds without calendar fields; the next occurrence is
+ one hour away. Prompt, paused state and saved configuration survive. Rename
+ does not reset the interval. RPC tests also cover required Daily/Weekly times
+ and retention of an existing custom schedule.
+- **Specs:** 04-ux/01-ui-ia §3.4.
+- **Acceptance:** C / F — task configuration and persistence.
+- **Milestone:** Maintenance.
+- **Status:** `node scripts/e2e-scheduled-hourly-update.mjs` exercises the real
+ Rust host, permission path, stdio and SQLite; no model inference or desktop UI.
++
+ ### E2E-SCHEDULED-manual-workspace-binding
+
+ - **Preconditions:** Built request candidate; isolated host data and two project
+ directories. No provider credentials or paid API.
+ - **Steps:** Create Manual and Hourly tasks in project A and without a project;
+ restart the host, switch to B, Run now, rename through the editor payload,
+ and Run now again.
+ - **Expected:** Each result session and edited task retain the original binding,
+ including no-project tasks. Legacy cadence-only tasks keep their previous
+ fallback until explicitly configured (covered by host RPC tests).
+ - **Specs:** 04-ux/01-ui-ia §3.4.
+ - **Acceptance:** Saved workspace binding across run, edit and restart.
+ - **Milestone:** Maintenance.
+ - **Status:** Automated by `node --experimental-strip-types
+ scripts/e2e-scheduled-workspace.mjs`, using production Electron dispatch and
+ real Rust/stdio/SQLite. Only external inference is replaced with an observer.