chore(deps): update dependency @anthropic-ai/claude-code to v2.1.331 #71
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/anthropic-ai-claude-code-2.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
2.1.328→2.1.331Release Notes
anthropics/claude-code (@anthropic-ai/claude-code)
v2.1.331Compare Source
oidc.groups_jsonpathto the Claude apps gateway, to read groups from the matching entries of a list of objects with a small subset of JSONPath (RFC 9535)claude doctorthat reports whether the API can be reached, with the HTTP status or the error, or says why it wasn't testedCLAUDE_CODE_DISABLE_RESPONSE_COMPRESSIONto ask for uncompressed model responses behind a proxy that cuts compressed ones off; not advised yet for self-hosted runners or Remote ControlCLAUDE_GATEWAY_IDP_CONNECT_BY_HOSTNAME=1for Claude apps gateways: withoidc.use_proxy: true, sign-in requests hand the proxy anhttpsIdP's hostname even withNO_PROXYsetgen_ai.usage.*,gen_ai.response.modelandgen_ai.operation.nametoclaude_code.llm_requesttrace spans;gen_ai.usage.input_tokensincludes prompt cache tokensoptionalDependenciesto plugin manifests: plugins that install with the plugin listing them and can be disabled or uninstalled on their own/install-github-appskipping the repository step after setup warnings when no repository was found, and Esc not going back from its workflow list and sign-in steps/diffhiding its key hints and not selecting files in windows of 24 to 26 rows, and leaving out files added withgit add -Nin a repository with no commits/bugin fullscreen hiding its Yes and No answers behind a long report, and Yes staying out of view in very short windows--resumeor--continuein another permission mode losing thinking and the prompt cache; one begun in a mode that asks keeps that mode's limits on scripts!or slash command was typed while a script was running/desktopdownloading the older Claude Desktop installer, and asking for an update when an older install's folder was left behindclaude plugin install,marketplace addand similar commands hanging with no output when managed settings needed an approval that could not be asked forAgent(model:*), blocking Claude's follow-up message to a subagent started on this version with no model namedSkill(name:*)allow rules outside local settings--barenot telling Claude what its scripts can call@file#10-12attaching the whole file instead of those lines.claude/settings.local.jsonno longer waits on gitclaude auth login --console: it is now much shorter/cdand/add-dirshow their choices in fewer rows, and the prompt at launch keeps the folder path in view when it has many warnings/ideand for/clear,/compactor/rewindin a subagent's view to list Yes first; they still start on No, so Down then Enter now answers NoPermissionDeniedhook'sretry: truetells Claude: make the refused call again only if you asked for that callextraKnownMarketplaceswill auto-update by default. To opt one out, set"autoUpdate": falseon its entryHKLMpolicy outranksmanaged-settings.jsonand a broken value can stop the start/usage-credits, which can't send a request to their admin from the panelcd@app.ts#5-10sending the whole file, or its first 2,000 lines, instead of the selected lines/wordsuch as the path/apistands beside other text, and running a typed slash command without its argumentsELECTRON_RUN_AS_NODE=1files.encodingis not UTF-8\u200Fescapes on lines with Hebrew, Arabic or Persian textallowManagedPermissionRulesOnlyis set and the card would offer an allow rule; key 2 on those cards now answers Nov2.1.330Compare Source
claude auth login, Claude Code applies the organization's settings and uses its cloud provider or gateway/configCLAUDE_CODE_FULL_SIGN_IN_LINK=1to print the full sign-in link, if the short one shows an error or a script reads values from it--start-dir/SELF_HOSTED_RUNNER_START_DIRto have Claude start its work in a folder of a repository, while settings and hooks load as without itcommandPrintedtoclaude plugin install --jsonresults, true when the plugin's install command wrote to stderr, andcommandFailedwhen it exited with an error, was killed or timed outclaude_code_self_hosted_runner_order_to_registered_secondsto the self-hosted runner's/metrics: seconds from work order issued to registration accepted, on orchestrator-spawned runnersclaude_code_self_hosted_runner_order_to_first_session_secondsto the self-hosted runner's/metrics: seconds from work order to first session handed over, on runners started for a sessionExitWorktreeand the worktree exit dialog deleting a worktree that another running Claude Code session was working in--continueand--resumeopening an empty session or failing when the last saved message had a missing or invalid timestampnode_modules/rewindsometimes restoring an older version of a file when two queued prompts, or stacked skills, ran together right after a turn that changed itclaude plugincommands ran at the same time~/.claude.jsonbeing kept, and displacing good ones, when the disk was full/compact/contextundercounting system tools in Code Mode before Claude's first replyclaude -p --continueclaude -pexiting 0 with no message when its output went to a file on a full disk: it now prints an error and exits 1, though a full NFS export may go unnoticed/contextbut before the first message/mcplisting plugin servers as built-in: they now stand under "Plugin MCPs",--mcp-configand built-in servers under "Other MCPs", and a server's page names its plugin/statscounting new activity in UTC days instead of your local time zone/ultrareviewfailing or reviewing the wrong code after the shell moved into another repository: it now stops and names both foldersclaude daemon logsnever exiting inside a git repository when there is no log fileReadwith a page range showing both halves of a scanned two-page spread on each of its pages/configshowing only one of its four choices in a 24-row fullscreen windowopusplanorhaiku/effortlevel when a gateway refuses the small fast modelclaude -pon Google Cloud's Agent Platform ignoring--settings '{"fastMode":true}'when the model comes fromANTHROPIC_MODELor a settings file; such runs now bill at the fast mode priceforceLoginOrgUUIDbeing refused after one temporary server error or dropped connectionclaude mcp removegiving no way forward for a claude.ai connector: it now says to turn it off in /mcp or remove it on claude.ai/install-github-appand/design-loginshowing a generic failure for an account on hold instead of the on-hold notice and appeal link--push-outcome-on-releaseis set--startup-timeout-minis from 2 to about 6pkill -fin self-hosted runner sessions on Linux ending its own shell with exit code 144, or the runner (needs apkillwith--ignore-ancestors)spawn-runnerhook keeping the orchestrator from claiming sessions for its free slots; it now polls every 4 to 6 seconds while a slot is freelast_poll_age_secondsreading 0 while the runner had never polled successfully--resume, because/resumeinside a running session doesn't run the taskclaude plugin validatewrongly warning that a mod'sAbovePromptorAbovePromptListhook never runs in VS Code/design-syncdeleting a file it had just uploaded when Claude Design stored that file under a changed namemax_tokensexceeds a model's or gateway's limitclaude auth loginandclaude setup-token: it is now much shorter/configsearch: most settings whose name starts with what you type come first, "effort" finds Model, and "dark" or "light" finds Theme/resume: sessions where you only opened a screen such as/modeland left are no longer listed/mcpand/plugin: a server's page now stays open, with the cause in view, when the server still fails or needs sign-in/pluginin fullscreen mode: the page of a plugin with errors now starts with those errors/ultrareview's cost confirmation on Team and Enterprise plans: it now says how much of your monthly spend limit is left when that is less than a review usually costs/loopto run up to 30 days instead of 7 while their session keeps running, and say when they end; tasks made before this release still end at 7 daysrmcommands aimed at the root, home, a top-level folder or the working folder to ask for approval; where nobody can answer, they're refuseddeniedMcpServersname entries to hide only the named claude.ai connector, not others at its URL; to block them all, deny its exact URLclaude --teleportin some setups to print the git commands for switching branch instead of running them; with-pit exits 1 until you switchCLAUDE_CODE_SIMPLE_SYSTEM_PROMPT=0gives every model the full onemodelsetting, other thancontext: forkskills, to leave subagents, forks, compaction and/recapon the session's modelspawn-runnerhooks to start while earlier ones still run, up to--hook-concurrencyper orchestrator (4 by default); set it to 1 if yours can't run beside anotherbashEditDiffEnabledto true in managed settings to get every diffhaikuorsonnetin theirmodelfield/design-sync's fallback build of the reference Storybook to use only a Storybook installed in the project/forkto fork a conversation after its last reply (#69272)/workflows, which opens the agent map with running workflowsclaudeCode.escapeStopsClaudesetting; turn it off so Escape does not stop Claude (#91536)claudeCode.pinPromptsetting to let your message scroll away instead of staying pinnedclaudeCode.contextUsageThresholdsetting for when the context indicator shows (#93036)promptargument to the "Open in Side Bar" command for keybindings and extensions/rewindrestoring files, and a double click on Remove or Delete removing a memory, MCP server or plugin marketplace, without confirmation#,?or%20, such as aC#folder/loopschedules a second timev2.1.329Compare Source
/loopwakeups, the goal and this conversation's forks to/tasks; x stops one after asking/mcpthat shows the JSON-RPC error message of a remote HTTP MCP server that refuses the connection/statusthat names managed marketplaces that get no automatic updates, and why~/.claude.jsonsometimes being reset to defaults when a network stall or file lock made it unreadable and cleared during a save/terminal-setupcorrupting VS Code settings or keybindings files around block comments, and reporting success while losing the Shift+Enter binding where keybindings.json has an unclosed string/teleportreplacing your open conversation: the pick now starts a new session, as/cleardoes, and/resumebrings the old one back/usage-creditsasking Pro and Max users to log in again after opening the browser, and the link disappearing after 8 seconds if the browser doesn't open and a task stops for usage credits/usagesaying usage credits are off when they had run out or reached the monthly limit, and/modelnot telling Pro and Max users when that limit blocks a model that runs on usage credits/modelreplacing your saved model with your organization's default when the Default row already showed your saved model.docx,.xlsxor.pptxfiles that MCP servers or websites send asapplication/octet-streambeing saved as .bin, which kept Claude from reading the PDFs and images/code-review <pr number>sometimes reviewing the checked-out branch instead of the pull request without saying so: it now reads the pull request withgh pr diff, or says when it can't/code-reviewstopping at a permission prompt, on most models, to look for a~/.claude/CLAUDE.mdthat doesn't exist--push-outcome-on-releasesometimes deleting a session's branch on the git host/clearin sessions run by Claude Desktop, IDEs or the SDKclaude mcp loginand/mcpsaying a service doesn't accept sign-ins from Claude Code when the service's client registration had been retired (HTTP 410 Gone)rma symlink that points outside the working directory or at itself/sandboxon Linux listingallowUnixSocketsentries as allowed: they don't open those sockets there, and/sandboxnow says so/install-github-appreload_pluginsor when the account's plugin list drops it/login--add-dirnames the working directory or Claude Code starts in the home folderautoCompactWindowsetting in the project's.claude/settings.jsonCLAUDE_AUTOCOMPACT_PCT_OVERRIDEstaying in effect in a running session after it is removed from settings.jsoneffortparameter being ignored for named teammates in agent teams/auto-mode-setupignoring recent auto mode denials when it scans a project for rules to suggest; it may now offer allow rules from them, and you review each before it's saved.claude/settings.local.jsonis unreadable or malformed/team-onboardingreporting a guide as shared on Team and Enterprise plans when the server refused the upload/help, history search and the background tasks list losing rows or titles in short windows, and tables wrapping in dialogs/passesshowing the wrong number of passes after a server error, and offering usage credits for sharing when no guest passes are leftclaude --helpoutput being cut short when piped to another program/terminal-setupturning on "Use Option as Meta key" in Terminal.app on macOS 27, and tips there suggesting Option+Enter instead of Shift+Entergit lfs pullfetches the contentlet x;keeping the value that an earlier script gavextoolsin sessions with more than 4,096 tools/code-reviewfindings card often showing "high" for a review that ran at medium, on most models/modeland/rewindignoringkeybindings.json/configswitches that control them in a running session/add-dir,/tuifeedback and the save-workflow form/configsaying nothing, or "dismissed", after changing many settings/statusnot naming the model that opusplan and haiku use in plan modeclaude doctoradvising a Keychain unlock inside a macOS sandbox, where unlocking can't help_(no suggestion)_/renameandUserPromptSubmithook titles inclaude remote-controlsessions not showing on claude.ai and mobile/tuiand other in-place restarts to wait briefly for a login refresh, so they are less likely to sign you out--resumeor--continueof a session that holds screenshots or large tool results--resumeof their own session still runs them/code-reviewwith no target on most models to review the whole branch against the default branch, and fixed it losing the diff on multi-commit branchesgit statusless often so most requests wait less in large repositories; a git command that discards changes may be blocked until the working tree is checked/code-review <pr number> --fix, and/code-reviewgiven a pull request URL, to stop without reviewing whengh pr diffis refused or failsaccess_control.allow_cidrsis empty to a notice at every start, boxed in text logs: never expose the gateway to the public internet_repos/clones/<host>/in the base folder; no clone moves--repository-folderto take most folders in the base folder at--capacity 1(above 1, one there stops start-up); another repository's session overlapping one is refused"onFailure": "block"on a command, HTTP or MCP tool hook that must refuselog,previeworsleep, which it used to refuseClaude Code-write-checkitem/tasksheader and the footer's background count to one number covering shells, monitors, MCP calls, agents, workflows and scheduled tasksmonitor, notshell, inbackground_tasksmax_tokenserror; behind a gateway whose model takes fewer output tokens, setCLAUDE_CODE_MAX_OUTPUT_TOKENSto that limitclaudeCode.lockEditorGroupsis off (#108884)3~5 … 7~10) losing their tildes and showing struck-through text between them; only~~text~~is struck through nowConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.
Codecov Results 📊
✅ Patch coverage is 100.00%. Project has 5549 uncovered lines.
Generated by Codecov Action
🔎 ojo scan results
No findings.
Updates
@anthropic-ai/claude-codeweb/package.json)2.1.328→2.1.331The diff changes one line:
.forgejo/workflows/claude-review.yml:35. Nothing changes ingo.mod,go.sum,web/package.json,web/package-lock.jsonor any Dockerfile, so no transitive dependency moves. The CLI's only dependencies are its per-platform binaries inoptionalDependencies(e.g.@anthropic-ai/claude-code-linux-x64). Those are pinned to the same version, so they also move from2.1.328to2.1.331. The CLI is installed withnpm install -gat.forgejo/workflows/claude-review.yml:39.Changelog
@anthropic-ai/claude-code2.1.328 → 2.1.331. Sources: the release notes in the PR description for v2.1.329, v2.1.330 and v2.1.331, which cover the whole range, and the upstream CHANGELOG. I checked package metadata against the npm registry (2.1.328, 2.1.331).Package metadata:
engines.nodeis>=22.0.0in both versions, and the licence isSEE LICENSE IN README.mdin both, so neither changed. No new runtimedependencies(the field is empty in both). 2.1.331 was published by GitHub Actions through npm trusted publishing (OIDC).None of the three releases lists a security fix or CVE/GHSA id.
Behaviour changes relevant to how we run it (headless
claude -p, restricted--tools, no Bash, no hooks, no MCP):max_tokenserror names a lower limit. 2.1.330 reverted that removal, so the range as a whole leaves this behaviour unchanged.claude -pused to exit 0 with no message when writing its output to a file on a full disk. It now prints an error and exits 1.rmcommands now need approval, and are refused when nobody can answer.extraKnownMarketplaceswill auto-update by default.Notable fixes:
/compactand auto-compact could lose part of the summary.The rest is mostly Code Mode, self-hosted runner (Anthropic's runner, not Forgejo's), Remote Control, Windows and VS Code fixes and features. We don't use any of those.
Transitive updates: only the pinned per-platform binary packages listed above.
Concerns
scripts/claude-pr-review.sh). The Go API, the web app and the deployed images don't change.-p,--toolslimited toRead Grep Glob(plusWebFetch WebSearchon bot PRs),--strict-mcp-config,--setting-sources user,--no-session-persistenceand--output-format text(scripts/claude-pr-review.sh:172-213).rm-approval change, the hook changes and the self-hosted runner changes don't apply: there is no Bash tool and no hooks.set -euo pipefail(scripts/claude-pr-review.sh:23), a failed write ofraw-review.mdnow fails the job instead of producing an empty review.CLAUDE_CODE_OAUTH_TOKENcomes from such an account.--tools(comment atscripts/claude-pr-review.sh:196-201). I couldn't confirm that--toolsand--strict-mcp-configalso exclude easel and Code Mode scripting. Easel only draws charts, so the impact would be small, but it's worth checking once in a job log.>=22.0.0, which matchesnode-version: 22at.forgejo/workflows/claude-review.yml:30. No new dependencies, no licence change, no lockfile churn..forgejo/workflows/claude-review.yml:39). This PR doesn't change that.test / go,test / web,security-scan,codecov/patch(100.00%) andcodecov/project(54.97%, no base report).test / coverage-badge.Summary
This is a patch bump of the Claude Code CLI used only by the CI review job, covering three releases: 2.1.329, 2.1.330 and 2.1.331. It brings reliability fixes that matter for headless runs (WebFetch hangs, silent long replies,
-pexit codes on a full disk). The Node requirement and licence are unchanged, and none of the changed behaviour touches the Read/Grep/Glob/WebFetch setup we use.Merge after manual check: in the claude-review job log for this PR, confirm that the run still exposes only the allowed tools, with no Code Mode scripting and no "easel" chart tool, and that it posted its comment normally.
Claude dependency-update review of
c0de775143· claude-opus-5-53679ac0d26fae3e9a4f5chore(deps): update dependency @anthropic-ai/claude-code to v2.1.329to chore(deps): update dependency @anthropic-ai/claude-code to v2.1.330fae3e9a4f5c0de775143chore(deps): update dependency @anthropic-ai/claude-code to v2.1.330to chore(deps): update dependency @anthropic-ai/claude-code to v2.1.331View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.