Repository navigation
FEAT: show goal pursuit duration and require patched Go 1.27.4 - #103
Merged
Merged
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain, with the supplied evidence indicating the duration formatting, width-aware rendering, stale-state handling, layout preservation, and related tests and documentation were addressed.
No open issues 🎉
What changed in this PR
Adds Codex-reported goal pursuit duration to terminal session labels and detail footers while preserving existing status, layout, stale-observation, and Copy control behavior.
Changes:
- Formats
timeUsedSecondsinto compact day/hour/minute labels with sub-minute and large-counter handling. - Adds width-aware rendering with status and footer control preservation.
- Updates tests, timing documentation, the Sessions screenshot fixture, and screenshot manifest metadata.
| File | Description |
|---|---|
| README.md | Documents goal-duration semantics, formatting, and stale-observation behavior. |
| internal/ui/monitor.go | Passes available session-row width to goal status rendering. |
| internal/ui/monitor_goal.go | Formats and renders reported goal durations in terminal labels and detail footers. |
| internal/ui/monitor_goal_test.go | Tests duration formatting, supported states, stale handling, width fallback, and Copy geometry. |
| internal/ui/documentation_screenshots_test.go | Adds representative goal-duration data to the Sessions documentation scene. |
| assets/screenshots/manifest.json | Updates synthetic screenshot metadata and image hashes. |
Review effort: Lite
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
Goal status currently shows whether a goal is being pursued, stalled or complete, but not how much time Codex has recorded against it. Expose the existing per-goal counter without introducing another clock or local persistence.
Changes
PURSUING GOAL // 1d 1h 23m, both below session-row statusline fields and in the full-detail footer.<1mfor a reported duration below one minute. Long durations are formatted directly from seconds to avoidtime.Durationoverflow.timeUsedSeconds: no interpolation from creation/update timestamps, no ticking local timer, no API or persistence changes. Paused, stalled and completed goals retain their last reported duration.The duration presentation is terminal-only; browser goal presentation and backend accounting are unchanged. No application version bump or release is included.
Go security update
CI reported GO-2026-6859, an HTTP/1 server crash caused by a
MaxBytesReaderheader race in Go'snet/httpstandard library. The failing scan identifies Go 1.27.4 as the fixed version.go.mod.go-version-file: go.mod, so all pick up the fix without separate workflow pins.Codex patch compatibility
Validation
CODEXOMETER_TEST_CODEX_VERSION=0.167.2 go test -race ./internal/codex -run '^TestNativeCodexCompression$' -count=1 -v -timeout 1m— passed against the installed 0.167.2 binary:zstd-stream-v1negotiation, five feature-inventory RPCs and an empty loaded-thread list. Uses an isolated temporary Codex home, no user credentials and no model requests. 0.167.1 is accepted by the harness but was not separately live-tested.GOTOOLCHAIN=go1.27.4 go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...— passed: No vulnerabilities found.int64, all supported goal states, stale observations, exact fit/fallback widths, server-counter semantics and Copy click-surface stability.go test -race -cover -timeout 10m -skip '^TestLocalisedScreens$' ./...— passed. The expensive full-screen localisation matrix is left to CI.go vet ./...— passed.make build— passed; local binary rebuilt.node web/scripts/screenshots.mjs --check— passed after regenerating and visually checking all seven images.