Skip to content

fix: 子代理上下文统计对齐宿主 usage 口径 - #16

Merged
Hotakus merged 1 commit into
masterfrom
fix/align-usage-context
Aug 12, 2026
Merged

fix: 子代理上下文统计对齐宿主 usage 口径#16
Hotakus merged 1 commit into
masterfrom
fix/align-usage-context

Conversation

@Hotakus

@Hotakus Hotakus commented Aug 12, 2026

Copy link
Copy Markdown
Owner

功能

  1. 子代理上下文统计口径对齐 opencode 宿主底部 usage:取最后一条 output > 0 的 assistant 消息,合计 input + output + reasoning + cache.read + cache.write,使监控面板的「上下文」与子代理会话内底部信息显示一致

验证

  • tsc --noEmit 通过
  • npm run build 通过

@Hotakus Hotakus self-assigned this Aug 12, 2026
@Hotakus Hotakus added the bug Something isn't working label Aug 12, 2026
@Hotakus
Hotakus merged commit 11e2aac into master Aug 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant