self-hosted-runner
The tracked changes tagged self-hosted-runner, newest release first. Every sentence is an item's summary.
Goes with
Changes
Claude Code v2.1.332
-
Self-hosted runner: CLAUDE_CODE_OAUTH_TOKEN prefixes can now end in oat02- as well as oat01-; update proxy rules and log scrubbers and mask the whole value.
-
Fixed self-hosted runner sessions failing their first clone under Anthropic-managed git when git config has an includeIf gitdir or onbranch section.
-
Self-hosted runner: fixed --configure-git sometimes reporting a hung git --version as a git not on PATH.
-
claude self-hosted-runner setup with no arguments on macOS and Linux now asks for the environment key in the terminal and hides it as it is pasted.
Claude Code v2.1.330
-
Self-hosted runner: a 403 such as from an IP allowlist is now logged with the server's reason instead of as a bad secret or token, so log alerts matching the old wording need updating.
-
Self-hosted runner: spawn-runner hooks now start while earlier ones still run, up to --hook-concurrency (4 by default); users whose hooks cannot run side by side must set it to 1.
-
Self-hosted runner gained --start-dir and SELF_HOSTED_RUNNER_START_DIR to start Claude's work in a folder of a repository while settings and hooks load as usual.
-
Cloud and self-hosted runner sessions show a notice when a plugin marketplace cannot be fetched because its repository is not one of the session's repositories.
-
Self-hosted runner shows a notice when Anthropic-managed git refuses a plugin's own repository, naming the plugin and the next step.
+17 more
-
Self-hosted runner /metrics adds claude_code_self_hosted_runner_order_to_registered_seconds for time from work order to accepted registration on orchestrator-spawned runners.
-
Self-hosted runner /metrics adds claude_code_self_hosted_runner_order_to_first_session_seconds for time from work order to first session handed over.
-
Fixed self-hosted runners ignoring a session until they exited after its failure report was lost or the session was given back to the same runner.
-
Fixed self-hosted sessions losing prompt cache and earlier thinking when the list of repositories a restart could not prepare changed.
-
Self-hosted runner: fixed tool calls behind a permission prompt vanishing with no result when a new runner took over the prompt, in sessions with telemetry off.
-
Fixed resumed self-hosted runner sessions starting without their pushed work in large repositories when --push-outcome-on-release is set.
-
Fixed self-hosted runner sessions shown as working when Claude Code hangs at every start and --startup-timeout-min is from 2 to about 6.
-
Fixed pkill -f in self-hosted runner sessions on Linux ending the shell with exit code 144 or the runner itself; the fix needs pkill with --ignore-ancestors.
-
Fixed scheduled tasks on self-hosted runners having no tool to notify their owner when telemetry is off or a third-party provider is used.
-
Self-hosted runner: fixed one slow spawn-runner hook stopping the orchestrator from claiming sessions for free slots; it now polls every 4 to 6 seconds while a slot is free.
-
Fixed self-hosted runners' warn mode for repository settings stopping at the first finding of most kinds; it now continues up to 50 findings per session and says when it stops early.
-
Self-hosted runner: fixed runners starting on a full disk taking sessions and failing them; they now wait for room and exit 1 after a minute with no session unless started from a work order.
-
Self-hosted runner: a failed start with no git credentials now says whom to ask and what to do if the repository is wrong, instead of suggesting a retry.
-
Fixed the self-hosted runner's last_poll_age_seconds reading 0 when the runner had never polled successfully.
-
Improved self-hosted runner sessions on Amazon Bedrock or Google Cloud Agent Platform to say when they start on another default model because the account refused the first.
-
Self-hosted runner: Bash commands skip the file diff when nothing needs it, so transcripts may lack it; set bashEditDiffEnabled to true in managed settings to get every diff.
-
Self-hosted runners stop a session's start at once, without trying other runners, when a checkout hook exits with status 108.
Claude Code v2.1.329
-
Self-hosted runner: a second host name's clone of the same owner/name now goes under _repos/clones/<host>/ in the base folder, though no existing clone moves.
-
Self-hosted runner: repositories with unusual characters in their address path now clone anew into a new folder, so rules and volumes naming the old folder stop applying while the old clone stays.
-
Self-hosted runner: --repository-folder now takes most folders in the base folder at --capacity 1, above 1 a folder there stops start-up, and overlapping sessions from another repository are refused.
-
Self-hosted runner: fixed --push-outcome-on-release sometimes deleting a session's branch on the git host.
-
Self-hosted runner: fixed setup failing on Git LFS repositories cloned through Anthropic-managed git; sessions start on pointer files and git lfs pull fetches content.
+3 more
-
Fixed self-hosted environment sessions not starting from a git remote using an SSH host alias, GitHub SSH certificates or a GHE.com SSH user; the alias error now gives two git commands.
-
Fixed remote MCP servers in self-hosted runner sessions staying without tools or disconnecting over https after a timeout or network error.
-
Fixed self-hosted runner sessions being shown as unresponsive while Claude Code was still starting.
Claude Code v2.1.328
-
The built-in gh api is off by default where settings guard Claude's GitHub tools by name; --use-anthropic-gh true turns it on.
-
Self-hosted runner gains --repository-folder to name the session folder for a repository at --capacity 1, instead of its path under the base folder, which cannot be a symbolic link.
-
Self-hosted runner shows a start-up warning when the host's settings.json sets a default permission mode that sessions ignore.
-
claude self-hosted-runner orchestrator gains --hook-label to pass chosen session labels to the spawn-runner hook.
-
claude --environment gains --metadata key=value to label a session for the spawn-runner hook.
+20 more
-
The orchestrator /metrics endpoint adds claude_code_self_hosted_orchestrator_session_queue_wait_by_reason_seconds, separating a re-opened session's wait from a new one's.
-
The orchestrator adds the metric claude_code_self_hosted_orchestrator_sessions_given_up_total, counting by cause how often Anthropic gave up starting a runner for a session.
-
Self-hosted runner no longer stops all running sessions when a proxy or web filter answers a poll with HTTP 200 and a body such as {}; such polls are retried.
-
Self-hosted runner no longer deletes a kept clone's objects or refs, or commits existing only there, after a temporary disk error; that start now fails instead.
-
Self-hosted runners no longer stop when their token runs out on a host whose clock is slow or was set back.
-
Sessions with Anthropic-managed git keep GitHub access after a script or hook in the session runs claude again.
-
Self-hosted runners with Anthropic-managed git can fetch and push when the machine's git config sets http.proactiveAuth.
-
A self-hosted runner whose setup fails after registering now deregisters with a reason, and an on-demand runner reports the failed start.
-
Archiving or requeueing a session takes effect while it waits for another session to prepare the same repository at --capacity above 1.
-
A session with a damaged .claude.json starts on defaults under --trust-workspace false, with MCP servers turned back off, instead of failing every later start.
-
A failed start's message keeps the words saying what failed when a checkout hook or git printed a lot.
-
The self-hosted runner no longer skips its post-session hook when a disk stalls for a few seconds; on a dead disk a session's end can take 25 seconds longer by default.
-
A self-hosted session that resumes in a new Claude config directory keeps its task list.
-
Claude is told when a self-hosted session starts without one of its repositories, and why.
-
--correlation-id of claude --environment reaches the spawn-runner hook.
-
The self-hosted runner setup wizard's key rotation advice now warns that revoking a key stops the sessions running under it.
-
Resumed self-hosted runner sessions check whether earlier work is still there and say what is missing.
-
A claude run by a wrapper script before the session's own claude is up, or after it has ended, has no Anthropic-managed git.
-
CLAUDE_RUNNER_SESSION_UUID and CLAUDE_CODE_REMOTE_SESSION_UUID are both set for the session and its checkout, post-session and spawn-runner hooks.
-
Self-hosted runners at --capacity 1 refuse a session earlier when the path of a repository it pushes to is a symbolic link.
Claude Code v2.1.326
-
Self-hosted runners with --trust-workspace false ignore more repository settings; such values must be set in user or managed settings.
-
Self-hosted runner Linux and macOS sessions with no gh get a built-in gh api by default via Anthropic; --use-anthropic-gh false turns it off.
-
claude self-hosted-runner no longer asks for new tokens nonstop when a refreshed token is already due.
-
Self-hosted runners with --trust-workspace false ignore more repository settings.
Claude Code v2.1.325
-
Changed requests for settings, permission rules, hooks, or status over cloud or self-hosted session connections to return less or be refused; what applies in the session is unchanged.
-
Changed self-hosted runners to refuse a session whose session folder or repository path is a symbolic link, except a checkout hook's checkout.
-
Fixed self-hosted runner sessions with several repositories being unable to use a repository added mid-session.
-
Fixed deny rules not applying to a permission approval arriving after Claude Code restarts in self-hosted runner and remote-control sessions.
Claude Code v2.1.323
-
Reverted the self-hosted runner exit code for a superseded on-demand work order to 1; versions 2.1.321 and 2.1.322 had changed it to 0.
-
Changed self-hosted runner sessions at a connector approval prompt or sign-in to be released as paused at the idle or lifetime limit; late answers resume from a fresh clone.
-
Changed self-hosted runners under --trust-workspace false and VS Code sessions in untrusted folders so repository settings can no longer disable hooks or toggle plugins.
-
[Claude Code on the web] Fixed self-hosted sessions staying on Starting Claude Code after start when a paused session was reopened without a message.
-
[Claude Code on the web] Fixed a paused self-hosted session sometimes still showing Sending and a Stop button under the Session paused banner.
+2 more
-
[Claude Code on the web] Fixed an approval prompt sometimes disappearing from a tab after a self-hosted runner released the session while waiting for an answer.
-
[Claude Code on the web] Added the No repository option to the repository picker for new sessions on a self-hosted environment.
Claude Code v2.1.317
-
Adds the CLAUDE_CODE_DISABLE_NESTED_SESSION_ID environment variable; setting it to 1 on a self-hosted runner makes claude -p inside a session use that session's ID and transcript, as in earlier versions.
-
Fixes self-hosted runner sessions losing recent turns or the whole conversation when restarted while a plan waited for approval.
-
Fixes claude -p run inside a cloud or self-hosted runner session sharing that session's ID, which wrote into its transcript and could make a restart resume the wrong conversation.
-
Fixes claude -p run inside a cloud or self-hosted runner session generating its own title and sending it to that session.
-
Improves self-hosted runner recovery: after a 5xx other than 501 or 529, the runner's next poll opens a new connection instead of reusing the failed one.
+4 more
-
Improves self-hosted runner session recovery: after a 5xx other than 501 or 529, the session opens new connections instead of reusing the failed one.
-
Improves self-hosted runner session recovery: after a heartbeat gets no answer, the session opens new connections instead of trying each idle one in turn.
-
Self-hosted runner: fixes Claude not seeing the interrupted tool call when a session moves to a new runner and the turn is older than CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MS.
-
Self-hosted runner: fixes an MCP server that was switched off coming back on after the session moved to a new machine, when the session service had refused to save the switch.
Claude Code v2.1.316
-
Fixed, in the self-hosted runner, a message sent while Claude was working being answered after a Stop once the session's process had been replaced.
-
Fixed, in the self-hosted runner, an MCP server's on/off switch sometimes being lost when a session moved to a new machine.
Claude Code v2.1.314
-
Fixed a self-hosted runner moving an idle session to another runner instead of pausing it when the pause request lost its connection before Anthropic answered.
-
Improved the self-hosted runner error for a session branch missing from the git remote, which now covers never-pushed branches, explains each fix, and no longer suggests retrying.
-
Fixed recently used self-hosted environments never appearing among recent environments on the cloud new session card.
-
Fixed follow-up Slack messages showing no progress while the session waits for a self-hosted runner; Claude now posts a wait notice in the thread.
Claude Code v2.1.311
-
Added --hold-idle-file and --max-hold-min options to self-hosted-runner to keep an idle session while the host reports processes it left running.
-
Self-hosted runner: Fixed a session failing to start when a rate limit blocks an added read-only repository; it now starts without that repository.
Claude Code v2.1.309
-
In the self-hosted runner, --startup-timeout-min no longer stops a session whose first prompt is still working in a subagent; a frozen process is still stopped.
-
In the self-hosted runner, a session that moves to a new runner now shows Claude the interrupted tool call, marked as outcome unknown.
Claude Code v2.1.307
-
Changed self-hosted runner checkout hooks to stop after 30 minutes by default, failing session setup; use --checkout-hook-timeout-min to set a longer timeout or 0 to disable the limit.
-
Fixed a conversation cleared with /clear sometimes returning when a cloud or self-hosted runner session restarted.
-
Fixed self-hosted runner sessions with --use-anthropic-git-proxy committing a .claude/settings.local.json left in the clone by an earlier session.
-
Fixed archiving or requeueing a session, or stopping the runner, during its checkout hook leaving the hook's processes running and the runner's slot held.
-
Improved web search errors in cloud and self-hosted runner sessions: a 403 search refusal with a reason now shows that reason instead of a generic 'Authentication error'.
+2 more
-
Changed the certificate file built for Anthropic-managed git to filter trusted certificates as the CLI does; a [runner:warn] line reports the number left out.
-
Fixed the 'Waiting for a runner' status on self-hosted environments being cut off; with on-demand runners it now counts up from the last message and shows failed attempts.
Claude Code v2.1.305
-
Fixed a self-hosted runner start script that shares only its stdout with the runner or orchestrator failing with 'Resource temporarily unavailable' when TERM is set (a 2.1.300 regression).
-
Fixed repository access failing since 2.1.296 for self-hosted runners when a git credential helper or askpass program reads its settings through GIT_CONFIG.
-
Fixed the self-hosted orchestrator reporting a spawn-runner hook as timed out when a runner it started in the background kept its output open.
-
Improved deleting a self-hosted environment so the dialog and error messages say what blocks the delete and what it will affect.
Claude Code v2.1.304
-
Self-hosted runner: improved the error shown when the git host answers "not found" for a session's repository; it now names the repository and whom to ask.
Claude Code v2.1.302
-
Self-hosted runner: fixed git fetches failing with "bad object refs/heads" in sessions that reuse a checkout stored in git's reftable format.
-
[Cloud sessions] Fixed "Rewind to here" failing on every message except the newest; self-hosted runners need Claude Code v2.1.246 or later.
Claude Code v2.1.301
-
On the self-hosted runner, sessions started from Slack can now find and attach a repository when managed settings restrict MCP servers; deniedMcpServers keeps those tools off.
-
On the self-hosted runner, sessions are no longer reported as having a deleted source branch and not retried when an unrelated failure quotes git's missing-ref wording.
-
On the self-hosted runner, the log no longer promises a retry of a failed or declined session release for a session that is ending; repeated failures now show a count.
Claude Code v2.1.299
-
Changed MCP requests in cloud and self-hosted runner sessions to no longer follow HTTP redirects from the session MCP proxy.
-
Added --shutdown-drain-sec to claude self-hosted-runner orchestrator so on SIGTERM it stops polling and lets the in-flight poll and running spawn hooks finish within that many seconds.
-
Fixed self-hosted runner sessions shutting down MCP servers added through an --exec-path wrapper's --mcp-config when connectors change mid-session.
-
Fixed self-hosted runner sessions showing tracked files as staged deletions when starting in a reused clone whose remote is still empty.
-
Self-hosted runner: Improved the output of setup and doctor when the runner's machine has no git credentials.
+6 more
-
Self-hosted runner: Fixed sessions that wrote output before their first turn having no release timer, ignoring --retire-at and delaying shutdown.
-
Cloud sessions: Fixed Sessions search in self-hosted environment admin details finding nothing when a session ID from a link is pasted.
-
Cloud sessions: Fixed Sessions and Runners lists in self-hosted environment admin details saying the list is empty when a search has no matches.
-
Cloud sessions: Improved the deploy command shown when creating a self-hosted environment or key; it shows in full, wraps between arguments and has a copy button.
-
Cloud sessions: Changed deleting a self-hosted environment to turn off its routines immediately, showing the reason on each routine.
-
Claude Tag: Fixed Claude in Slack sometimes ending a turn without posting its answer when a self-hosted runner image has no python3.
Claude Code v2.1.296
-
Fixed claude self-hosted-runner printing misleading errors when registration is refused; it now names the org admin setting or says a restarted on-demand runner needs a fresh work order.
-
Fixed a self-hosted runner session's git fetch, pull and push failing while another session of the same repository starts on a runner with --capacity above 1.
-
[Cloud sessions] Added a status filter to the Sessions and Runners lists on a self-hosted environment's Activity tab in admin settings, allowing several statuses at once.
-
[Cloud sessions] Fixed every cloud session waiting for a self-hosted runner showing the same queue position; each now shows how many sessions are ahead of it.
-
[Claude Tag] Fixed Claude in Slack sometimes losing its reply when a self-hosted environment session moved to a new runner partway through a task.
Claude Code v2.1.295
-
Self-hosted runner: Changed the runner to stop passing CCR_AUTO_MODE_ALLOW, CCR_AUTO_MODE_ENVIRONMENT and CCR_AUTO_MODE_SOFT_DENY into session environments.
-
Self-hosted runner: Fixed git fetches being cut off while the git server still reported progress on large repositories; CLAUDE_RUNNER_FETCH_SERVER_PROGRESS_CAP_MS tunes or disables the wait.
Claude Code v2.1.293
-
Self-hosted runner: the orchestrator now sleeps 4 to 6 seconds between polls instead of a constant 5, so replicas for one environment stop polling at the same moment.
Claude Code v2.1.283
-
Self-hosted runner lifecycle hooks' git now skips Git LFS pre-push hooks, ignores a writable system core.hooksPath, and does not sign commits without --configure-git.
-
Under Anthropic-managed git on self-hosted runners, the runner's own git always verifies Anthropic's git route regardless of GIT_SSL_CAINFO and GIT_SSL_NO_VERIFY, with warnings explaining what applies.