Skip to content

Format multi-day goal durations in the TUI#20558

Merged
etraut-openai merged 2 commits into
mainfrom
etraut/goal-duration-format
May 1, 2026
Merged

Format multi-day goal durations in the TUI#20558
etraut-openai merged 2 commits into
mainfrom
etraut/goal-duration-format

Conversation

@etraut-openai
Copy link
Copy Markdown
Collaborator

@etraut-openai etraut-openai commented May 1, 2026

Why

Goal mode shows elapsed time in compact hour/minute form. That is easy to scan for shorter runs, but once a goal runs past 24 hours, large hour counts become harder to read at a glance.

What changed

Updated codex-rs/tui/src/goal_display.rs so unbudgeted goal elapsed time keeps the existing compact format below one day, then switches to a day-aware format once the elapsed time reaches 24 hours:

  • 23h 59m
  • 1d 0h 0m
  • 2d 23h 42m

The formatter now covers the 24-hour boundary in unit tests, and the TUI status-line snapshot for a completed elapsed goal now exercises the multi-day display.

Verification

  • cargo test -p codex-tui

Here's my longest-running test task:

image
@etraut-openai etraut-openai merged commit d898cc8 into main May 1, 2026
35 of 36 checks passed
@etraut-openai etraut-openai deleted the etraut/goal-duration-format branch May 1, 2026 05:42
@github-actions github-actions Bot locked and limited conversation to collaborators May 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants