Repository navigation
FEAT: Copy benchmark results as Markdown - #24
Merged
Merged
Conversation
There was a problem hiding this comment.
🟢 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
cshortcut 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
marked this pull request as ready for review
August 22, 2026 18:43
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
cshortcut thereWhy
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