Skip to content

FEAT: add benchmark clear shortcut - #28

Merged
merefield merged 1 commit into
mainfrom
codex/benchmark-clear-shortcut
Aug 23, 2026
Merged

merefield merged 1 commit into
mainfrom
codex/benchmark-clear-shortcut

Conversation

@merefield

Copy link
Copy Markdown
Owner

What changed

  • label the Benchmark result-list reset control as [ (L) CLEAR ALL ]
  • handle L as the keyboard shortcut for the existing Clear All action
  • keep the shortcut disabled during active runs and outside the main Benchmark list

Why

Clear All was mouse-only even though the surrounding Benchmark controls expose keyboard shortcuts. L was unassigned and provides a distinct mnemonic without conflicting with existing actions.

Validation

  • go test ./...

@merefield merefield changed the title [codex] add benchmark clear shortcut FEAT: add benchmark clear shortcut Aug 23, 2026
@merefield
merefield requested a lite review from Copilot August 23, 2026 05:03
@merefield
merefield marked this pull request as ready for review August 23, 2026 05:03

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 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 l as 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 l behavior (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.

@merefield
merefield merged commit a1433c1 into main Aug 23, 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