Repository navigation
chore: bump codex_version to 0.156.0 - #1388
Conversation
tend-agent
left a comment
There was a problem hiding this comment.
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.
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]>
Moves
codex_versionfrom 0.155.1 to 0.156.0 in bothcodex/action.yamlandcodex/refresh/action.yaml, npm's currentlatestdist-tag. 0.156.0 is the only stable release in the window — everything else published since 0.155.1 is a0.156.0-alphaor0.157.0-alphaprerelease.The auth-manager inspection is the part that mattered. 0.156.0 refactors
codex-rs/loginsubstantially: a newoauth/module (authorization,client,diagnostics,error,pkce), a newgateway_auth*family, andauth/manager/workspace_routing.rsalongside an editedauth/manager.rs. Both properties the refresh action depends on survive it.should_refresh_proactivelyinauth/manager.rsis byte-identical across the two tags: it triesparse_jwt_expiration(&tokens.access_token)and, when that doesn't matchOk(Some(_)), falls through to comparinglast_refreshagainstTOKEN_REFRESH_INTERVAL.stage_refreshinshared/steps/codex_subscription_auth.pydepends on exactly that — it writesaccess_token: "tend-forces-refresh"(unparsable) andlast_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 nowOAuthClient::refresh(RefreshTokenGrant { refresh_token, resource: None })against the sameTokenEndpoint, andoauth/client.rsbuilds the parameter list asgrant_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 keepsTokenEncoding::Json, matching the old explicitContent-Type: application/json, and error classification is preserved verbatim: 401, aOther-reason code, or a 400 carryinginvalid_grantstayPermanent; transport and invalid-response failures stayTransient.gateway_auth*is a separate new grant path, not the onemanager.rsdrives for ChatGPT credentials.How the login surface was diffed
Blob listing per tag rather than the compare endpoint, which caps
filesat 300: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 newoauth/andgateway_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 execis unaffected by the daemon work. 0.156.0 adds a local background server with/daemonand a--no-daemonbypass.codex-rs/exechas nodaemonhits at all; startup and auto-start live incodex-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-sandboxon 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 addor theInstalled plugin root:linerunner.pyparses, orAGENTS.mdslash-command resolution. CI'stest-codex-surfacejob installs the new pin and asserts the credential-free contract directly — theexecflags (--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") fromcodex-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 fromtruncate_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 nogpt-5.7exists 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.yamlsets noharness:override), so no scheduledcodex-auth-refreshhere 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_version2.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/tenduses:refs) is already current, and the npm lockfile drift is its own repo-local PR.