Skip to content

FIX: prioritise full statusline over optional goal footer time - #104

Merged
merefield merged 1 commit into
mainfrom
fix/goal-footer-statusline-fit
Nov 12, 2026
Merged

merefield merged 1 commit into
mainfrom
fix/goal-footer-statusline-fit

Conversation

@merefield

@merefield merefield commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Why

The terminal goal footer reserved a fixed twelve columns for the statusline, regardless of how much text the user's selected fields actually produced. As the terminal narrowed, this could shorten the statusline to retain PURSUING GOAL and its duration instead of dropping the optional goal information.

Changes

  • Measure the statusline as it would render with the existing controls but without a goal. Reserve that full visible width first, including its existing minimum visible text slot.
  • Drop the duration first, then the goal label if necessary; never shorten the normal statusline to make room for a goal.
  • Name and reuse the statusline's existing nine-column minimum text width, preserving its current visibility rules on tiny terminals.
  • Preserve right-aligned Copy placement, frame dimensions, status colours and session-row presentation. No web, API, accounting or dependency changes.
  • Document the priority order in the README.

Validation

  • Race-enabled footer/goal regression tests passed, including exact-fit and one-column-short boundaries, short and long statuslines, Unicode double-width text, sanitised ANSI input, already-truncated statuslines, with and without Copy, rendered footer contents and Copy column/hit-target stability.
  • go test -race -cover -timeout 10m -skip '^TestLocalisedScreens$' ./... — passed on the final tree. CI runs the complete locale matrix separately on Linux, macOS and Windows.
  • go vet ./..., screenshot freshness and all four production duplication scans passed on the final tree; no production duplication metrics increased. Local binary rebuilt.

No release bump is included in this PR. After green CI and merge, prepare the requested patch release v0.29.2 with refreshed screenshots and release highlights.

@merefield
merefield merged commit 37f5e1f into main Nov 12, 2026
8 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.

1 participant