Kernel v0.16.2 · TUI/Portal v0.10.5
可靠性补丁:更安全的迁移、更清爽的摘要与更稳的发布链路
这次成对补丁发布收口 7 月可靠性批次:schema 关键迁移失败会明确中止而不再推进半成状态,`lingtai clean` 会保护存活 agent,全局配置写入改为原子写;kernel 侧也补齐了更清晰的摘要、manual 与通知契约,方便长任务 agent 稳定运行。
升级 / runtime
普通用户升级仍以 TUI/Homebrew 路径为主。PyPI 0.16.2 已发布,作为项目虚拟环境的 runtime 包来源与校验点。
新功能与改进
-
01
更安全的 TUI 状态转换
TUI 侧重点是保护用户项目,不让半写入和误清理把工作目录带入危险状态。
- schema 关键迁移 m028/m030/m039 现在会传播真实的转换、读取、写入失败,不再在半失败后推进已存版本号。
-
lingtai clean在发现存活/可恢复 agent,或 agent 探测失败时,会拒绝删除.lingtai/,除非操作者明确使用--force。 - 全局
config.json、tui_config.json与.env写入改为 sibling-temp、fsync、rename、清理和权限保留的原子流程。
为什么重要:项目状态要么完整前进,要么带着证据失败;清理命令绝不能静默擦掉正在运行的网络。
-
02
更清晰的 setup、Codex 与操作反馈
多项较小的 TUI 改动把失败暴露在操作者可以处理的界面层。
- Codex OAuth / pool 凭证现在有更清楚的账号标签与 fallback 文件名。
- first-run 配置保存、recipe re-apply、preset 加载原因、updater 已是最新版等状态会更直接地暴露出来。
- UI 增加 API call 分组、Ctrl+End 跳到尾部覆盖、knowledge 刷新、异步 home telemetry 与网络活动证据。
为什么重要:setup 失败时,最快的修复方式是准确的界面信息,而不是再去翻隐藏日志。
-
03
Kernel 摘要与 manual 契约
kernel v0.16.2 继续补强长驻 agent 所需的 progressive-disclosure 基础。
- daemon / glob 结果纳入摘要流,并补上更明确的 a-priori compression metadata 与文档。
- info / manual signpost action 拆开,工具可以把 runtime health 与 bundled manual 分开呈现。
- prompt section contract、adapt-from-evidence 指引、retention footprint report 与及时 transient
_meta过滤,减少陈旧或嘈杂上下文。
为什么重要:做发布这类长任务时,agent 需要保留证据,但不能把每段原始日志拖进后续上百次调用。
-
04
Daemon、MCP 与消息韧性
runtime 侧为委托执行与通知传递补上更明确的契约。
- Kimi native MCP config、父级 MCP 向 CLI backend 传播、daemon 架构文档,让委托代码/审核任务更可复现。
- Codex pool provider / preset 支持与外部 skill intake 文档让工具路由更明确。
- Telegram 持久通知/回复上下文与 LICC notification contract 降低跨消息面丢上下文的概率。
为什么重要:委托任务只有在父 agent 能重建发生了什么、为什么可发布时,才真正有价值。
-
05
发布窗口审计与贡献者
沿用上一版 release log 的结构,这条记录同时补齐实际 commit author,以及发布窗口内所有已关闭 issue 与 PR,包括未合并关闭的 PR、已分流或拒绝的问题。
- TUI/Portal:45 个 commit(39 个 @huangzesen、2 个 @TZZheng、4 个 @github-actions[bot]);关闭 20 个 PR(19 个合并、1 个未合并关闭)与 31 个 issue。
- Kernel:51 个 commit(29 个 @9s5bz2jvd2-lang、20 个 @huangzesen、2 个 @TZZheng);关闭 26 个 PR(20 个合并、6 个未合并关闭)与 15 个 issue。
- 发布窗口贡献者/作者:@huangzesen、@TZZheng、@9s5bz2jvd2-lang、@ZigongXu、@BrianLiubr、@888yzbt888。
为什么重要:贡献者名单刻意纳入发布窗口内的 issue/PR 作者,即使某个 issue 或 PR 最终被关闭、拒绝或未合并。
贡献者
感谢本发布窗口中提交代码、共同完成提交、参与 PR / review / assignment、报告或推动 issue closure 的贡献者。
验证
最终 release validation 来自干净 release worktree,commit kernel ae53b.
- TUI diff check passed with documented docs/stars/stars.csv CRLF caveat
- TUI Go tests targeted tests passed; full suite passed after known flaky rerun
- Portal validation web build and Go tests passed
- TUI/Portal release builds both binaries built successfully from the release candidate
- Kernel validation diff check, compileall, and pytest passed (3798 passed, 4 skipped)
- Kernel packaging build and twine check passed for wheel + sdist
- PyPI publication lingtai 0.16.2 uploaded and visible on PyPI
- Homebrew tap formula v0.10.5, SHA256 verified, ruby syntax and strict audit passed
- Release-window audit 96 commits and 92 closed items accounted: TUI/Portal 45 commits, 20 PRs, 31 issues; kernel 51 commits, 26 PRs, 15 issues; 6 human contributors/authors listed