Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
docs: retarget the scheduled-task execution ADR references to 0305
vastsa67222f5302a8
diff --git a/docs/adr/scheduled-desktop-automations.md b/docs/adr/scheduled-desktop-automations.mdindex 4d8286dac..8df2e0c88 100644--- a/docs/adr/scheduled-desktop-automations.md+++ b/docs/adr/scheduled-desktop-automations.md@@ -1,6 +1,6 @@# ADR: Desktop-owned automation dispatch with Host-owned schedules-- Status: Accepted for implementation; amended by ADR 0304+- Status: Accepted for implementation; amended by ADR 0305- Date: 2026-09-20## Context@@ -29,7 +29,7 @@ dispatches a turn, and scheduledListRuns exposes the existing run ledger.Automatic runs use the task's saved permission mode and default to Ask when thefield is absent. Ask runs may wait for a user in their result conversation;-selecting Auto is an explicit per-task choice under ADR 0304. Plan/Goal rejection+selecting Auto is an explicit per-task choice under ADR 0305. Plan/Goal rejectionremains. A saved provider/model pair is used when present; otherwise the appdefaults are resolved at execution time. Retain the task's project even when theforeground workspace changes.diff --git a/docs/spec/03-runtime/04-data-storage.md b/docs/spec/03-runtime/04-data-storage.mdindex 82377083d..92f2bdae4 100644--- a/docs/spec/03-runtime/04-data-storage.md+++ b/docs/spec/03-runtime/04-data-storage.md@@ -1053,7 +1053,7 @@ These additive values stay in `config_json`; no physical migration is required.Missing model fields retain run-time app-default resolution. Missing permissionkeeps legacy behavior: Ask for automatic runs and inherited permission for Run now.See [the automation ADR](../../adr/scheduled-desktop-automations.md) and-[ADR 0304](../../adr/0304-scheduled-task-execution-settings.md).+[ADR 0305](../../adr/0305-scheduled-task-execution-settings.md).Tasks also persist optional `thinkingLevel` using the existing session values(including `off` and `omit`). The full Composer model/reasoning picker anddiff --git a/docs/spec/03-runtime/06-host-rpc-protocol.md b/docs/spec/03-runtime/06-host-rpc-protocol.mdindex 4e485750a..504cf968e 100644--- a/docs/spec/03-runtime/06-host-rpc-protocol.md+++ b/docs/spec/03-runtime/06-host-rpc-protocol.md@@ -1219,7 +1219,7 @@ Desktop create/update may save `workspacePath`, `permissionMode` and a pairedvalues when present. Missing fields preserve legacy project capture, app-defaultmodel resolution and permission behavior. Invalid permission values and partialmodel pairs are rejected before mutation. Conversation tools do not expose these-fields and remain bound to the calling session's project. See ADR 0304.+fields and remain bound to the calling session's project. See ADR 0305.Tasks also persist optional `thinkingLevel` using the existing session values(including `off` and `omit`). The full Composer model/reasoning picker anddiff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.mdindex 411964bf3..619103d4d 100644--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@ -112,7 +112,7 @@renderer prompt. Host tests additionally prove duplicate admission rejection,stale/missed occurrence handling, invalid input rejection and recovery.- **Specs:** 04-ux/01-ui-ia §3.4; 03-runtime/04-data-storage §4.11;- ADR scheduled-desktop-automations; ADR 0304.+ ADR scheduled-desktop-automations; ADR 0305.- **Acceptance:** Scheduled task execution and recoverable run history.- **Milestone:** Post-MVP desktop automations.- **Status:** Automated in `node scripts/e2e-scheduled.mjs`; run against thediff --git a/docs/zh-CN/spec/03-runtime/04-data-storage.md b/docs/zh-CN/spec/03-runtime/04-data-storage.mdindex 87830a11b..1afc09689 100644--- a/docs/zh-CN/spec/03-runtime/04-data-storage.md+++ b/docs/zh-CN/spec/03-runtime/04-data-storage.md@@ -897,7 +897,7 @@ CREATE INDEX idx_task_runs ON task_runs(task_id, started_at DESC);自动运行继续使用 Ask,立即运行继续继承全局权限。每天、每周按宿主本地时区计算。每小时采用 `nextRunAt = now + 3_600_000`,忽略日历时间字段。可选 `weekdays` 保存 1–7 个不重复的 0–6 整数,覆盖每周的旧 `weekday`;缺失时保留单日语义,空数组、重复或越界值在写入前拒绝。无需表结构迁移。-无 `schedule` 的旧任务不会自动运行;无需修改表或迁移数据库。见 ADR 0304。+无 `schedule` 的旧任务不会自动运行;无需修改表或迁移数据库。见 ADR 0305。任务还可独立保存 `thinkingLevel`,取值与会话相同(包括 `off` 和 `omit`)。模型和推理等级直接复用主对话框的完整选择器及交互逻辑,仅将保存回调接到任务草稿。diff --git a/docs/zh-CN/spec/03-runtime/06-host-rpc-protocol.md b/docs/zh-CN/spec/03-runtime/06-host-rpc-protocol.mdindex bc92c41d1..10a3a3767 100644--- a/docs/zh-CN/spec/03-runtime/06-host-rpc-protocol.md+++ b/docs/zh-CN/spec/03-runtime/06-host-rpc-protocol.md@@ -992,7 +992,7 @@ Host 重新检查会话的持久化模式,按调用会话的项目限制访问桌面端 create/update 可为单个任务保存 `workspacePath`、`permissionMode` 和成对的`providerId`/`modelId`。立即运行与自动运行在字段存在时均使用这些值;字段缺失时保留旧版项目捕获、应用默认模型和权限行为。非法权限与不完整模型组合在写入前拒绝。对话工具不暴露-这些字段,仍限制在调用会话所属项目。见 ADR 0304。+这些字段,仍限制在调用会话所属项目。见 ADR 0305。任务还可独立保存 `thinkingLevel`,取值与会话相同(包括 `off` 和 `omit`)。模型和推理等级直接复用主对话框的完整选择器及交互逻辑,仅将保存回调接到任务草稿。diff --git a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.mdindex d8128e617..c1fd8ba41 100644--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md@@ -8438,7 +8438,7 @@ the latest destination. These assertions measure work counts, not device FPS.Agent sidecar;历史记录链接到持久化会话;自动执行不依赖渲染器发送提示词。宿主测试补充验证重复准入、错过时段、无效输入和重启恢复。- **规格:** 04-ux/01-ui-ia §3.4;03-runtime/04-data-storage §4.11;- ADR scheduled-desktop-automations;ADR 0304。+ ADR scheduled-desktop-automations;ADR 0305。- **验收:** 定时执行与可恢复的运行历史。- **里程碑:** MVP 后的桌面自动化。- **状态:** `node scripts/e2e-scheduled.mjs` 自动化覆盖;按 AGENTS.md 在任务候选