Skip to content

fix(statusline): read a reset time a Date cannot hold as absent - #625

Merged
Mearman merged 1 commit into
mainfrom
fix/statusline-reset-instant-range
Oct 27, 2026
Merged

Mearman merged 1 commit into
mainfrom
fix/statusline-reset-instant-range

Conversation

@Mearman

@Mearman Mearman commented Oct 27, 2026

Copy link
Copy Markdown
Member

A reset instant in the client's rate_limits payload, or an Antigravity bucket's seconds to reset, was turned into an ISO string with toISOString, which throws for an instant beyond the range a Date holds, so agent-shim statusline exited 1 with nothing drawn (#624).

A reset like that now reads as absent and its window is still drawn. Two tests cover the two sites, and each fails against the old call at its site.

Fixes #624

A reset instant in the client's rate_limits payload, or an Antigravity bucket's seconds to
reset, was turned into an ISO string with toISOString, which throws for an instant beyond the
range a Date holds, so the statusline exited with nothing drawn. Such a reset now reads as
absent and its window is still drawn.

Fixes #624
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ⚠️ Failed 2026-10-27T19:59:09.729347Z
We couldn’t complete this review. Comment @codex security review to try again.
db5c7a1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins.

@Mearman
Mearman merged commit d6b9f10 into main Oct 27, 2026
32 checks passed
@Mearman
Mearman deleted the fix/statusline-reset-instant-range branch October 27, 2026 20:05
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.

statusline draws nothing when a reset time is beyond what a Date holds

1 participant