Skip to content

FEAT: add benchmark run detail view - #22

Merged
merefield merged 5 commits into
mainfrom
feat/benchmark-run-details
Aug 22, 2026
Merged

merefield merged 5 commits into
mainfrom
feat/benchmark-run-details

Conversation

@merefield

@merefield merefield commented Aug 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • make completed rows in the existing Benchmark Result Matrix selectable by mouse or keyboard
  • show the current trial immediately as an IN PROGRESS row, before the first benchmark completes
  • open a scrollable in-place detail that updates live and transitions to the final pass/fail/stopped result
  • show model, task, outcome, usage, cost, benchmark prompt, structured response, policy events, and verifier result
  • copy the complete unstyled detail—including interactions outside the visible scroll window—using the title-bar Copy action or c
  • add a separate Benchmark Scope screen with model and reasoning-level checkboxes plus Check All/Clear All controls
  • run only compatible model/effort intersections from the selected scope and use that exact count for Run All confirmation
  • add a stable Stop control that requests turn/interrupt, confirms completion where possible, retains the current row as STOPPED, and skips remaining trials
  • exclude stopped/incomplete rows from the Fail filter and rankings, while surfacing any unconfirmed interruption as a Stop Issue
  • capture only content from benchmark turns explicitly created by Codexometer, bounded to 16 entries, 64 KiB per entry, and 128 KiB total per run
  • keep transcript data in process memory and preserve the content-blind boundary for ordinary Codex sessions
  • include safe demo transcript data so the interaction can be tested without consuming quota

DigBench integration is intentionally out of scope; it can reuse this interaction pattern after the deterministic view is refined.

Controls

  • click an in-progress or completed result row, or select it with Up/Down and press Enter
  • scroll detail with Up/Down, Page Up/Page Down, or the mouse wheel
  • click Copy or press c to send the full bounded benchmark detail to the terminal clipboard via OSC 52
  • click Scope or press s, toggle checkbox rows by mouse or with Space/Enter, then click Done or press d/Esc
  • click Stop or press x while a suite is running
  • press Esc to return from a result detail

Privacy

  • ordinary Codex conversation content remains ignored
  • benchmark transcripts remain bounded and process-local unless the user explicitly copies one
  • copying uses the terminal and operating system clipboard, whose support and retention behavior vary

Verification

  • go test ./...
  • go vet ./...
  • go test -race -cover ./...
  • go build -trimpath ./...

@merefield
merefield requested a lite review from Copilot August 21, 2026 21:46
@merefield
merefield marked this pull request as ready for review August 21, 2026 21:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 PROGRESS row) 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 Active benchmark 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.

Comment thread internal/ui/benchmark.go Resolved
@merefield
merefield merged commit e048970 into main Aug 22, 2026
6 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.

2 participants