Repository navigation
fix: harden compaction, questions and session lifecycle - #55
Merged
Merged
Conversation
added 3 commits
October 30, 2026 00:14
Keep nonessential choices from blocking unattended work while preserving explicit permission and plan approvals. Retain timed-out cards for later answers and reject stale recovery snapshots so completed questions cannot reopen.
The Auto guard mistook Docker --rm and shutdown search patterns for host deletion and shutdown. Exclude only known text arguments and the Docker flag while retaining conservative checks for indirect execution, substitutions and real destructive commands.
Keep relocated project memory and creative assets reachable, and prevent concurrent memory or settings writes from discarding newer changes. Preserve terminal turn states, clean up crashes and disposed plan dispatchers, and keep project drafts and creative questions bound to their session. Retain conservative pipeline approval checks, preserve Hermes structured messages, and avoid unhandled TLS cancellation errors. Add regression coverage and document the project-wide review. Desktop tests pass with 4658 passed and 4 skipped; host-core has 1148 passed and 1 ignored.
Long sessions accumulated oversized summaries and inherited expensive reasoning while summary streams bypassed idle protection. Preserve essential handoff context with a soft size target, bounded effort, cancellable streams and truthful progress. Keep pending model settings visible and ordered until they take effect, preserving failure propagation for callers. Cover cancellation, truncated summaries, configuration races and narrow layouts with offline regressions.
Tell summarizers the existing generation budget so small-output models prioritize a complete handoff instead of aiming beyond their limit. Preserve the original input and output cap, and cover the 1024-token case.
This was referenced Oct 29, 2026
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.
改动
优化长会话压缩,并修复自动化会话在提问、审批和配置切换中的等待与状态误导;同时修复项目数据与运行生命周期问题。需求和验收分别记录为 R19 / V58、R20 / V59,缺陷记录 B-018–B-034。
--rm、普通搜索文本误报为破坏操作;未知下游执行器、真正危险命令仍保守询问。复用既有队列、权限、恢复和流式保护;无新依赖、数据库迁移或权限放宽。详细位置与边界见
docs/mc-agent/project-review-2026-10-30.md、docs/mc-agent/compaction-performance.md。更新说明(用户可见)
刻意未改
不自动安装更新,不改写历史会话或扩大工具权限;不进行大范围重构。摘要篇幅是软目标,Codex 路径不添加未经支持确认的输出参数。
验证
未调用真实付费模型、生产服务,未修改或升级正在运行的安装版。真实模型的摘要语义保真与实际加速幅度尚未验证;失败恢复不是完整原文回放。未进行大范围重构,复杂 shell 的既有保守审批保留。