Repository navigation
v2.0.0-alpha.3
Pre-release
Pre-release
·
19 commits
to master
since this release
[Version: v2.0.0-alpha.3] - 2026-11-02
Full Changelog: v2.0.0-alpha.2...v2.0.0-alpha.3
发布范围
- ACP 2.0 Alpha 更新,新增可长期保留的上下文处理诊断机制,通过 GitHub Release 和 npm
alpha渠道分发。
新增功能
- 在现有 daily log 中记录结构化请求摘要,包含会话与请求标识、处理结果、总耗时、分阶段耗时及消息和压缩块数量,便于关联慢请求和失败位置。
- 提供仓库内只读日志汇总工具,支持按会话筛选、重复记录去重,以及 P50、P95、最大耗时和阶段热点统计。该工具不包含在 npm 包中。
缺陷修复
- 日志时间戳改为在调用时捕获,避免后续同步处理延迟时间戳,影响排查判断。
兼容性与升级前置条件
- 要求 OpenCode >=2.1.4 且 <3。
- 无新增配置字段,不改变压缩行为或持久化状态格式;继续使用现有
logLevel控制记录范围。 info记录请求完成摘要;debug额外记录开始与阶段轨迹。现有 debug 内容快照可能包含敏感信息,共享前请检查。
已知问题
- 本版本提供排查能力,尚未修复长历史会话的请求前等待问题,见 #34。
- 阶段耗时是经过时间,不代表独占 CPU 耗时;父子处理链存在重叠,不能相加。进程崩溃、卡死或日志写入失败时可能缺少完成记录。
[Version: v2.0.0-alpha.3] - 2026-11-02
Full Changelog: v2.0.0-alpha.2...v2.0.0-alpha.3
Release scope
- An ACP 2.0 Alpha update introducing persistent context-processing diagnostics, distributed through GitHub Release and the npm
alphachannel.
New features
- Record structured request summaries in the existing daily log, including session and trace IDs, outcomes, total and per-stage durations, and message and compression-block counts.
- Add a read-only repository tool for session filtering, deduplication, P50/P95/maximum durations, and stage hotspot summaries. The tool is not included in the npm package.
Fixes
- Capture log timestamps at invocation time so subsequent synchronous work does not delay timestamps and mislead investigations.
Compatibility and upgrade prerequisites
- Requires OpenCode >=2.1.4 and <3.
- No new configuration fields or changes to compression behavior or persisted state formats. Diagnostics use the existing
logLevel. inforecords completion summaries;debugadds request-start and stage breadcrumbs. Existing debug content snapshots may contain sensitive information; review logs before sharing.
Known issues
- This release adds diagnostic capabilities; it does not fix pre-request delays in long-history sessions. See #34.
- Stage durations measure elapsed time, not exclusive CPU usage. Parent and child lanes overlap and must not be added together. Crashes, hangs, or log-write failures may leave no completion record.