Skip to content

chore: bump codex_version to 0.157.0 - #1432

Merged
max-sixty merged 1 commit into
mainfrom
chore/bump-codex-0.157.0
Sep 25, 2026
Merged

max-sixty merged 1 commit into
mainfrom
chore/bump-codex-0.157.0

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Moves codex_version from 0.156.0 to 0.157.0 in both codex/action.yaml and codex/refresh/action.yaml, npm's current latest dist-tag. The window also crosses 0.156.1, a single hotfix that adds GPT-6 Sol and Luna to the model picker; 0.157.0 carries the same catalog change plus the rest. No test pins the version (the one 0.156.0 hit in generator/tests/test_repo_pins.py is a comment about when a warning was removed, and stays accurate).

Both refresh properties the refresh action depends on hold at 0.157.0. codex-rs/login changed in 18 blobs, and every change on the ChatGPT refresh path adds handling for a new "application network policy" denial without altering the request or the refresh decision:

  • should_refresh_proactively in auth/manager.rs is byte-identical across the two tags. An access token parse_jwt_expiration can't read still falls through to last_refresh < now - TOKEN_REFRESH_INTERVAL, which is what stage_refresh's tend-forces-refresh / 1970-01-01 staging relies on.
  • The exchange at manager.rs#L1643 is still OAuthClient::refresh(RefreshTokenGrant { refresh_token, resource: None }), and oauth/client.rs sends only grant_type=refresh_token, client_id, and refresh_token; the old access token is not a parameter. Error classification (401 / invalid_grant 400 → permanent, transport → transient) is unchanged apart from a new Policy variant that keeps the cached auth instead of failing.

The new policy is inert for tend: it is Restricted only when admin requirements (requirements.toml or a workspace cloud-config bundle) set network.enabled, and tend configures neither.

Nothing in the release changes the headless surfaces tend drives. Automatic background-server startup (openai/codex#47179) and model-migration prompts are TUI features; codex-rs/exec has no daemon references and the migration_markdown / retirement_at fields are read only by the TUI and app-server. cli/src/plugin_cmd.rs still prints Installed plugin root: {}, and TokenUsageInfo.total_token_usage keeps the input_tokens / cached_input_tokens / output_tokens fields token_usage.py reads from rollouts. The sandbox changes (network policy across redirects and WebSockets, Windows object access) sit behind --dangerously-bypass-approvals-and-sandbox, which tend passes because the systemd unit is the sandbox. CI's test-codex-surface job installs the new pin and asserts the exec flags, access-only auth, and plugin-install output directly.

Model catalog: no move in this PR. The 0.157.0 catalog lists gpt-6-astra, gpt-6-sol, and gpt-6-luna, and marks gpt-5.6-sol (the DEFAULT_MODEL_BY_HARNESS["codex"] value; .config/tend.yaml pins no Codex model) with upgrade: gpt-6-sol, retirement_at: null. That is the Sol-tier successor, and #1397 already proposes making it the default, so this PR leaves the default alone. Separately, openai/codex#47130 removes the ultrafast service tier from gpt-5.6-sol; tend sets no service tier.

Not verified here: the isolated Plus/Pro end-to-end refresh. This session had no Plus/Pro login, so it did not drive the refresh action against the live endpoint to confirm that both the full and the access-only credentials rotate. The refresh claims above rest on reading the source.

Local checks: uv run pytest -q (1,334 passed; the two test_refresh_consumers.py failures are the sandbox's missing DNS) and uv tool run pre-commit run --all-files.

How the login surface was diffed

Blob listing per tag rather than the compare endpoint, which caps files at 300:

login_blobs() { gh api "repos/openai/codex/git/trees/$1?recursive=1" \
  --jq 'if .truncated then error("tree truncated") else .tree[] | select(.type == "blob" and (.path | startswith("codex-rs/login/"))) | "\(.path) \(.sha)" end' | sort; }
diff <(login_blobs rust-v0.156.0) <(login_blobs rust-v0.157.0)

Every changed blob was fetched at both tags and diffed:

  • On the ChatGPT refresh path: auth/manager.rs (the Policy error variant, the HttpError conversion, the per-account http_client_factory, invalidating the policy on owner change), oauth/client.rs (a policy error while reading the response body becomes Transport rather than InvalidResponse), auth/default_client.rs and outbound_proxy.rs (a managed policy routes through RouteAwareClientPool; auth endpoints resolve through an optional local-bootstrap factory, which is absent unless one is installed).
  • Other login flows: server.rs and device_code_auth.rs (per-endpoint auth factories for browser and device-code login), auth/workload_identity.rs (policy classification), gateway_auth.rs, gateway_auth_token.rs, and the new gateway_auth_login.rs. manager.rs has no gateway references, so that grant path is separate from the ChatGPT one.
  • Tests and build: auth/change_state_tests.rs, oauth/client_tests.rs, gateway_auth_tests.rs, the new gateway_auth_login_tests.rs and gateway_auth_storage_tests.rs, tests/suite/login_server_e2e.rs, lib.rs (re-exports), and BUILD.bazel (test sharding).

@max-sixty
max-sixty merged commit 0760e7e into main Sep 25, 2026
11 checks passed
@max-sixty
max-sixty deleted the chore/bump-codex-0.157.0 branch September 25, 2026 15:56
max-sixty pushed a commit that referenced this pull request Sep 27, 2026
Moves `codex_version` from 0.157.0 to 0.157.1 in both
`codex/action.yaml` and `codex/refresh/action.yaml`, npm's current
`latest` dist-tag. The [0.157.1 release
notes](https://github.com/openai/codex/releases/tag/rust-v0.157.1) are
empty, so I diffed the full trees of the two tags
([`00c972e`](https://github.com/openai/codex/tree/00c972ed5d6ff6499317fd41b7f23605b8e6850d)
→
[`3665039`](https://github.com/openai/codex/tree/36650394c5b38c2990ccf2a3457165ca3e9d9726))
instead. Only ten files changed. Apart from the version bump in
`codex-rs/Cargo.toml`, each change is either Windows-only process
spawning (stdio inheritance in the app-server daemon, plus
`CREATE_NO_WINDOW` for child processes, all under `cfg(windows)`) or
test code.

**The refresh path is unchanged.** The blob-level diff of
`codex-rs/login/` between the two tags is empty, so the
unparsable-access-token fall-through to `last_refresh` and the
refresh-token-only grant that `codex/refresh` relies on behave as they
did at 0.157.0. #1432 verified those against the 0.157.0 source. As with
that bump, I didn't run the isolated Plus/Pro end-to-end refresh,
because this session has no such login.

**Headless surfaces are unchanged.** `plugin_cmd.rs` is the same blob
and still [prints `Installed plugin
root:`](https://github.com/openai/codex/blob/36650394c5b38c2990ccf2a3457165ca3e9d9726/codex-rs/cli/src/plugin_cmd.rs#L215).
The model catalog (`codex-rs/models-manager/models.json`) is also
byte-identical, so the default `gpt-5.6-sol` doesn't move here. #1397
still carries the proposed move to `gpt-6-sol`. CI's
`test-codex-surface` job installs the new pin and asserts the CLI
surface.

Local checks: `uv run pytest generator/tests` passes except the two
`test_refresh_consumers.py` tests, which need network that the sandbox
doesn't have (DNS).

Co-authored-by: tend-agent <[email protected]>
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.

2 participants