Skip to content

Persist update dismissal without cache - #27783

Merged
etraut-openai merged 3 commits into
mainfrom
etraut/fix-update-dismissal
Jun 12, 2026
Merged

Persist update dismissal without cache#27783
etraut-openai merged 3 commits into
mainfrom
etraut/fix-update-dismissal

Conversation

@etraut-openai

Copy link
Copy Markdown
Contributor

Summary

Choosing “Don’t remind me” can silently fail when version.json disappears before dismissal because dismiss_version returns success without writing anything. The same update can then reappear on the next launch.

Initialize a minimal VersionInfo from the selected version when the cache cannot be read, then persist the dismissal through the existing write path.

Fixes #27147

@etraut-openai
etraut-openai marked this pull request as ready for review June 12, 2026 05:52
@etraut-openai etraut-openai changed the title [codex] Persist update dismissal without cache Persist update dismissal without cache Jun 12, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 41408389e4

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/tui/src/updates.rs Outdated

@fcoury-oai fcoury-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to validate the fix.

Codex noticed that the recreated cache records Utc::now() despite no update check occurring, which can delay the next real update check by up to 20 hours; it recommend using a stale timestamp or otherwise forcing a refresh on the next startup.

Otherwise the code also looks good 👍

Comment thread codex-rs/tui/src/updates_cache.rs Outdated
@etraut-openai
etraut-openai merged commit 096e5e7 into main Jun 12, 2026
31 checks passed
@etraut-openai
etraut-openai deleted the etraut/fix-update-dismissal branch June 12, 2026 16:26
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update popup dismissal is not persisted when version cache is missing

2 participants