fix(inspector): expose usage and context evidence - #122
Merged
Conversation
Normalize Codex cumulative token snapshots and keep developer/system context out of dialogue. Preserve Claude cache creation and Cursor context/source-time evidence, then expose a provider-aware usage panel in Inspector and Studio. This justified maintenance follows docs/specs/2026-08-28-harness-inspector-usage-context.md and was validated with npm run check on Node 24, focused Playwright, and the Inspector visual contract. Co-authored-by: Codex (GPT 5.6 Sol) <codex@openai.com>
Preserve provider-observed inference usage in Turn order and render token and context-window occupancy in standalone Inspector and Studio. Missing per-response context stays explicitly unavailable instead of inheriting a session snapshot. Implements AC-8 and AC-9 in docs/specs/2026-08-28-harness-inspector-usage-context.md. Validated with the Node 24 npm run check gate, focused Playwright coverage, and the 15-surface visual contract. Co-authored-by: Codex (GPT 5.6 Sol) <codex@openai.com>
Member
Author
Count every matched workspace transcript as relevant when no time filter was requested, even when a transcript lacks an observable native timestamp. This keeps coverage denominators stable across Windows and POSIX filesystems. Implements AC-10 in docs/specs/2026-08-28-harness-inspector-usage-context.md. Validated with the 53-test Cursor/provider suite and the full Node 24 npm run check gate. Co-authored-by: Codex (GPT 5.6 Sol) <codex@openai.com>
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.

Summary
Why
Traceability and Scope
Change Type
Test and Review Evidence
Manual or visual evidence:
Risk and Recovery
AI Involvement
Checklist