Repository navigation
FEAT: standardize build version display - #20
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR standardizes how Codexometer resolves and displays its build/version across the CLI, dashboard UI, and all Codex app-server client metadata, and updates documentation/build tooling to support consistent version injection.
Changes:
- Introduces a unified version resolver (
internal/version) with link-time tag injection support and updated test coverage. - Updates CLI
-v/--version, dashboard masthead rendering, and app-server clientInfo payloads to use the canonical resolved version. - Bumps the maintained source version to
0.7.8, adds a Makefile build target, and updates README versioning/build guidance.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Updates build/version docs and examples for 0.7.8 and the new build behavior. |
| Makefile | Adds make build/test/fmt/vet and injects buildVersion from git describe. |
| main.go | Removes extra v prefix so CLI prints the canonical version. |
| main_test.go | Aligns CLI version tests with the canonical resolver output. |
| internal/version/version.go | Reworks version resolution order and adds link-time override support. |
| internal/version/version_test.go | Updates tests for the new resolver behaviors. |
| internal/ui/view.go | Displays the resolved version in the dashboard masthead/header. |
| internal/ui/view_test.go | Adds assertions that the masthead includes the resolved version. |
| internal/ui/model.go | Stores the resolved application version on the UI model. |
| internal/ui/model_test.go | Verifies UI model captures the resolved version. |
| internal/codex/daemon_status_unix.go | Uses centralized app-server clientInfo (removes "monitor" literal). |
| internal/codex/client.go | Uses centralized app-server clientInfo for initialize handshake. |
| internal/codex/client_test.go | Adds coverage for the centralized app-server clientInfo content. |
| internal/codex/benchmark.go | Uses centralized app-server clientInfo for benchmark session initialization. |
| internal/codex/app_server_client.go | Adds shared codexometerClientInfo() helper using version.Current(). |
💡 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 19, 2026 12:41
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.
Why
Codexometer's version was resolved and displayed differently across the CLI, dashboard, and app-server clients. Development pseudo-versions were suppressed, while one app-server path advertised the literal value
monitor. This made builds harder to identify and did not follow Go's normal version metadata conventions.What changed
Main.Versionis(devel)-vand--versionreport the same canonical value without an extrav0.7.8Impact
Release builds report
0.7.8. Go-provided module versions remain authoritative and are displayed without a leadingv. When Go reportsMain.Versionas(devel), the resolver instead uses the documented0.7.8-dev+<commit>[.dirty]VCS fallback. Existing quota, monitor, and benchmark behavior is unchanged.Validation
go test ./...go test -race -cover ./...go vet ./...git diff --checkcodexometer 0.7.8Release follow-up
After this PR is merged, create and push the repository's first semantic release tag,
v0.7.8, on the resultingmaincommit. Tagging after merge ensures the release tag identifies the code actually shipped and seeds Go's future pseudo-version calculation.