Skip to content

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

chore(pr): merge latest main into IME Escape fix

yuxino54ba54aee6c9
diff --cc docs/spec/06-delivery/04-e2e-test-plan.md
index c91fcad1f,0aa54929f..75400dc8b
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@@ -14287,8 -14289,34 +14289,40 @@@ 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-IME-escape: Composition cancellation preserves drafts
+
+- **Steps**: Edit a user message; type a draft; dispatch composing Escape and Cmd/Ctrl+Enter. Open global search and dispatch composing Escape from its input. Repeat with legacy keyCode 229, then ordinary Escape and retry shortcuts.
+- **Expected**: Composition events neither discard the edit nor close search nor submit a retry. Ordinary Escape still cancels/closes, including search focus outside its input; ordinary Cmd/Ctrl+Enter still retries.
+- **Coverage**: `node scripts/e2e-ime-escape.mjs` exercises production components with bubbling DOM keyboard events and host-boundary fixtures. This does not verify an operating system IME candidate window.
++
+ ### 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 dde2801f3,35e0ca654..6757e35b3
--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
@@@ -8458,8 -8460,34 +8460,40 @@@ the latest destination. These assertion
- **覆盖**:`chat-links.test.mjs`;桌面端通过正常浏览器目标实际点击验证。
- **链接规格**:`04-ux/08-component-spec.md` §8.3。
+#### E2E-IME-escape: 取消组词保留草稿
+
+- **步骤**:编辑用户消息并输入草稿,派发组词中的 Escape 和 Cmd/Ctrl+Enter;打开全局搜索,从输入框派发组词中的 Escape。对 legacy keyCode 229 重复检查,再验证普通 Escape 和重试快捷键。
+- **预期**:组词事件不会丢弃编辑、关闭搜索或重试发送;普通 Escape 仍取消或关闭(包括搜索输入框之外的焦点),普通 Cmd/Ctrl+Enter 仍重试。
+- **覆盖**:`node scripts/e2e-ime-escape.mjs` 使用真实组件、冒泡 DOM 键盘事件及宿主边界测试数据;不代表已验证操作系统输入法候选窗口。
++
+ ### 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.