Skip to content

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

chore: integrate current main for context capacity validation

vastsa56a2fa9d9715
diff --cc docs/spec/04-ux/08-component-spec.md
index e77a125c4,a53c6a3a4..508cbcaff
--- a/docs/spec/04-ux/08-component-spec.md
+++ b/docs/spec/04-ux/08-component-spec.md
@@@ -4742,6 -4742,6 +4742,10 @@@ historical context has an explicit expl
Remote Review retains its existing presentation. Chat inline review rows retain
their default layout and hash-guarded rollback; no Git or model behavior changes.
+ ### Issue #2162 correction
+
+ Closing the connected Browser tab clears its connection. Subsequent session-only tools use that session's selected replacement page. Explicit closed targets fail; navigation never revives an invisible old tab. Verify close/reopen/snapshot/fill/click/navigate and final closure with `browser-background-session.test.mjs` and `BROWSER_CLOSE_CONNECTION_ONLY=1 node scripts/e2e-browser-background.mjs`.
++
+### Issue #2164 correction
+
+While a checkpoint estimate supplies context occupancy, use its recorded provider/model capacity, or the current exact session binding for legacy checkpoints. Keep historical request usage unchanged. Unknown capacity is marked approximate. Verify 20,619 / 1,000,000 = 2%, unknown routes, legacy records and usage after a newer request with `compaction-context-usage.test.mjs`.
diff --cc docs/spec/06-delivery/04-e2e-test-plan.md
index 578d3b66a,723a4b05b..fbb80c4c9
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@@ -20342,6 -20356,14 +20356,18 @@@ Scenario: E2E-REVIEW-ROUNDS (local desk
failures separately from protocol success.
- Exercise a late stop with an already reaped child before the supervisor drains the pipes. Verify the original exit outcome, final output and stable elapsed time across reads. Stall capability discovery or the first Host observation to exercise the overall wait deadline. The Electron transcript fixture renders a pending Bash stop and a mixed job list.
+ #### E2E-ISSUE-1789
+
+ Image-model marking explains chat/default-menu exclusion and distinguishes generation from image input. Collapsed model rows retain an image-model badge. Verify marking, help, collapsing, unmarking and restored chat eligibility through `image-model-disclosure-user-path.test.mjs`.
+
+ #### E2E-ISSUE-2162
+
+ Closing the connected Browser tab clears its connection. Subsequent session-only tools use that session's selected replacement page. Explicit closed targets fail; navigation never revives an invisible old tab. Verify close/reopen/snapshot/fill/click/navigate and final closure with `browser-background-session.test.mjs` and `BROWSER_CLOSE_CONNECTION_ONLY=1 node scripts/e2e-browser-background.mjs`.
+
+ #### E2E-ISSUE-2163
+
+ Bounded tail pages include compactions appended after the last message. Middle pages still read only the active checkpoint and records inside their offsets. Verify append-message/append-compaction, tail reopening and Host restart with `scripts/e2e-compaction-tail.mjs` and `layout_tail_window` tests.
++
+#### E2E-ISSUE-2164
+
+While a checkpoint estimate supplies context occupancy, use its recorded provider/model capacity, or the current exact session binding for legacy checkpoints. Keep historical request usage unchanged. Unknown capacity is marked approximate. Verify 20,619 / 1,000,000 = 2%, unknown routes, legacy records and usage after a newer request with `compaction-context-usage.test.mjs`.
diff --cc docs/zh-CN/spec/04-ux/08-component-spec.md
index 814538fec,fdb1ae612..d0671fb71
--- a/docs/zh-CN/spec/04-ux/08-component-spec.md
+++ b/docs/zh-CN/spec/04-ux/08-component-spec.md
@@@ -3099,6 -3099,6 +3099,10 @@@ default nor provider configuration. OAu
项目删除说明和插件弹窗标题、安装结果中的长名称也在现有宽度内换行。
项目指令、项目记忆和 OAuth 弹窗维持已有的边界处理。
+ ### Issue #2162 修正
+
+ 关闭已连接浏览器标签时清除连接;会话级工具使用同一会话选中的替代页,显式已关闭目标仍失败,导航不复活不可见旧标签。验证关闭、重开、snapshot、fill、click、navigate 和最终关闭。
++
+### Issue #2164 修正
+
+压缩估算作为占用时使用检查点模型容量,旧检查点使用当前会话完整绑定;历史请求用量不变,未知容量标记估算。验证 20,619 / 1,000,000 为 2%、未知路由、旧记录及新请求恢复。
diff --cc docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
index efd3fa653,a84cc6093..918e091b6
--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
@@@ -10391,6 -10405,14 +10405,18 @@@ Electron 一侧——工具自动签发
- Host 测试覆盖先完成后等待、重复读取、Unicode 截断、归属查找、幂等停止与停止请求待确认。Windows 子孙进程清理测试仍须执行,原生失败单独报告。
- 在子进程已退出、监管任务尚未排空管道时请求停止,检查原退出结果、最终输出和重复读取的耗时。延迟能力探测或第一次 Host 观察,检查等待总时限。Electron 会话记录用例渲染尚待确认的 Bash 停止请求和混合作业列表。
+ #### E2E-ISSUE-1789
+
+ 生图标记说明聊天和默认菜单移除效果,并区分图片生成与输入;折叠行保留生图标记。通过真实组件验证标记、帮助、折叠、取消及恢复聊天资格。
+
+ #### E2E-ISSUE-2162
+
+ 关闭已连接浏览器标签时清除连接;会话级工具使用同一会话选中的替代页,显式已关闭目标仍失败,导航不复活不可见旧标签。验证关闭、重开、snapshot、fill、click、navigate 和最终关闭。
+
+ #### E2E-ISSUE-2163
+
+ 末尾分页包含最后一条消息之后追加的检查点,中间页仍只读取生效及页内记录。验证消息、压缩追加后读取及 Host 重启,最新检查点与上下文估算保留,历史用量不变。
++
+#### E2E-ISSUE-2164
+
+压缩估算作为占用时使用检查点模型容量,旧检查点使用当前会话完整绑定;历史请求用量不变,未知容量标记估算。验证 20,619 / 1,000,000 为 2%、未知路由、旧记录及新请求恢复。