Skip to content

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

Merge upstream/main into feat/fast-mode-1657

zszz3b031d9a85d4d
diff --cc docs/spec/03-runtime/04-data-storage.md
index d225185cd,004f687a8..dae3d391c
--- a/docs/spec/03-runtime/04-data-storage.md
+++ b/docs/spec/03-runtime/04-data-storage.md
@@@ -1639,16 -1643,9 +1645,16 @@@ truncating at a guessed position
- **Schema v22 is additive.** It replaces `idx_sessions_updated` with
`idx_sessions_updated_id(updated_at DESC, id DESC)` for session-list ordering.
It changes no rows or persisted fields; a v21 backup precedes the migration.
- - **Schema v23 is additive.** It adds `sessions.title_source` and classifies
- existing placeholder titles as `default`; every other existing title is
- preserved and classified as `manual`. The migration keeps a v22 backup.
+ - **Schema v23 is additive.** It adds `sessions.title_source` with default
+ `legacy`. Pre-existing v22 titles remain `legacy`, safely protecting deliberate
+ renames from automatic replacement. The migration keeps a v22 backup.
+- **Schema v24 is additive.** It adds the `worktrees` registry and
+ `projects.worktree_setup_command` for isolated sessions (ADR 0329). The
+ migration keeps a v23 backup.
+- **Schema v25 is additive.** It adds `sessions.fast_mode` (ADR 0334), the
+ session `/fast` switch, defaulting to `0` for every existing session. Forks
+ copy it; scheduled runs and delegated workers start at `0`. The migration
+ keeps a v24 backup.
- **Schema v14 is additive.** It adds nullable `sessions.deleted_at`, the
partial deletion index, and `session_import_origins`. Existing sessions stay
active and have no origin rows. The migration runs in the same guarded
diff --cc docs/zh-CN/spec/03-runtime/04-data-storage.md
index 5fd18f45a,3ec3db405..f9c188209
--- a/docs/zh-CN/spec/03-runtime/04-data-storage.md
+++ b/docs/zh-CN/spec/03-runtime/04-data-storage.md
@@@ -1188,15 -1186,10 +1188,15 @@@ outbox 排空。渲染器侧的停止�
- **架构 v17 是增量的。** 它增加可为空的 `providers.owner_plugin_id` 归属列及其部分索引
(ADR 0259),从而把插件在 `contributes.providers` 中声明的 provider 行与用户创建的行区分开
—— 所有 v17 之前的行保持 NULL 归属。该步骤之前保留 `pi.sqlite.v16.bak` 副本。
- - **架构 v23 是增量的。** 它增加 `sessions.title_source`,并将现有占位标题归类为
- `default`;其余现有标题保持原样并归类为 `manual`。迁移前保留 v22 备份。
+ - **架构 v23 是增量的。** 它增加 `sessions.title_source`,默认值为 `legacy`。已有
+ v22 标题保留为 `legacy`,防止主动重命名被自动覆盖。迁移前保留 v22 备份。
v15→v16 会话协作步骤现在写入 `16`(它自己的版本)而不是最新的架构常量,
因此 v15 文件可以在一次启动中走完两个步骤。
+- **架构 v24 是增量的。** 它为隔离会话增加 `worktrees` 登记表和
+ `projects.worktree_setup_command`(ADR 0329)。迁移前保留 v23 备份。
+- **架构 v25 是增量的。** 它增加 `sessions.fast_mode`(ADR 0334),即会话的 `/fast`
+ 开关,所有已有会话默认为 `0`。fork 会复制该值;定时任务运行和委托子会话从 `0` 开始。
+ 迁移前保留 v24 备份。
- **架构 v7 首先到达 v8,然后使用受保护的路径。** v7→v8
迁移之后是相同的受保护的 v8→v15 迁移;架构-v9 和
schema-v10 数据库采用相同的受保护路径并接收精确的可读数据