Skip to content

chore: bump codex_version to 0.156.0 - #1388

Merged
max-sixty merged 2 commits into
mainfrom
chore/bump-codex-0.156.0
Sep 23, 2026
Merged

max-sixty merged 2 commits into
mainfrom
chore/bump-codex-0.156.0

Conversation

@tend-agent

@tend-agent tend-agent commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Moves codex_version from 0.155.1 to 0.156.0 in both codex/action.yaml and codex/refresh/action.yaml, npm's current latest dist-tag. 0.156.0 is the only stable release in the window — everything else published since 0.155.1 is a 0.156.0-alpha or 0.157.0-alpha prerelease.

The auth-manager inspection is the part that mattered. 0.156.0 refactors codex-rs/login substantially: a new oauth/ module (authorization, client, diagnostics, error, pkce), a new gateway_auth* family, and auth/manager/workspace_routing.rs alongside an edited auth/manager.rs. Both properties the refresh action depends on survive it.

should_refresh_proactively in auth/manager.rs is byte-identical across the two tags: it tries parse_jwt_expiration(&tokens.access_token) and, when that doesn't match Ok(Some(_)), falls through to comparing last_refresh against TOKEN_REFRESH_INTERVAL. stage_refresh in shared/steps/codex_subscription_auth.py depends on exactly that — it writes access_token: "tend-forces-refresh" (unparsable) and last_refresh: "1970-01-01T00:00:00Z" into the runner's copy so the stale branch fires.

The refresh exchange still uses the refresh token alone. The inline RefreshRequest { client_id, grant_type: "refresh_token", refresh_token } POST is now OAuthClient::refresh(RefreshTokenGrant { refresh_token, resource: None }) against the same TokenEndpoint, and oauth/client.rs builds the parameter list as grant_type=refresh_token, client_id, refresh_token — the old access token is not a parameter, so the deliberately-corrupted one cannot block the exchange. The ChatGPT path keeps TokenEncoding::Json, matching the old explicit Content-Type: application/json, and error classification is preserved verbatim: 401, a Other-reason code, or a 400 carrying invalid_grant stay Permanent; transport and invalid-response failures stay Transient. gateway_auth* is a separate new grant path, not the one manager.rs drives for ChatGPT credentials.

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.155.1) <(login_blobs rust-v0.156.0)

Blobs the diff named and I read: auth/manager.rs (full source diff of both versions), oauth/client.rs. The remaining named blobs are the new oauth/ and gateway_auth* files, their tests, pkce.rs, server.rs, callback_params.rs, device_code_auth.rs, the login assets, and the test suite — none on the ChatGPT refresh path the action drives.

codex exec is unaffected by the daemon work. 0.156.0 adds a local background server with /daemon and a --no-daemon bypass. codex-rs/exec has no daemon hits at all; startup and auto-start live in codex-rs/tui, so the headless path tend runs does not acquire a background process the systemd unit would have to account for.

Sandbox-isolation fixes don't apply here. The release closes gaps in "inbound Windows connections, privileged Linux/macOS sockets, and writes through read-only macOS file handles". Tend passes --dangerously-bypass-approvals-and-sandbox on purpose — the agent's systemd unit is the sole execution sandbox, and a nested Codex sandbox would be a second, divergent policy surface — so none of these are a boundary tend relies on.

Plugin and skill loading. Nothing in the notes touches codex plugin marketplace add / codex plugin add or the Installed plugin root: line runner.py parses, or AGENTS.md slash-command resolution. CI's test-codex-surface job installs the new pin and asserts the credential-free contract directly — the exec flags (--model, --sandbox, --output-last-message, --config, --json, --skip-git-repo-check), access-only ChatGPT auth, and plugin-install output — so that half of the bump verification is a check on this PR rather than a claim in this body.

A second commit, from this PR's own review session. 0.156.0 removes SKILL_DESCRIPTION_TRUNCATED_WARNING ("Skill descriptions were shortened to fit the skills context budget") from codex-rs/ext/skills/src/render.rs; at 0.155.1 it is line 25 of that file, and at 0.156.0 the constant is gone while the harder "Exceeded skills context budget" warning stays. test_repo_pins.py's re-measure recipe used the removed warning as its stop condition, so the comment now points at the listing itself: the budget path (render_with_description_chars) slices the description at a char index and appends nothing, so a description that stops mid-sentence in the listing is the signal. That is distinct from truncate_catalog_skill_description, the separate catalog cap, which does append an ellipsis.

Model catalog. gpt-5.6-sol — DEFAULT_MODEL_BY_HARNESS["codex"], and no Codex model is pinned in .config/tend.yaml — is still present in the Codex tree at this tag, and no gpt-5.7 exists yet. No move, and a cross-tier one wouldn't be routine maintenance anyway.

Not verified in this run: the end-to-end credential rotation. The weekly recipe asks for an isolated Plus/Pro login driving the refresh action and requiring both the full and access-only bundles to rotate; this session holds no such login, and the repo runs the Claude harness (.config/tend.yaml sets no harness: override), so no scheduled codex-auth-refresh here exercises it either. The source inspection above is what stands behind the refresh claims — it is not a run against the live endpoint.

Weekly pin sweep. claude_version 2.1.278 → 2.1.280 is #1387; everything else in the sweep (mitmproxy_version, uv_version, uv_build, WORKTRUNK_VERSION, uv lock --upgrade, pre-commit autoupdate, non-max-sixty/tend uses: refs) is already current, and the npm lockfile drift is its own repo-local PR.

@tend-agent tend-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

generator/tests/test_repo_pins.py's re-measurement recipe above DESCRIPTION_BUDGET ends with "Tighten the descriptions to fit and re-run until the warning is gone" — 0.156.0 removes that warning, so the stop condition is satisfied at any description length. codex-rs/ext/skills/src/render.rs drops SKILL_DESCRIPTION_TRUNCATED_WARNING and its threshold constant, and SkillRenderReport::warning_message now returns None unless a skill was left out of the listing entirely. That removal is the entire diff in the file between the two tags.

Truncation itself is unchanged — DEFAULT_SKILL_METADATA_CHAR_BUDGET (8,000), SKILL_METADATA_CONTEXT_WINDOW_PERCENT (2) and the allocation path are identical across the tags, so DESCRIPTION_BUDGET = 130 still holds as a number. What changes is that shortening is now silent: the budget path cuts at a character index with no ellipsis, so the only remaining signal is a description ending mid-sentence in the listing the model quotes back. Anyone adding a 25th skill and following the recipe as written would see no warning and conclude the descriptions fit. The comment fix belongs in this PR, since the pin is what invalidates the recipe — pushing it next.

0.156.0 removes the "Skill descriptions were shortened" warning the recipe used as its stop condition; the listing itself is the remaining signal.
max-sixty pushed a commit that referenced this pull request Sep 23, 2026
The repo-local half of this week's pin sweep — lockfile drift only, in
the two npm trees nothing outside this repo runs. `package.json`'s
existing ranges already admit every version here, so `npm update` in
each prefix is the whole change and no range moves. After it, `npm
--prefix worker outdated` and `npm --prefix site outdated` both print
nothing and exit 0.

**`worker/`** — `wrangler` 4.136.1 → 4.136.3 and
`@cloudflare/workers-types` 5.20260921.1 → 5.20260922.1. Those are the
only two entries the lockfile changed; this pair of wrangler patches
carries no `workerd` or `miniflare` move.

**`site/`** — `astro` 7.3.3 → 7.3.4, with `@astrojs/markdown-satteri`
0.4.2, `smol-toml` 1.9.0, `undici` 8.11.0, and two transitive majors:
`obug` 2.2.1 → 3.0.0 and `tinyclip` 0.1.15 → 1.0.3. Both majors are
astro 7.3.4's own declared ranges (`obug: ^3.0.0`, `tinyclip: ^1.0.1`)
rather than a bound this PR widened — nothing in `site/package.json`
changed.

<details><summary>Verification</summary>

`npm --prefix worker test` is 32 passed and `npm --prefix worker run
typecheck` is clean against the new lockfile. `npm --prefix site run
build` completes, one page built. `uv run pytest` from the repo root is
1311 passed (the two `test_refresh_consumers.py` cases are deselected —
they resolve dependencies from PyPI through `uv run --script`, and a
tend session's sandbox has no DNS).

</details>

Also swept and already current, so absent from the diff:
`mitmproxy_version` (12.2.3) and its `==` pin, `uv_version` (0.12.17),
`uv_build`'s `>=0.12,<0.13` range, `WORKTRUNK_VERSION` (0.79.0), `uv
lock --upgrade` (no lockfile changes), `uv tool run pre-commit
autoupdate` (all six hooks up to date), and every non-`max-sixty/tend`
`uses:` ref in `.github/workflows/` and `.config/tend.yaml`. The two
pins that ship to consumers are their own PRs: `claude_version` 2.1.278
→ 2.1.280 is #1387, `codex_version` 0.155.1 → 0.156.0 is #1388.
`data/consumers.json` refreshed clean — `changed: false`, 8 consumers,
nothing removed, so no refresh PR this week.

Co-authored-by: tend-agent <[email protected]>
@max-sixty
max-sixty merged commit 00a28b5 into main Sep 23, 2026
11 checks passed
@max-sixty
max-sixty deleted the chore/bump-codex-0.156.0 branch September 23, 2026 01:01
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