Skip to content

chore: bump claude-code to 2.1.278 - #1330

Merged
max-sixty merged 1 commit into
mainfrom
chore/bump-claude-code
Sep 20, 2026
Merged

max-sixty merged 1 commit into
mainfrom
chore/bump-claude-code

Conversation

@tend-agent

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

Copy link
Copy Markdown
Collaborator

Moves claude_version from 2.1.270 to 2.1.278, npm's current latest dist-tag. Eight stable releases, of which four carry changes to surfaces tend depends on.

Headless execution. 2.1.277 fixes claude -p and Agent SDK sessions that "could hang with no result after an internal error; they now report the error and exit with code 1". That is tend's exact completion contract — run_claude.py decides the verdict from the process exit plus the last result event, and treats a turn with no result event as never completed. Before this fix such a run had no exit at all and burned the step's timeout to SIGTERM; now it exits 1 and the annotation names the error. 2.1.277 also fixes conversations failing every request with "text content blocks must be non-empty" when an earlier assistant turn held an empty text block.

$TMPDIR in Bash. 2.1.277 fixes $TMPDIR expanding empty in Bash commands that run outside the sandbox while sandboxing is enabled. Tend's boundary is SRT rather than Claude Code's own sandboxing, so this is not a path tend takes today — noting it because $TMPDIR is load-bearing in the shipped skills, which tell every session to write scratch files there.

Plugin loading. 2.1.277 fixes claude plugin install "sometimes failing and breaking the installed copy when reinstalling a plugin version that a session or another program was using", and fixes plugins from the official marketplace being recorded without their commit in installed_plugins.json. install-tend-plugins.sh runs two claude plugin install calls per job, so a fix to that path is directly in tend's boot sequence.

Model selection. 2.1.274 fixes subagents with model: "opus" leaving the session's model on Bedrock/Vertex/Foundry when the id has no recognizable family — not a path tend takes, since consumers authenticate against the first-party API. Flagged only because model-alias resolution is the drift a stale pin causes.

No change to the stream-json event shapes the verdict parses, to --permission-mode, or to --append-system-prompt/--settings handling across these eight releases.

claude.ai account sync — this PR should not merge ahead of #1328. 2.1.275 added "syncing of the skills and plugins enabled on your claude.ai account to terminal sessions signed in with it", opt out with syncClaudeAiSkills: false or syncClaudeAiPlugins: false. Earlier notes confine that sync to cloud sessions and Claude Desktop (2.1.269 names "skills synced from claude.ai in cloud sessions", 2.1.261 "cloud sessions discarding a plugin synced from claude.ai"), so the terminal-session capability arrives with this release rather than server-side: claude -p under this action is a terminal session signed in with the bot's OAuth token, and at 2.1.270 the client has no such sync. #1328 writes the refusal into the session's --settings; merged before it, this pin loads whatever is enabled on the bot's account into every consumer's CI session, in a process that pushes commits and posts as the bot. Whether that fetch clears the sandbox's --allow-hosts (api.anthropic.com and the GitHub hosts; not claude.ai) is unverified, and decides how urgent the ordering is rather than whether it holds.

Releases crossed

2.1.271, 2.1.272, 2.1.273, 2.1.274, 2.1.275, 2.1.276, 2.1.277, 2.1.278.

2.1.276 is a single-line regression fix for 2.1.275 (400 … Input tag 'advisor_20260301' behind a proxy or gateway) — worth naming because tend runs every session through mitmproxy, so 2.1.275 on its own would have been the wrong stopping point.

Weekly pin sweep. The sandbox boundary's own pins are held this week for a separate reason — see #1329.

npm's latest dist-tag. 2.1.277 fixes `claude -p` hanging with no result
after an internal error, which is tend's completion contract, and fixes
two `claude plugin install` faults on the boot path.

@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.

The terminal-session claude.ai sync arrives inside this range, so this pin is what turns it on — which makes it dependent on #1328 rather than independent of it.

2.1.275: "Added syncing of the skills and plugins enabled on your claude.ai account to terminal sessions signed in with it; opt out with syncClaudeAiSkills: false or syncClaudeAiPlugins: false". Before that release the sync reached cloud sessions and Claude Desktop only — 2.1.269 names "skills synced from claude.ai in cloud sessions", 2.1.261 "cloud sessions discarding a plugin synced from claude.ai". claude -p under this action is a terminal session signed in with the bot's OAuth token, so at 2.1.270 the client has no such sync and at 2.1.278 it does.

That contradicts the description's reason for treating the two PRs as separable ("it wants an opt-out written whether or not this pin moves, because the feature turns on server-side per account rather than with a release"). The first half holds — the opt-out is worth writing regardless — but the second half is what makes ordering not matter, and the release notes say the terminal-session capability ships with a release, this one. syncClaudeAiSkills/syncClaudeAiPlugins exist only on #1328's branch, so a release cut with this merged and #1328 unmerged hands consumers a binary that loads whatever skills and plugins are enabled on the bot's claude.ai account into every CI session — the unreviewed instruction source #1328 exists to refuse, in a process that pushes commits and posts as the bot. Landing #1328 first closes the window. The same claim sits in that PR's settings() docstring, so it wants correcting there too.

What I could not settle: whether the sync's fetch clears the sandbox's --allow-hosts (github.com hosts, raw.githubusercontent.com, api.anthropic.com; claude.ai is not on it). Through api.anthropic.com the exposure is live; to claude.ai it fails closed today. That decides how urgent the ordering is, not whether it holds.

2.1.277's AGENTS.md support, absent from the release-note pass

2.1.277 also added "AGENTS.md support: in a project with no CLAUDE.md, Claude Code reads AGENTS.md instead" — an instruction-source change on the same surface, and the one other note in this range that touches what a session is allowed to read. It needs no work: INSTRUCTION_PATHSPECS in shared/steps/lib/pin-instruction-paths.sh already carries :(glob)**/AGENTS.md, so a PR's own AGENTS.md is pinned to base before the session starts under either harness. Recording it so the next bump doesn't re-derive it.

@max-sixty
max-sixty merged commit 6f5cc2d into main Sep 20, 2026
12 of 13 checks passed
@max-sixty
max-sixty deleted the chore/bump-claude-code branch September 20, 2026 17:37
max-sixty pushed a commit to max-sixty/worktrunk that referenced this pull request Sep 21, 2026
Regenerates the `tend-*` workflows with tend 0.2.13 (from 0.2.11).
Mechanically the diff is the action pin `max-sixty/tend/[email protected]` →
`@0.2.13` in the eight workflows that run the agent, the
`astral-sh/setup-uv` pin `0.12.13` → `0.12.17` in the two that install
uv directly (`tend-mention`, `tend-notifications`), and a regenerated
header comment in all nine.

The upgrade that matters for this repo is in CI polling.
`poll_pr_checks.py` previously treated any gating check that settled
without a red conclusion as green — so a required check belonging to a
**cancelled** or **stale** run, or a `COMPLETED` check carrying no
conclusion at all, let the bot report a PR as green when nothing had
actually verified it. 0.2.13 splits those out as `unverified` and gives
`poll` a distinct exit code for them (max-sixty/tend#1323). Practically:
fewer "checks went green" claims on PRs whose required jobs were
cancelled, at the cost of some polls ending unverified rather than
green.

The rest, in rough order of how visible it is here:

- **Sandbox reliability** — the sandbox runtime now retries past a
transient bridge-socket failure at launch (max-sixty/tend#1327). That
failure is one of the shapes that produces a `tend-outage` issue, so it
should show up as fewer of those.
- **Sandbox environment** — root `/tmp` is writable inside the sandbox
(max-sixty/tend#1324); the `run-tend` skill's note that it was read-only
is gone. This repo's `running-tend` skill still restates that note, so
it goes stale when this merges — I'll follow up separately rather than
mix a skill edit into the generated-workflow diff.
- **Instruction-path pinning** — the `run-tend` skill's description of
which paths get restored from the PR base, and on which events, was
wrong in 0.2.11; `.agents/` is now named alongside `.claude/`, and the
event list is corrected (max-sixty/tend#1311). The restore behavior
itself is unchanged.
- **Auth hygiene** — the bot's claude.ai account is kept out of CI
sessions (max-sixty/tend#1328).
- **Harness pins** — claude-code 2.1.278 (max-sixty/tend#1330), uv
0.12.17 (max-sixty/tend#1331).

`.config/tend.yaml` pins no model, so the harness-default check found
nothing to adjust.

Full comparison:
max-sixty/tend@0.2.11...0.2.13

<details><summary>Copy-on-write sandbox view: landed and reverted within
this range</summary>

max-sixty/tend#1333 and max-sixty/tend#1334 moved the agent into the
job's own checkout and home through a copy-on-write view;
max-sixty/tend#1339 reverted both before 0.2.13. Nothing from that work
is in this diff — noted so a later reader doesn't chase it out of the
commit list.

</details>

Co-authored-by: worktrunk-bot <[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