Skip to content

FEAT: standardize build version display - #20

Merged
merefield merged 2 commits into
mainfrom
agent/standard-version-display
Aug 19, 2026
Merged

merefield merged 2 commits into
mainfrom
agent/standard-version-display

Conversation

@merefield

@merefield merefield commented Aug 19, 2026 •

Copy link
Copy Markdown
Owner

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

  • use one build-aware version resolver for the CLI, dashboard, and all app-server client metadata
  • prefer an injected release version, then Go module/build information, then VCS development metadata
  • distinguish Go pseudo-versions from Codexometer's explicit VCS fallback when Main.Version is (devel)
  • display the resolved version in the dashboard masthead
  • make -v and --version report the same canonical value without an extra v
  • bump the maintained source version to 0.7.8
  • add a small Makefile that injects the nearest Git tag when available
  • document tagged, direct, and development-build version behavior
  • cover the resolver and its consumers with tests

Impact

Release builds report 0.7.8. Go-provided module versions remain authoritative and are displayed without a leading v. When Go reports Main.Version as (devel), the resolver instead uses the documented 0.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 --check
  • local and six distribution binaries rebuilt for macOS, Linux, and Windows on amd64/arm64
  • verified an injected build reports codexometer 0.7.8
  • verified a direct development build reports Go's embedded pseudo-version

Release follow-up

After this PR is merged, create and push the repository's first semantic release tag, v0.7.8, on the resulting main commit. Tagging after merge ensures the release tag identifies the code actually shipped and seeds Go's future pseudo-version calculation.

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.

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.

Comment thread README.md Resolved
Comment thread internal/version/version.go Resolved
@merefield
merefield marked this pull request as ready for review August 19, 2026 12:41
@merefield
merefield merged commit 3873768 into main Aug 19, 2026
6 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