Skip to content

fix: enrich OpenCode live status header metadata#114

Merged
LIU9293 merged 1 commit intomainfrom
feat/opencode-status-meta-177166
Feb 21, 2026
Merged

fix: enrich OpenCode live status header metadata#114
LIU9293 merged 1 commit intomainfrom
feat/opencode-status-meta-177166

Conversation

@LIU9293
Copy link
Contributor

@LIU9293 LIU9293 commented Feb 21, 2026

Summary

  • parse OpenCode message.updated info fields into session state by syncing modelID -> model, agent -> agent, and preserving tokens.total in SessionTokenUsage
  • update live status title details to render optional metadata in parentheses as available: model, compact token count, agent, non-zero cost, and elapsed time
  • add/extend session inspector coverage to verify OpenCode metadata mapping and header rendering behavior (including hiding cost 0)

Testing

  • bun test packages/agents/test/session-inspector.test.ts packages/core/test/status-message.test.ts packages/live-status-harness/test/render-status.test.ts
  • bun test packages/agents/test/*stream-status.test.ts

Capture model and agent from message.updated, honor reported total token usage, and render optional header details for model/tokens/agent/cost with elapsed time.
@LIU9293 LIU9293 merged commit 35155a4 into main Feb 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant