Repository navigation
chore: bump claude_version to 2.1.280 - #1387
Conversation
tend-agent
left a comment
There was a problem hiding this comment.
Merging this fires a revisit trigger the repo already recorded, and nothing in the PR re-checks it. --model opus is what every Claude-harness workflow passes, so moving the pin moves the alias target from claude-opus-5 to claude-opus-5-5. Decide whether the built-in /code-review replaces the vendored port in TODO.md reaches its "not worth reaching" conclusion from claude-opus-5's row in the built-in's model × effort matrix — that row renders a minimal cell, no angles and no verify — and names "a pinned version whose Opus row is angle-based again" as the first of the three things whose movement reopens the question. A new model id lands on whatever row the matrix gives it, which may be the default row the same section describes as broader (3+5 angles).
The PR body's model-selection pass covers what the alias move costs consumers; this is the one place in the tree whose recorded reasoning is keyed to the specific target, and it reads as settled until someone re-derives it. Confirming needs the built-in read out of a 2.1.280 binary, which this job doesn't run — so the finding is that the premise is now unverified, not that it has flipped.
Not a blocker on the bump itself: the pin matches npm's latest, it is the only site in the tree, and the release-note surfaces are covered.
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_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](https://github.com/openai/codex/releases/tag/rust-v0.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. <details><summary>How the login surface was diffed</summary> Blob listing per tag rather than the compare endpoint, which caps `files` at 300: ```bash 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. </details> **`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. --------- Co-authored-by: tend-agent <[email protected]> Co-authored-by: tend-agent <[email protected]>
Moves
claude_versionfrom 2.1.278 to 2.1.280, npm's currentlatestdist-tag. One stable release: 2.1.279 was never published (its tag 404s on the releases API), so 2.1.280 is the whole window.Model selection — this is the substantive change. 2.1.280 "Added Claude Opus 5.5 (
claude-opus-5-5), now the default Opus model — 1M context, $4/$20 per Mtok with $0.20/Mtok cache reads". Every consumer on the Claude harness runsclaude -p --model opus(DEFAULT_MODEL_BY_HARNESS["claude"]is the bare alias, andrun_claude.pypasses it through unchanged), so merging this pin is what moves their sessions onto Opus 5.5 — the binary resolves the alias, nothing in tend does. Consumers who want the previous target pinmodel:to an explicit id in.config/tend.yaml. This is the drift the "npmlatest, notstable" rule exists for: held at 2.1.278,opuskeeps resolving to the superseded target.Proxy path. 2.1.280 fixes conversations with the advisor on "failing every turn with API Error 400
Input tag 'advisor_20260301'behind a proxy or gateway that doesn't support it; the request now retries without it". Tend runs every session through mitmproxy, so this is tend's exact shape — 2.1.276 was the earlier single-line fix for the same error, and this one adds the retry rather than another special case.Headless robustness. Three fixes land on failure modes that would burn a whole CI session: conversations failing every turn with a "role 'system' must precede an 'assistant' message" API error; a session failing every turn and
/compactwhen its saved history held a malformed notice about MCP tools that could not be loaded; and a crash resuming a session whose transcript holds a malformed system message or a memory-saved notice without its file list. The last one touchesmemory_gist-style resumed state, though tend restores memory through a gist rather than a resumed transcript.Plugin and skill loading — not tend's paths, checked rather than assumed. The
installed_plugins.jsonfix is scoped to "updating a plugin from a GitHub repository or git URL that tracks a branch or tag";install-tend-plugins.shadds a marketplace from a local directory ($AGENT_HOME/tend-marketplace) in a fresh sandbox home and installs once, so there is no update path to hit. The~/.claude/skills/.trashfix keys on amanifest.jsonin that folder; tend's skills arrive as plugins and the repo-local ones are project-scoped, so neither harness writes there.Permissions. The symlink fix ("writes through a symlinked path being judged by their in-tree spelling: …
acceptEdits, allow rules and auto mode no longer approve one landing outside") and the auto-mode retry/backoff fixes are all inside Claude Code's own permission layer. Tend passes--permission-mode bypassPermissionsand takes its boundary from the systemd sandbox instead, so these change nothing here — noting them because a future move onto Claude Code's own gating would depend on them.No change to the stream-json event shapes
run_claude.pyparses for its verdict, to--permission-mode, or to--append-system-prompt/--settingshandling.Weekly pin sweep. The rest of this week's sweep:
codex_versionis its own PR (0.155.1 → 0.156.0);mitmproxy_version(12.2.3),uv_version(0.12.17),uv_build's range,WORKTRUNK_VERSION(0.79.0),uv lock --upgrade,pre-commit autoupdate, and every non-max-sixty/tenduses:ref are already current.data/consumers.jsonrefreshed clean —changed: false, 8 consumers, nothing removed.