codex - ✅(Solved) Fix Source builds show update prompts because version is treated as upgradeable [1 pull requests, 3 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17166Fetched 2026-04-09 08:01:41
View on GitHub
Comments
3
Participants
3
Timeline
16
Reactions
0
Author
Timeline (top)
commented ×3labeled ×3referenced ×3cross-referenced ×2

When Codex is run from a source build, the binary version can be 0.0.0. The update-check path treats that as a normal released version, so startup and popup update prompts may appear even though there is no upgrade path from a source build.

Root Cause

Suspected root cause

PR fix notes

PR #17186: Skip update prompts for source builds

Description (problem / solution / changelog)

Addresses #17166

Problem: Source builds report version 0.0.0, so the TUI update path can treat any released Codex version as upgradeable and show startup or popup prompts.

Solution: Skip both TUI update prompt entry points when the running CLI version is the source-build sentinel 0.0.0.

Changed files

  • codex-rs/tui/src/updates.rs (modified, +6/-2)
RAW_BUFFERClick to expand / collapse

Summary

When Codex is run from a source build, the binary version can be 0.0.0. The update-check path treats that as a normal released version, so startup and popup update prompts may appear even though there is no upgrade path from a source build.

Expected behavior

If the running version is a source-build sentinel like 0.0.0, Codex should skip the update prompt logic entirely.

Actual behavior

Codex still evaluates update availability and may show an upgrade prompt.

Reproduction

  1. Build or run Codex from source so the runtime version resolves to 0.0.0.
  2. Leave update checks enabled.
  3. Start the TUI or trigger the popup update path.
  4. Observe that Codex can report a newer version and prompt for upgrade.

Suspected root cause

The update-check entry points compare versions without first treating 0.0.0 as a non-released source build. The guard likely belongs in the shared update-path helpers so both startup checks and popup checks short-circuit consistently.

Affected area

codex-rs/tui/src/updates.rs

extent analysis

TL;DR

Modify the update-check logic to skip version comparisons when the running version is 0.0.0, indicating a source build.

Guidance

  • Identify the update-check entry points in codex-rs/tui/src/updates.rs and add a guard to treat 0.0.0 as a special case.
  • Modify the version comparison logic to short-circuit when the running version is 0.0.0, preventing unnecessary update checks.
  • Verify that the update prompt is skipped when running Codex from a source build with version 0.0.0.
  • Consider adding a test case to ensure the update logic behaves correctly for source builds.

Example

if version == "0.0.0" {
    // Skip update checks for source builds
    return;
}
// Proceed with update checks for released versions

Notes

This fix assumes that the 0.0.0 version is only used for source builds and not for released versions. If this assumption is not valid, additional logic may be needed to distinguish between source builds and released versions.

Recommendation

Apply workaround: Modify the update-check logic to handle 0.0.0 as a special case, as this is a targeted fix for the identified issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

If the running version is a source-build sentinel like 0.0.0, Codex should skip the update prompt logic entirely.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING