Skip to content

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

docs(projects): sync archived project spec mirrors

vastsa6f2da12cb566
diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.md
index 8328aa6ec..7459ee380 100644
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@ -17838,7 +17838,7 @@ host-created files. The full app's file-preview viewer is covered separately.
session refreshes leave the archive state unchanged. Reopening the same
folder reuses the existing group without duplicating project or session data.
- **Specs linked**: `04-ux/06-settings-ia.md`,
- `04-ux/09-interaction-patterns.md`, ADR 0294, D658, issue #1653.
+ `04-ux/09-interaction-patterns.md`, ADR 0294, D659, issue #1653.
- **Acceptance**: Renderer project activation restores the normalized path's
local archive metadata only after the host project activation succeeds.
- **Status**: Source-contract coverage in
diff --git a/docs/spec/08-meta/decisions-log.md b/docs/spec/08-meta/decisions-log.md
index d7529e3a7..427e3a201 100644
--- a/docs/spec/08-meta/decisions-log.md
+++ b/docs/spec/08-meta/decisions-log.md
@@ -51,7 +51,7 @@ This log freezes previously open questions into concrete decisions.
| D655 | Cloud sync opens in packaged builds as Experimental | **Amend D649: remove the packaged-build visibility gate from Settings `sync` and restore its `Experimental` badge on the rail row and page title. Cloud sync and Remote Hosts are both available in packaged and development builds with Experimental badges. The S3 sync behavior, protocol, Host schema, and persisted data are unchanged. See `04-ux/06-settings-ia.md`, `03-runtime/22-config-sync.md`, and E2E-CONFIG-SYNC-s3-portable-configuration.** | The existing encrypted backup is useful to packaged-build users; the Experimental badge communicates its current maturity without keeping the feature hidden. |
| D656 | Quarantine appends the host keeps refusing instead of stalling the outbox | **Amend ADR 0041 / D318 / D444 / D597: an append whose `session.appendMessage` or `session.recordUsage` call fails with an error the outbox cannot classify as a duplicate message id, a `PERMISSION_DENIED:` poison row, or a foreign-key orphan is retried on a bounded backoff (5s, doubling to a 60s cap) instead of ending the flush. The fifth consecutive failure on that head moves it into an application-owned dead-letter file, `session-message-outbox.dead-letter.json`, with its payload, session id, quarantine timestamp, and host error; only the newest 256 quarantined appends are kept, and the oldest is discarded with a warn. The flush then continues with the next entry, so one refused append can no longer hold the FIFO head, fill the 1024-entry cap, or fail every session's writes. Quarantined appends are never replayed automatically, and `session.delete` drops that session's quarantined appends too. No protocol version, storage schema, or queued-outbox format change.** | A `stream did not contain valid UTF-8` append stayed at the FIFO head for 14.8 hours while `session.persistence.outbox.is.full` fired 5990 times, so every session's appends failed until restart. Only three error classes had a drain, and every other error was treated as transient forever (#1560). |
| D657 | Let the embedded Browser open local files outside the workspace | **Amend ADR 0170: an explicit absolute path or `file:` URL may load any existing regular local file, and a local-file page may navigate to other existing local files. Relative inputs remain workspace-rooted; HTTP(S) pages retain only the prior in-workspace file-link allowance. Missing files, directories, and remote file authorities remain blocked. `BrowserPreview` and the sidecar keep their workspace-rooted resolver. The public `pi.browser.navigate` API follows this policy under the high-risk `browser.cdp` permission. See ADR 0328, E2E-059, `04-ux/08-component-spec.md`, and `05-security/01-security.md`.** | Users need to inspect local HTML outside a project, while workspace-scoped agent file tools and remote-page navigation must retain their existing boundary (#1627). |
-| D658 | Opening archived projects restores sidebar visibility | **Amend D093 / D455: successful explicit project activation clears that normalized path's renderer-local archived flag and persists it, so Open from Project archive, reopening the same folder through Add project, and opening a project session reveal the project in the home sidebar. Selecting a row for inspection and ordinary session refreshes do not alter archive state. No host/project/session storage or protocol change. See ADR 0294, E2E-264, and issue #1653.** | Reopening a project updated the active workspace but left its path-keyed archived presentation flag set, hiding the project from the sidebar after the user had explicitly opened it. |
+| D659 | Reopen archived projects in the sidebar | **Amend D093 / D455: successful explicit project activation clears the normalized path's renderer-local archived flag and persists it, so Open from Project archive, reopening the same folder through Add project, and opening a project session reveal the project in the home sidebar. Selecting a row for inspection and ordinary session refreshes do not alter archive state. No host/project/session storage or protocol change. See ADR 0294, E2E-264, and issue #1653.** | Reopening a project changed the active workspace but left its path-keyed archived presentation flag set, hiding it from the sidebar after the user explicitly reopened it. |
## B. Secondary implementation defaults
diff --git a/docs/zh-CN/spec/04-ux/06-settings-ia.md b/docs/zh-CN/spec/04-ux/06-settings-ia.md
index 105c0c3f4..e77a1acde 100644
--- a/docs/zh-CN/spec/04-ux/06-settings-ia.md
+++ b/docs/zh-CN/spec/04-ux/06-settings-ia.md
@@ -312,6 +312,7 @@ Token 用量**不是设置目的地**(D335 / ADR 0173)。已完成回合历
- 项目搜索还匹配会话标题。匹配的会话会使其所属项目留在索引中;
打开该项目后按最新活动列出匹配会话,以 8 条一批显示,而不是截断历史
- 激活项目或项目会话返回聊天;归档和关闭仍使项目归档页保持打开
+- 明确打开已归档项目会清除渲染层归档状态,使其重新显示在主页侧边栏;仅选择详情行进行检查不会恢复项目
### 云同步
diff --git a/docs/zh-CN/spec/04-ux/09-interaction-patterns.md b/docs/zh-CN/spec/04-ux/09-interaction-patterns.md
index 612f1fbae..f08493d3d 100644
--- a/docs/zh-CN/spec/04-ux/09-interaction-patterns.md
+++ b/docs/zh-CN/spec/04-ux/09-interaction-patterns.md
@@ -181,8 +181,7 @@
#### 项目选项卡生命周期
-1. **打开** — 从“设置”→“项目存档”中选择一个项目,或者选择器添加其项目
- 保留集的标准化路径并激活它。现有选项卡保留。
+1. **打开** — 从“设置”→“项目归档”或选择器明确激活项目时,将其标准化路径加入保留集并激活。若项目已归档,激活会清除该路径的归档展示状态,使其重新显示在主页侧边栏;仅在归档页选中行而未激活不会恢复。现有选项卡保留。
2. **激活** — 选择不同的组调用现有的 `project.set`
桥。然后,它的路径驱动顶栏标识、活动工作区状态,以及
新任务范围。
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.md
index 69d58c90c..44a7404d2 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
@@ -9646,3 +9646,16 @@ host-created files. The full app's file-preview viewer is covered separately.
- **步骤:**为目录发布 1M 的模型保存 500K 用户额度。打开 Composer 模型列表,然后发送一条简短消息并检查上下文用量。对目录管理的额度以及模型发现不可用的情况重复验证。
- **预期:**用户配置的模型行和上下文检查器显示 500K;目录管理的额度跟随已发布值;没有发现信息的已配置模型仍显示保存的额度。模型选择保持不变。
- **状态:**`apps/desktop/test/composer-models.test.mjs` 自动覆盖用户覆盖值、目录继承值及发现不可用时保留额度;完整的“保存 → 模型列表 → 发送消息 → 上下文检查器”路径仍需手动验证。
+
+### E2E-264:重新打开归档项目后恢复侧栏显示
+
+- **前提条件**:本地文件夹已有持久项目组,且可通过渲染层侧边栏偏好归档。
+- **步骤**:
+ 1. 归档项目,确认它从默认侧边栏隐藏,但仍可在“设置”→“项目归档”中找到。
+ 2. 点击项目归档页中的“打开”。
+ 3. 再次归档,打开“添加项目”,选择同一目录并创建。
+ 4. 再次归档,从项目归档页打开其会话。
+- **预期**:每次激活成功后都会清除该路径的归档展示状态、返回聊天并使项目重新显示在侧栏。仅选中详情行而不激活、普通会话刷新都不会更改归档状态。重新选择同一目录会复用现有项目组,不会复制项目或会话数据。
+- **关联规格**:`04-ux/06-settings-ia.md`、`04-ux/09-interaction-patterns.md`、ADR 0294、D659、issue #1653。
+- **验收**:仅在 Host 项目激活成功后,渲染层才恢复该规范化路径的本地归档元数据。
+- **状态**:`apps/desktop/test/app-store-sidebar.test.mjs` 与 `apps/desktop/test/project-create-dialog.test.mjs` 有源码契约覆盖;完整 UI 场景仍为草稿,仅在明确请求且环境可用时运行。
diff --git a/docs/zh-CN/spec/08-meta/decisions-log.md b/docs/zh-CN/spec/08-meta/decisions-log.md
index e3dfeb009..3fa8efe6d 100644
--- a/docs/zh-CN/spec/08-meta/decisions-log.md
+++ b/docs/zh-CN/spec/08-meta/decisions-log.md
@@ -53,6 +53,7 @@
| D655 | 云同步在打包版开放并标记为实验性 | **修订 D649:移除设置中 `sync` 目的地的打包构建门控,并在导轨行与页面标题恢复实验性徽章。云同步和远程主机在开发版与打包版中均可使用,并带有实验性标签。S3 同步行为、协议、Host schema 与持久化数据不变。见 `04-ux/06-settings-ia.md`、`03-runtime/22-config-sync.md` 与 E2E-CONFIG-SYNC-s3-portable-configuration。** | 已实现的加密云备份对打包版用户同样有用;实验性标签可以说明其成熟度,而无需继续隐藏功能。 |
| D656 | 隔离宿主持续拒绝的 outbox 追加,避免整队停摆 | **修订 ADR 0041 / D318 / D444 / D597:当 `session.appendMessage` 或 `session.recordUsage` 返回的错误无法归类为重复消息 ID、`PERMISSION_DENIED:` 毒行或外键孤立行时,不再结束本次 flush,而是在同一 Host 代内按有界退避重试(5 秒起、翻倍、上限 60 秒)。同一队头连续第五次失败后,该追加被移入应用自有的死信文件 `session-message-outbox.dead-letter.json`(保留载荷、sessionId、隔离时间与宿主错误;只保留最新 256 条,超出丢弃最旧并记 warn),随后继续排空后续条目,因此单条被拒追加不再长期占用 FIFO 队头、填满 1024 条上限或导致所有会话写入失败。Host 重启属于新代,会立即重试该队头。隔离条目永不自动重放,`session.delete` 会连同该会话的隔离条目一起删除。协议版本、存储架构与队列文件格式均不变。** | 一条 `stream did not contain valid UTF-8` 追加在队头滞留 14.8 小时,期间 `session.persistence.outbox.is.full` 触发 5990 次,导致所有会话的写入直到重启前全部失败;此前只有三类错误有排空出口,其余错误被永久当作瞬时错误(#1560)。 |
| D657 | 让内置浏览器打开工作区外的本地文件 | **修订 ADR 0170:通过绝对路径或 `file:` URL 可打开任意已存在的本地普通文件,本地文件页面也可导航到其他已存在的本地文件。相对输入仍以工作区为根;HTTP(S) 页面只保留此前工作区内文件链接的权限。缺失文件、目录与远程文件 authority 仍被阻止。`BrowserPreview` 与 sidecar 继续使用工作区根解析。公开的 `pi.browser.navigate` API 在高风险 `browser.cdp` 权限下采用相同策略。见 ADR 0328、E2E-059、`04-ux/08-component-spec.md` 与 `05-security/01-security.md`。** | 用户需要检查项目外的本地 HTML,而工作区范围内的 Agent 文件工具和远程页面导航仍须保留原有边界(#1627)。 |
+| D659 | 重新打开归档项目后恢复侧栏显示 | **修订 D093 / D455:成功明确激活项目时,清除该规范化路径的渲染层归档标记并持久化,使用户从「项目归档」点击「打开」、通过「添加项目」再次选择同一目录,或打开项目会话后,都能在主页侧边栏看到该项目。仅选择归档详情行而未激活,以及普通会话刷新,都不改变归档状态。不更改 Host/项目/会话存储或协议。见 ADR 0294、E2E-264 与 issue #1653。** | 用户明确重新打开项目后,活动工作区虽已切换,但按路径存储的归档展示标记仍在,导致项目从侧栏隐藏。 |
## B. 辅助实现默认值