Repository navigation
chore: bump codex_version to 0.155.1 - #1342
Conversation
tend-agent
left a comment
There was a problem hiding this comment.
The pin itself holds up: 0.155.1 is the current latest on npm, both defaults moved together as the codex_version rule requires, and @openai/[email protected] is published — which codex/action.yaml's install step and test-codex-surface both need at the same version. Every check is green on this head.
The description's central evidence claim is false. It states that codex-rs/login/ is byte-identical between rust-v0.154.0 and rust-v0.155.1. It is not: the tree SHA for that directory differs across the tags, src/auth/manager.rs and src/token_data.rs both changed, and src/internal_identity.rs and src/auth/account_user_id_tests.rs were added.
The claim came from GitHub's compare API, which truncated. repos/openai/codex/compare/rust-v0.154.0...rust-v0.155.1 spans 220 commits and returns a files array of length exactly 300 — the endpoint's cap — and --paginate yields no more. Absence from that list is not absence of change, so filtering it to codex-rs/login/ is precisely the check a truncated compare passes silently. That matters beyond this PR, because it is the check the codex_version rule in .claude/skills/running-tend/SKILL.md asks for by name: "Inspect Codex's auth manager too."
The conclusion survives a real read, so the bump stays low-risk. Both changes are additive — a new get_chatgpt_account_user_id on the auth manager and the parse_chatgpt_account_user_id claims parser behind it, plus #[cfg(test)] module wiring. Nothing touches the refresh-token exchange, the fallthrough to a stale last_refresh, or the access-token parse path. The description just proves a true conclusion with evidence that does not hold, and a future sweep reusing the method would not notice when the conclusion stops being true.
I am rewriting the description with a method that does hold. The live credential-rotation gate is still owed before merge — that part of the description was already accurate, and nothing here changes it.
Comparing the directory rather than the truncated file list
The compare endpoint's cap, and that pagination does not lift it:
$ gh api "repos/openai/codex/compare/rust-v0.154.0...rust-v0.155.1" \
-q '{total_commits, files_returned: (.files|length)}'
{"files_returned":300,"total_commits":220}
Tree SHAs for codex-rs/login at each tag — unaffected by any file cap, and definitive:
rust-v0.154.0 login=63f3c5fc787e370d2d79b48dd31cda1e2ff0cb9c login/src=c0480abe5b46ec47f3d4f00f4a7bbdf46c46f228
rust-v0.155.1 login=080a830a35cd4f231997c2e5a4b490f206b6b910 login/src=e78a0e115a3e2e53730f0e97f3640cbb513541e6
Recursing both login/src trees and diffing the blob SHAs gives the four entries that moved: auth/manager.rs, token_data.rs, and the added internal_identity.rs and auth/account_user_id_tests.rs. Fetching those blobs and diffing them shows the additions named above and no edits to existing auth paths.
Separately checked and not a finding: rust-v0.153.0 and earlier already ship rollout compression, so token_usage.py's rollout-*.jsonl glob is not newly exposed by this bump.
ca259cb to
a0155bf
Compare
…compare cap can't fake (#1344) The weekly pin sweep's `codex_version` rule asks for an inspection of Codex's auth manager before a bump, but names no method. The obvious one — filter `repos/openai/codex/compare/<old>...<new>` to `codex-rs/login/` — silently reports an all-clear it cannot support: that endpoint caps its `files` array at 300 and `--paginate` does not lift the cap, so any release window of a few hundred commits drops the directory from the list whether or not it changed. Nothing downstream catches the false all-clear. `test-codex-surface` is credential-free and does not reach the auth manager, and the rule's own live rotation gate cannot run from an agent session, so a real change to the refresh-token chain would ship into every consumer's Codex jobs under a PR body reporting that the surface was checked. This adds the method that does hold: compare `codex-rs/login`'s tree SHA at each tag, and where the SHAs differ, recurse both trees, diff the blob SHAs, and read the blobs that moved. Tree SHAs are unaffected by any file cap, so the check either finds the change or proves there was none. Evidence: #1342, where the compare-filter method reported `codex-rs/login/` unchanged across `rust-v0.154.0...rust-v0.155.1` while the directory's tree SHA differed and both `auth/manager.rs` and `token_data.rs` had moved. --------- Co-authored-by: tend-agent <[email protected]>
The repo-local half of this week's pin sweep — the files only this repo runs. Both pins published today, after the earlier weekly run swept them in #1341, so neither is a miss that run made. **`astral-sh/setup-uv` v10.1.0 → v10.2.0** in `.config/tend.yaml`'s `setup:`, `ci.yaml`, and `pypi-release.yaml`. The shipped half — the `setup_tend_uv()` macro and the `docs/tend.example.yaml` examples — is #1359, which also covers why v10.2.0 changes no behavior here: its known-checksum additions sit behind the live versions manifest that v10.1.0 already consults, and its merge-queue cache change is out of reach of a step with `enable-cache: false`. The generated `tend-*.yaml` still carry v10.1.0; they take the `setup:` value from this PR at the next nightly regeneration, which is where those refs move. **`wrangler` 4.135.0 → 4.136.1** in `worker/package-lock.json`. Lockfile drift only — `package.json`'s `^4.128.0` already admits it, so `npm update wrangler` is the whole change, and it carries `workerd` 1.20260918.1 → 1.20260921.1, `miniflare` and `@cloudflare/unenv-preset` 2.16.1 → 2.16.2 with it. After it, `npm --prefix worker outdated` prints no rows. Also swept and already current, so absent from the diff: `claude_version` (2.1.278), `mitmproxy_version` (12.2.3) and its `==` pin, `uv_version` (0.12.17), `uv_build`'s range, `WORKTRUNK_VERSION` (0.79.0), `uv lock --upgrade`, `pre-commit autoupdate`, and `site`'s npm tree. `codex_version` is #1342, open since this morning. `data/consumers.json` refreshed clean — `changed: false`, 8 consumers, nothing removed. <details><summary>Verification</summary> `npm --prefix worker test` is 32 passed and `npm --prefix worker run typecheck` is clean against the new lockfile. `uv tool run pre-commit run --all-files` passes all twelve hooks, actionlint included, which is what reads the two hand-maintained workflow files this touches. </details> Weekly pin sweep. Co-authored-by: tend-agent <[email protected]>
Moves
codex_versionin bothcodex/action.yamlandcodex/refresh/action.yamlfrom0.154.0to0.155.1, the current stable@openai/codexrelease. The two defaults move together, as the pin's rule requires, and@openai/[email protected]is published —codex/action.yaml's install step and CI'stest-codex-surfaceboth install it at the same version.Nothing in
0.155.0or0.155.1changes a surface tend's Codex harness depends on. The releases are TUI, voice, Guardian, MCP and app-server daemon work;codex exec's flags and config, plugin installation, skill resolution and model selection are untouched, andtest-codex-surfaceasserts that contract against the pinned version on this PR.0.155.1is a single fix — new local TUI sessions default reasoning summaries back tonone, which only affects interactive sessions.0.155.0carries further rollout-compression work, but compression shipped byrust-v0.153.0and earlier, sotoken_usage.py'ssessions/**/rollout-*.jsonlglob is no more exposed than it was under0.154.0.The credential-rotation gate did not run. The pin's rule asks for an isolated Plus/Pro login driving
codex/refreshand both the full and access-only bundles rotating. An agent session never holds those credentials — the refresh action runs as its own serialized workflow against secrets this session cannot reach — so that check is still owed before merge, not something this PR can report as passed.What is checkable from here says the risk is low.
codex-rs/login/did change across the bump, but only additively:auth/manager.rsgains aget_chatgpt_account_user_idmethod,token_data.rsgains theparse_chatgpt_account_user_idclaims parser behind it, andinternal_identity.rsandauth/account_user_id_tests.rsare new files. Both additions select a local workspace identity from an already-parsed access token. Nothing edits the refresh-token exchange, the fallthrough to a stalelast_refreshwhen an access token will not parse, or any existing auth path — which is what the rule's auth-manager inspection is looking for.How the release window and the auth surface were checked
Stable releases crossed:
rust-v0.155.0(2026-09-17) andrust-v0.155.1(2026-09-18). The0.156.0-alpha.*line is prerelease and out of scope for this pin, which takesalphaonly for a fix not yet released.Don't check the auth surface with the compare endpoint.
repos/openai/codex/compare/rust-v0.154.0...rust-v0.155.1spans 220 commits and returns afilesarray of length exactly 300 — the endpoint's cap — and--paginateyields no more. Filtering that truncated list forcodex-rs/login/returns nothing even though the directory changed, so the filter reports an all-clear it cannot support.Compare the directory's tree SHA instead, which no file cap affects:
They differ, so recurse both
login/srctrees, diff the blob SHAs to get the four entries that moved, and fetch those blobs. That diff is the basis for the additive-only reading above.Separately checked this week and needing no change: Codex's bundled model catalog still lists
gpt-5.6-sol, which isDEFAULT_MODEL_BY_HARNESS["codex"]. The only newer entry isgpt-6-astra, a different family — a cross-tier move is a product decision, not this sweep's.