Repository navigation
FEAT: add benchmark run detail view - #22
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The new detail view and clipboard export can render a dangling “SOURCE” label when usage is known but UsageSource is empty (e.g., demo results), which is a user-visible formatting bug.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR adds an interactive, live-updating “Benchmark run detail” view to the existing Benchmark Result Matrix, including bounded benchmark-only transcript capture and a full-detail copy action for sharing via clipboard.
Changes:
- Adds selectable/clickable benchmark rows (including an immediate
IN PROGRESSrow) and an in-place scrollable run detail view with keyboard + mouse controls. - Captures and surfaces bounded benchmark-only interactions (prompt/response/policy/verifier) via incremental
Activebenchmark events. - Updates docs and adds targeted UI + codex benchmark tests for detail rendering, scrolling, copy/export, and live updates.
File summaries
| File | Description |
|---|---|
| README.md | Documents the new benchmark detail view, controls, and privacy boundaries. |
| main.go | Extends demo benchmark results to include safe demo interaction transcripts for exercising the detail view. |
| internal/ui/model.go | Adds state + input handling for selecting rows, opening/closing detail, scrolling, and copy shortcut. |
| internal/ui/benchmark.go | Implements benchmark detail rendering, hit-testing, scroll logic, and clipboard export formatting. |
| internal/ui/benchmark_test.go | Adds UI tests for click/keyboard selection, live detail updates, scrolling, and copy/export behavior. |
| internal/codex/benchmark.go | Introduces bounded benchmark-only interaction capture and emits incremental Active progress events. |
| internal/codex/benchmark_test.go | Adds tests ensuring interaction capture is bounded, valid UTF-8, and that Active events arrive before final results. |
Review details
Suppressed comments (1)
internal/ui/benchmark.go:274
- The clipboard export has the same "SOURCE %s" formatting issue as the on-screen detail: if UsageKnown is true but UsageSource is empty, the exported line ends with a dangling "SOURCE" label. Consider only appending the SOURCE segment when a non-empty UsageSource is present.
if result.UsageKnown {
fmt.Fprintf(&output, "TOKENS: TOTAL %d // INPUT %d // CACHED %d // OUTPUT %d // REASONING %d // SOURCE %s\n",
result.Usage.TotalTokens, result.Usage.InputTokens, result.Usage.CachedInputTokens,
result.Usage.OutputTokens, result.Usage.ReasoningOutputTokens, result.UsageSource)
} else {
- Files reviewed: 7/7 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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
IN PROGRESSrow, before the first benchmark completescturn/interrupt, confirms completion where possible, retains the current row asSTOPPED, and skips remaining trialsDigBench integration is intentionally out of scope; it can reuse this interaction pattern after the deterministic view is refined.
Controls
cto send the full bounded benchmark detail to the terminal clipboard via OSC 52s, toggle checkbox rows by mouse or with Space/Enter, then click Done or pressd/Escxwhile a suite is runningPrivacy
Verification