Skip to content

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

Merge remote-tracking branch 'origin/main' into fix/pr-1047-landing

vastsaf633122a8e27
diff --cc docs/spec/08-meta/decisions-log.md
index 085348d9e,daa14330d..f86bf1070
--- a/docs/spec/08-meta/decisions-log.md
+++ b/docs/spec/08-meta/decisions-log.md
@@@ -7173,26 -7172,15 +7172,39 @@@ must keep splitting are covered by `mar
- Covered by `apps/desktop/test/update-preference.test.mjs`, the updated
`apps/desktop/test/auto-update.test.mjs`, and E2E-UPDATE-preference-and-once-only-reminder.
- ## 2026-09-27 — Routed model metadata uses conservative last-segment matching (D629, PR #1047)
+ ## 2026-09-26 — Bound aggregate image history without an arbitrary message cutoff (D629)
+
+ - Vision history restoration keeps the existing 10 MB per-image ceiling and adds
+ a 30 MB aggregate raw-byte budget per runtime rebuild. Eligible refs are
+ considered newest-first; every image remains a provider image block when the
+ history fits, and only older attachments beyond the budget fall back to a
+ safe `@path`. The current prompt row is excluded before hydration so it cannot
+ consume the history allowance.
+ - The sidecar reads only files admitted by the budget and clears stale transient
+ base64 from restored attachment objects. Durable host messages remain
+ metadata/ref-only. See ADR 0101, `03-runtime/01-ipc-protocol.md` §5.1,
+ `03-runtime/02-agent-runtime.md` §5c, and E2E-102j.
++
++## 2026-09-27 — Routed model metadata uses conservative last-segment matching (D630, PR #1047)
+
+- Supersede D622's broad catalog aliases for runtime enrichment. Compare only
+ the case-insensitive final `/` segment, so a routed or gateway wire ID can
+ reach a catalog row without treating arbitrary thinking, release-date,
+ deployment-marker, or vendor-dash suffixes as model identity.
+- When a leaf has multiple catalog candidates, select a unique official/source
+ provider only when its provider family agrees with an explicit model source;
+ otherwise borrow metadata only when all candidates expose identical
+ capabilities and thinking metadata. If neither rule proves identity, leave
+ the row unmatched. A known provider may still borrow the exact ID from other
+ publishers; unknown providers do not use unanchored consensus or marker
+ fallback.
+- Composer keeps the complete configured wire ID on model rows. Unmatched
+ models expose the canonical thinking ladder for manual opt-in, but start a
+ new draft/session at `off` unless an explicit binding default exists. An
+ empty binding level array is the generic unknown-model seed, not an explicit
+ disable; a non-empty binding override remains authoritative. Known catalog
+ matches retain the D303 binding-default/highest-enabled behavior.
+- The change is metadata/UI projection only: it does not rewrite persisted wire
+ IDs, provider identity, or host capability ownership. See
+ `03-runtime/13-model-catalog-and-selection.md` §11.3 and
+ `04-ux/08-component-spec.md` §11.
diff --cc docs/zh-CN/spec/08-meta/decisions-log.md
index a9dc2f3fc,a17e6eacd..3d8914985
--- a/docs/zh-CN/spec/08-meta/decisions-log.md
+++ b/docs/zh-CN/spec/08-meta/decisions-log.md
@@@ -5077,20 -5077,3 +5077,20 @@@ Markdown 源码,不是 `text/html` �
无需数据库迁移或 Host 协议版本变更。
- 覆盖:`apps/desktop/test/update-preference.test.mjs`、更新后的
`apps/desktop/test/auto-update.test.mjs` 与 E2E-UPDATE-preference-and-once-only-reminder。
+
- ## 2026-09-27 —— 路由模型元数据采用保守的末段匹配(D629,PR #1047)
++## 2026-09-27 —— 路由模型元数据采用保守的末段匹配(D630,PR #1047)
+
+- 取代 D622 中用于运行期补全的宽泛目录别名。只比较大小写不敏感的最后一个 `/` 段,
+ 让路由或网关 wire ID 可以命中目录记录,同时不再把任意 thinking、发布日期、部署标记
+ 或厂商短横线后缀当作模型身份。
+- 一个叶子对应多个目录候选时,只有官方/来源提供商的提供商族与显式模型来源一致才优先
+ 采用唯一官方命中;否则只有所有候选的能力和思考元数据完全一致时才借用。两条规则都
+ 无法证明身份时保持未匹配。已知提供商仍可从其他发布方借用完全相同的 ID;未知提供商
+ 不使用无锚点共识或部署标记兜底。
+- Composer 模型行保留完整的配置 wire ID。未匹配模型提供规范思考阶梯供手动启用,但
+ 新草稿/会话在没有显式绑定默认值时从 `off` 开始。空的绑定等级数组是未知模型的通用
+ 种子而不是显式禁用;非空 binding 覆盖仍然有效。目录命中的模型保留 D303 的绑定默认值
+ 与最高已启用档回退行为。
+- 该变化只影响元数据和 UI 投影,不改写持久化 wire ID、提供商身份或 host 能力归属。参见
+ `03-runtime/13-model-catalog-and-selection.md` §11.3 与
+ `04-ux/08-component-spec.md` §11。