Repository navigation
FEAT: add benchmark clear shortcut - #28
Merged
Merged
Conversation
merefield
marked this pull request as ready for review
August 23, 2026 05:03
There was a problem hiding this comment.
🟢 Approval recommended
The shortcut implementation matches the existing Clear All enablement rules and includes targeted tests validating correct activation and suppression during active runs.
Pull request overview
This PR enhances the Benchmark TUI by adding a keyboard shortcut for the existing “Clear All” benchmark-results action and updating the UI label to advertise the shortcut, aligning it with other benchmark controls that already support keybindings.
Changes:
- Add
las a keyboard shortcut to trigger the Benchmark “Clear All” action (only on the main results list, only when idle, and only when results exist). - Update the “Clear All” control label to
[ (L) CLEAR ALL ]so the shortcut is discoverable. - Extend benchmark UI tests to cover
lbehavior (works while idle; ignored while running).
File summaries
| File | Description |
|---|---|
| internal/ui/model.go | Adds l key handling to activate the existing Benchmark “Clear All” footer action under the same availability constraints. |
| internal/ui/benchmark.go | Updates the Clear All label to include the (L) shortcut indicator. |
| internal/ui/benchmark_test.go | Adds coverage for the l shortcut, including idle vs. running behavior. |
Review details
- Files reviewed: 3/3 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.
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.
What changed
[ (L) CLEAR ALL ]Las the keyboard shortcut for the existing Clear All actionWhy
Clear All was mouse-only even though the surrounding Benchmark controls expose keyboard shortcuts.
Lwas unassigned and provides a distinct mnemonic without conflicting with existing actions.Validation
go test ./...