Repository navigation
Refine responsive interface and click surfaces - #6
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR refines Codexometer’s TUI responsiveness and input hit-testing so rendered geometry and click surfaces stay aligned across narrow → wide terminals, while also hardening Benchmark token/cost accounting (including tool-use protocol enforcement) and bumping the maintained version to v0.2.1.
Changes:
- Reworked framed panel titles to render inside the top border (no longer resembling button brackets) and adjusted layouts to prevent overflow in compact terminals.
- Updated Benchmark/Monitor hit-testing and added rendered-position click tests across multiple terminal sizes.
- Added fail-closed Benchmark telemetry accounting (raw-response vs cumulative fallback), tool-use detection, and expanded documentation of measurement limitations.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| README.md | Expands documentation on token/API-equivalent interpretation and bumps referenced version to v0.2.1. |
| main_test.go | Updates version output expectation to v0.2.1. |
| internal/version/version.go | Updates maintained fallback version to 0.2.1. |
| internal/version/version_test.go | Updates fallback version test to 0.2.1. |
| internal/ui/view.go | Integrates frame titles into borders via a new title renderer. |
| internal/ui/view_test.go | Extends reflow tests and asserts new border-integrated title rendering. |
| internal/ui/tabs_test.go | Adds click-surface coverage across widths for rendered tabs. |
| internal/ui/monitor.go | Prevents overflow in compact layouts and makes disabled buttons non-interactive. |
| internal/ui/monitor_test.go | Expands hit-surface tests across sizes/states for Monitor buttons. |
| internal/ui/model.go | Adjusts dashboard geometry to match new frame title height. |
| internal/ui/model_test.go | Strengthens footer hit-testing assertions across rendered label cells. |
| internal/ui/meters.go | Prevents meter/pie legend overflow and adapts rendering for small heights/widths. |
| internal/ui/benchmark.go | Reworks Benchmark layout, segments rendering, hit-testing, and measurement-status messaging. |
| internal/ui/benchmark_test.go | Adds rendered-position click tests and coverage for N/A measurement reporting and sorting. |
| internal/codex/benchmark.go | Adds validated telemetry ledgering (raw vs cumulative), tool-use detection, and cost issues. |
| internal/codex/benchmark_test.go | Adds comprehensive tests for fail-closed telemetry, overflow, fallback behavior, and tool-use rejection. |
💡 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.
Summary
This PR makes Codexometer's interactive layouts reliably responsive and hardens the Benchmark runner so its results fail closed instead of presenting uncertain telemetry as trustworthy data.
Interface and interaction
Benchmark correctness and resilience
N/Awith a reasonintro-post.mdwith concise, ready-to-publish OpenAI Developers Forum copyVersion
v0.2.1Why
The original title-layout change exposed stale click coordinates and compact layouts could render beyond their allocated space, leaving visible controls inactive or invisible controls active.
The Benchmark runner also needed stricter accounting semantics: absent telemetry could be mistaken for zero usage, cumulative counters needed validation, forbidden tool use could contaminate comparisons, and one context deadline could terminate every remaining trial. This PR makes those states explicit and recoverable where the Codex app-server protocol can prove cleanup completed.
Review notes
turn/interruptsucceeds and the matchingturn/completedevent is observed.Validation
go test -race -cover ./...go vet ./...go build -o codexometer .codexometer v0.2.1