Skip to content

FEAT: Copy benchmark results as Markdown - #24

Merged
merefield merged 1 commit into
mainfrom
codex/benchmark-results-markdown-copy
Aug 22, 2026
Merged

merefield merged 1 commit into
mainfrom
codex/benchmark-results-markdown-copy

Conversation

@merefield

Copy link
Copy Markdown
Owner

Summary

  • add a lower-right Copy control to the Benchmark result matrix and enable the existing c shortcut there
  • export a clean eight-column Markdown table containing every completed or active result row, including filtered and off-screen data
  • retain the current table sort and rank weighting while excluding all Show, filter, and Rank controls
  • escape pipes and multiline values safely for Markdown and keep the control disabled until data exists
  • preserve the existing complete run-detail copy behavior and document both clipboard paths

Why

Benchmark results are useful outside Codexometer for comparisons, reports, and forum posts, but the terminal-formatted matrix includes interactive controls and viewport truncation. This provides a paste-ready representation of the complete result set without changing what Codexometer captures or exposing ordinary session content.

Validation

  • go vet ./...
  • go test -race -cover ./...
  • go build -trimpath ./...
  • git diff --check

@merefield merefield changed the title [codex] Copy benchmark results as Markdown FEAT: Copy benchmark results as Markdown Aug 22, 2026
@merefield
merefield requested a lite review from Copilot August 22, 2026 18:39

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.

🟢 Approval recommended

The changes are cohesive, documented, and validated with targeted tests covering formatting, escaping, ordering, and UI interaction paths.

Pull request overview

Adds a new clipboard export path for the Benchmark result matrix so users can copy the complete set of benchmark rows as a clean Markdown table (including filtered-out and off-screen rows), while preserving the existing “copy full run detail” behavior.

Changes:

  • Adds a lower-right Copy control to the Benchmark result matrix and enables the c shortcut there when data exists.
  • Implements Markdown table export for benchmark results (8 columns), including safe pipe escaping and multiline normalization.
  • Updates docs and adds UI tests validating export content, ordering, and control enable/disable behavior.
File summaries
File Description
README.md Documents the two clipboard behaviors (c in matrix vs detail) and clarifies what the matrix export includes/excludes.
intro-post.md Updates the feature overview to mention copying the result matrix as Markdown.
internal/ui/model.go Extends c handling and footer button behavior to support matrix export in addition to detail-copy.
internal/ui/benchmark.go Renders a matrix footer Copy action, adds availability logic, and generates the Markdown table output.
internal/ui/benchmark_test.go Adds coverage for the Markdown export format/escaping and validates mouse + keyboard activation and disabled state.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@merefield
merefield marked this pull request as ready for review August 22, 2026 18:43
@merefield
merefield merged commit 56ea7af into main Aug 22, 2026
7 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