Repository navigation
Conversation
…s, restore cache metrics and timings
…ssion-cumulative usage
…, preserve turn timings
… chips on subagent threads
This was referenced Sep 6, 2026
Closed
Closed
Author
|
验证矩阵补充(本地 Windows 环境):
|
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.
目的
批量修复本人提交的 issue #170–#181(均为 0.5.0 上经真实会话/代码级取证确认的缺陷)。每个 commit 对应一个包簇,保持可独立评审。
Issue → 修复映射
subagent.completed且 status=running 时改occupySpawn;autonomous 累加器记录 observedAtMs,回放时发turn.autonomous.started.startedAtMs/turn.completed.completedAtMs与 replay 时钟 item durationMs;host/projector 优先采用原生时间fix(claude-code)+ contract + host + protocol-corereadClaudeSubagentTranscript(原始 JSONL、文件序、全 user/assistant),作为readSubagentMessages默认源,SDK 读取降为回退fix(claude-code)HostTurnSnapshot增加 startedAtMs/completedAtMs、item durationMs(claude 主/子映射从 transcript timestamp 计算);projectHistoricalTurn输出真实时间;#refreshOpenSubagentThread按原生窗口铺排逐 item 时间;再水合保留 live 时长fix(claude-code)+fix(host-runtime)+fix(protocol-core)#updateTool/#completeTool对未知 callId 忽略而非抛错;容忍缺失 partialResult;isError 缺失=成功(live+history 极性统一);补 OMP 异步契约回归测试、改写 Pi 固化测试fix(pi,omp)HostImageInput/能力位input.image;hostrequestInput解析 text/image/localImage(5MiB 上限),无能力适配器降级为临时文件+路径文本;Claude 走 SDK content-block 图片;projector 回显 inputImage;revert 对未映射尾部 no-op、numTurns 按边界索引fix(host-runtime)+fix(claude-code)+fix(protocol-core)subagent标志,只读子线程隐藏交互式 chipfix(renderer-extension)getContextUsage().apiUsage回退;parseResultModelUsage累加 cache 计数器并提供累积 CH 回退;冷写(read=0&&create>0)不再锁存 0;projectCodexThreadUsage的 last.cached 透传(clamp)替代硬编码 0fix(claude-code)+fix(protocol-core)#consumeHarnessOutputsper-output try/catch:合成 failed terminal、清理 running/activeTurnId/gates、解决 pending 交互、继续 drain;回归测试fix(host-runtime)#finish后void #refreshCredits;credits TTL 60s;settle 重读失败不翻转成功 turn;cancel 立即发 interaction.closedfix(grok,opencode)fix(antigravity,deepseek)fix(antigravity,deepseek)验证
npm run typecheck、npm run lint(含 check-boundaries)全绿;改动文件 prettier 干净。npm run test:typescript:2517 passed / 3 failed / 19 skipped;3 个失败为harness-plugin-loader/ 插件加载 / remote-control 命名管道的既有并行负载 flake(改动前基线同样失败;三文件单独运行 47/47 全过;本 PR 未触碰插件加载与 remote-control 路径)。说明与遗留
renderer-draft-prewarm-policy.ts的"恰好一个 editor"不变量)未在本 PR 处理:链 1/2 修复后叠字与永久 spinner 已确定性消除,storm 仅影响间歇性;建议另立 change 评估。refreshUsage()(其余已暴露);antigravity CH 分母为 read/(input+read)(agy wire 无 cache-write 字段,已在usage.ts注释说明)。