Kernel v0.16.1 · TUI/Portal v0.10.4
总结重构、Portal 可靠性与更清晰的更新路径
这一组配套发布把 LingTai 的上下文重构语义讲清楚,补上更安全的 TUI/Portal 更新与 replay 路径,并继续修复日志、插件、MCP workbench 文档与安全卫生等运行时边缘问题。
升级 / runtime
升级 kernel 后,已有智能体应在安全边界 refresh,让新的 summarize/rebuild 提示与运行时指导生效。
新功能与改进
-
01
上下文重构语义显式化
Kernel v0.16.1 明确区分 summarize 立即记录什么、什么要等重构才生效,以及运行时何时强制重构。
- 公开的
system(action="summarize", rebuild=true)取代旧的 rebuild-only / dry-run 说法。 - summary 标记现在区分 pending/done,延迟重构何时真正生效更容易判断。
- 运行时把 0.75 主动提示、1.0 强制重构边界与 0.6 恢复目标放到同一套说明里。
为什么重要:长会话智能体现在可以更有把握地选择继续、应用 pending summaries,或直接凝蜕,而不是猜当前 provider context 里到底有什么。
- 公开的
-
02
运行时可靠性与集成边缘继续收紧
kernel 这轮还修复了 token accounting、日志、空响应、生命周期信号与 addon/MCP 文档等多个边缘。
- token usage 布局、since-molt 会话统计、cache-miss 遥测与 refresh rebuild opt-in 说明得到统一。
- JSONL close race、streamed tool-call argument fallback logging、空响应 usage 处理与 chat-history 原子写入都更稳。
- Telegram 动态 slash commands、WeChat 文件名清洗、生命周期/nirvana 防护、gitignore/secrets 卫生与 NoKV workbench metadata 验证一起落地。
为什么重要:这些变化减少了 live agent、持久日志与 prompt 指导对“刚刚发生了什么”理解不一致的情况。
-
03
TUI 与 Portal 的启动 / replay 路径更安全
TUI/Portal v0.10.4 重点收敛更新流程、Portal 启动清理、replay reconstruction,以及 UI/setup 的小型正确性修复。
- Portal startup timeout cleanup、replay-cache writer sharing 与
rehydrateDonedeadlock 修复提升 replay 可靠性。 -
/update-tui自更新命令、显式 utility refresh、runtime venv marker 与更严格的config.json权限让 setup/update 更安全。 - verbose toggle 后贴底、credential Esc 返回、canonical recipe preview resolvers、清理 inactive workflow、release docs 与 stars CSV whitespace 规范化则补齐 TUI 打磨。
为什么重要:这轮让本地开发安装路径更可预期,也让面向用户的启动与 replay 表面更不脆弱。
- Portal startup timeout cleanup、replay-cache writer sharing 与
-
04
发布窗口完成端到端审计
公开 release log 覆盖 kernel 与 TUI/Portal 两个仓库合计 84 个 commits、34 个 merged PR、7 月 1–3 日发布窗口内更新的 96 条 issue 记录,以及 136 个文件、+7,665 / -1,378 行代码变更。
- TUI/Portal:28 个 commits、12 个 merged PR、发布窗口内更新的 40 条 issue 记录、57 个文件、+1,798 / -583 行。
- Kernel:56 个 commits、22 个 merged PR、发布窗口内更新的 56 条 issue 记录、79 个文件、+5,867 / -795 行。
- 验证覆盖 TUI/Portal Go tests、portal web build、release binary builds、kernel compileall、400 个 focused pytest、package build、twine checks、PyPI verification 与 Homebrew audit/fetch。
为什么重要:贡献者名单刻意纳入发布窗口内的人类 issue/PR 作者,即使某个 issue 或 PR 最终被关闭、拒绝或未合并。
贡献者
感谢本发布窗口中提交代码、共同完成提交、参与 PR / review / assignment、报告或推动 issue closure 的贡献者。
验证
最终 release validation 来自干净 release worktree,commit kernel 69ce1.
- Release-window totals 84 commits; 34 merged PRs; 96 issue records updated Jul 1–3; 136 files changed; +7,665 / -1,378 lines
- TUI diff whitespace git diff --check v0.10.3...HEAD passed
- TUI tests cd tui && go test -count=1 ./... passed
- Portal web build cd portal/web && npm ci && npm run build passed
- Portal tests cd portal && go test -count=1 ./... passed
- TUI/Portal binaries make clean && make build passed for both binaries
- Kernel diff whitespace git diff --check v0.16.0...HEAD passed
- Kernel compile/test python -m compileall -q src tests; focused pytest set: 400 passed in 20.36s
- Kernel artifacts python -m build and python -m twine check dist/* passed
- PyPI lingtai 0.16.1 JSON and pip index verification passed
- Homebrew brew audit --strict --online and brew fetch passed for lingtai-tui v0.10.4