Skip to content

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

Merge branch 'main' into fix/scheduled-calendar-intent-final

vastsa01bcf245c6e9
diff --cc docs/spec/03-runtime/06-host-rpc-protocol.md
index cf621b88a,51899cd58..aaa78ef0b
--- a/docs/spec/03-runtime/06-host-rpc-protocol.md
+++ b/docs/spec/03-runtime/06-host-rpc-protocol.md
@@@ -1212,6 -1212,6 +1212,9 @@@ a schedule. Update takes an existing I
unspecified configuration. Exact local times remain supported despite the
UI's four period presets. No new DB schema or transport is introduced.
+### Scheduled tasks: calendar intent
+
+The optional config_json.calendarConfigured boolean distinguishes an explicitly configured Daily/Weekly calendar from Hourly's internal schedule placeholder. Without the key, legacy Daily/Weekly schedules are treated as configured; legacy Hourly schedules retain their values but require an explicit schedule when converting to Daily/Weekly. Known calendar intent survives Hourly and restart, including midnight. Clearing or replacing the calendar with a different non-calendar placeholder clears intent. This additive extension needs no table/schema migration; older versions ignore it and cannot enforce the new conversion guard. Metadata-only edits and Manual-to-Hourly remain unchanged.
+ ### Scheduled tasks: workspace identity
+
+ Stored workspace bindings use the existing project canonicalization contract on both write and read. On Windows, slash direction, case, trailing separators and extended path prefixes do not hide a task from its own project's conversation. The distinction between missing legacy bindings and explicit null remains unchanged. Foreign-project tools cannot list or mutate bound tasks.
diff --cc docs/spec/06-delivery/04-e2e-test-plan.md
index 801da1fd5,881c33756..5404d2b37
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@@ -14403,8 -14454,8 +14454,13 @@@ the latest destination. These assertion
cover ownership, deletion, repeated/bounded forks, retained checkpoint paths,
expired inputs, rollback, and symlink rejection.
+### E2E-SCHEDULED-calendar-intent
+
+- **Scenario:** Calendar intent.
+- **Expected:** The optional config_json.calendarConfigured boolean distinguishes an explicitly configured Daily/Weekly calendar from Hourly's internal schedule placeholder. Without the key, legacy Daily/Weekly schedules are treated as configured; legacy Hourly schedules retain their values but require an explicit schedule when converting to Daily/Weekly. Known calendar intent survives Hourly and restart, including midnight. Clearing or replacing the calendar with a different non-calendar placeholder clears intent. This additive extension needs no table/schema migration; older versions ignore it and cannot enforce the new conversion guard. Metadata-only edits and Manual-to-Hourly remain unchanged.
+- **Automation:** `node --experimental-strip-types scripts/e2e-scheduled-calendar-intent.mjs` uses an isolated real Host and SQLite profile. Inference is not sent to a live provider.
+ ### E2E-SCHEDULED-paths
+
+ - **Scenario:** Workspace identity.
+ - **Expected:** Stored workspace bindings use the existing project canonicalization contract on both write and read. On Windows, slash direction, case, trailing separators and extended path prefixes do not hide a task from its own project's conversation. The distinction between missing legacy bindings and explicit null remains unchanged. Foreign-project tools cannot list or mutate bound tasks.
+ - **Automation:** `node --experimental-strip-types scripts/e2e-scheduled-paths.mjs` uses an isolated real Host and SQLite profile. Inference is not sent to a live provider.
diff --cc docs/zh-CN/spec/03-runtime/06-host-rpc-protocol.md
index 990457e84,429926cdb..ec18f0291
--- a/docs/zh-CN/spec/03-runtime/06-host-rpc-protocol.md
+++ b/docs/zh-CN/spec/03-runtime/06-host-rpc-protocol.md
@@@ -987,11 -987,8 +987,16 @@@ Host 重新检查会话的持久化模�
每天/每周自动任务需 schedule。修改使用已存在的 ID 并保留未指定字段。界面虽只提供四个
时段,工具仍支持具体本地时间。不新增数据库 schema 或传输协议。
+### 定时任务:日历配置意图
+
+可选的 `config_json.calendarConfigured` 布尔值用于区分用户明确设置的每日/每周
+日历时间与 Hourly 的内部占位 schedule。缺少该字段时,旧版 Daily/Weekly
+任务视为已设置日历;旧版 Hourly 保留现有值,但转换为 Daily/Weekly 时必须明确
+提供 schedule。已确认的日历配置在切换为 Hourly 和重启后仍会保留,包括午夜。
+清空日历或改为不同的非日历占位值会清除该意图。该扩展不修改表结构;旧版本会
+忽略该字段,无法执行新的转换保护。仅修改元数据以及 Manual 转 Hourly 的行为不变。
+ ### 定时任务:工作区身份
+
+ 保存和读取工作区绑定时统一使用现有项目路径规范化规则。在 Windows 上,
+ 斜杠方向、大小写、末尾分隔符和扩展路径前缀的差异不会再让同项目会话看不到任务。
+ 缺失的旧版绑定与显式 null 仍保持不同语义;其他项目的工具不能查询或修改绑定任务。
diff --cc docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
index f7ca9ad67,4efb27119..31f663264
--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
@@@ -8564,12 -8595,11 +8595,19 @@@ the latest destination. These assertion
- **验收 / 里程碑**:C、Quality / M6+。
- **状态**:组件与状态层用户路径由 `queue-pending-actions.test.mjs` 覆盖。
+### E2E-SCHEDULED-calendar-intent
+
+- **场景**:日历配置意图。
+- **预期**:可选的 `config_json.calendarConfigured` 区分明确设置的每日/每周
+ 日历时间与 Hourly 内部占位 schedule。旧版 Daily/Weekly 保留日历语义;
+ 旧版 Hourly 转换时必须明确提供 schedule。已知配置可跨 Hourly 与重启保留,
+ 包括午夜;仅修改元数据以及 Manual 转 Hourly 的行为不变。
+- **自动化**:`node --experimental-strip-types scripts/e2e-scheduled-calendar-intent.mjs`
+ ### E2E-SCHEDULED-paths
+
+ - **场景**:工作区身份。
+ - **预期**:保存和读取工作区绑定时统一使用现有项目路径规范化规则。Windows
+ 路径的斜杠方向、大小写、末尾分隔符和扩展路径前缀差异不影响同项目会话;
+ 缺失的旧版绑定与显式 null 保持不同语义,其他项目不能查询或修改绑定任务。
+ - **自动化**:`node --experimental-strip-types scripts/e2e-scheduled-paths.mjs`
使用隔离的真实 Host 与 SQLite 配置,不向真实提供商发送推理请求。