release: v2.0.10 工具结果摘要与动态上下文余量 - #49
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ant Code v2.0.10:工具结果摘要与动态上下文余量
发布日期:2026-09-10
这是面向长编程和数据分析任务的小版本更新。主会话达到配置的请求预算后,较旧工具结果改用模型批量摘要,替代固定字符裁剪;同时区分工具摘要和历史对话摘要,减少连续“聊天内容已压缩”提示造成的误解。本说明为发布候选记录,线上 CI、标签和 Release 状态以实际发布记录为准。
对用户工作流的直接变化
tool_result_read:主智能体可凭会话内的证据引用分页取回摘要前的工具文本。恢复会话后引用仍可使用;不同会话不能通过猜测引用直接读取彼此的证据。配置、数据与安全边界
.lab-agent/sessions/<session-id>.tool-evidence/,复用会话存储的加密、脱敏、保留期和删除机制;引用及最近 100 条摘要/预算诊断保存在会话元数据的transcript.toolSummaries。升级与产物位置
需要 Node.js 22.18+。源码安装更新后执行
npm ci、npm run verify:install;使用全局链接的用户可执行npm link。ant-code --version应显示2.0.10。完整重启 TUI/Dashboard,浏览器刷新以加载当前资源。已有配置和会话继续使用;历史上已裁剪或摘要丢失的内容不会自动恢复。新建的工具证据归档随对应会话清理,无需手动搬迁。审计产物仍由发布检查写入既有审计目录。
验证、限制与待完成门禁
verify:release通过:单元/集成 1,312 项、浏览器 37 项,均无失败或跳过;安装、网关兼容、资源一致性、发布封印和审计检查通过,额外跨进程持久化/后台任务套件通过。定向测试与完整套件存在重叠,不累计为独立覆盖。