All areas Feed Weekly digests

self-hosted-runner

The tracked changes tagged self-hosted-runner, newest release first. Every sentence is an item's summary.

131 items from 22 releases, 15 breaking Sources: Claude Code Last change:

Goes with

Changes

Claude Code v2.1.332

  1. breaking Breaking

    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.

  2. fix

    Fixed self-hosted runner sessions failing their first clone under Anthropic-managed git when git config has an includeIf gitdir or onbranch section.

  3. fix

    Self-hosted runner: fixed --configure-git sometimes reporting a hung git --version as a git not on PATH.

  4. other

    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

  1. fix Breaking

    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.

  2. breaking Breaking

    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.

  3. feature

    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.

  4. feature

    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.

  5. feature

    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
  1. feature

    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.

  2. feature

    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.

  3. fix

    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.

  4. fix

    Fixed self-hosted sessions losing prompt cache and earlier thinking when the list of repositories a restart could not prepare changed.

  5. fix

    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.

  6. fix

    Fixed resumed self-hosted runner sessions starting without their pushed work in large repositories when --push-outcome-on-release is set.

  7. fix

    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.

  8. fix

    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.

  9. fix

    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.

  10. fix

    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.

  11. fix

    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.

  12. fix

    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.

  13. fix

    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.

  14. fix

    Fixed the self-hosted runner's last_poll_age_seconds reading 0 when the runner had never polled successfully.

  15. other

    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.

  16. other

    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.

  17. other

    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

  1. breaking Breaking

    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.

  2. breaking Breaking

    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.

  3. breaking Breaking

    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.

  4. fix

    Self-hosted runner: fixed --push-outcome-on-release sometimes deleting a session's branch on the git host.

  5. fix

    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
  1. fix

    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.

  2. fix

    Fixed remote MCP servers in self-hosted runner sessions staying without tools or disconnecting over https after a timeout or network error.

  3. fix

    Fixed self-hosted runner sessions being shown as unresponsive while Claude Code was still starting.

Claude Code v2.1.328

  1. breaking Breaking

    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.

  2. feature

    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.

  3. feature

    Self-hosted runner shows a start-up warning when the host's settings.json sets a default permission mode that sessions ignore.

  4. feature

    claude self-hosted-runner orchestrator gains --hook-label to pass chosen session labels to the spawn-runner hook.

  5. feature

    claude --environment gains --metadata key=value to label a session for the spawn-runner hook.

+20 more
  1. feature

    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.

  2. feature

    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.

  3. fix

    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.

  4. fix

    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.

  5. fix

    Self-hosted runners no longer stop when their token runs out on a host whose clock is slow or was set back.

  6. fix

    Sessions with Anthropic-managed git keep GitHub access after a script or hook in the session runs claude again.

  7. fix

    Self-hosted runners with Anthropic-managed git can fetch and push when the machine's git config sets http.proactiveAuth.

  8. fix

    A self-hosted runner whose setup fails after registering now deregisters with a reason, and an on-demand runner reports the failed start.

  9. fix

    Archiving or requeueing a session takes effect while it waits for another session to prepare the same repository at --capacity above 1.

  10. fix

    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.

  11. fix

    A failed start's message keeps the words saying what failed when a checkout hook or git printed a lot.

  12. fix

    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.

  13. fix

    A self-hosted session that resumes in a new Claude config directory keeps its task list.

  14. fix

    Claude is told when a self-hosted session starts without one of its repositories, and why.

  15. fix

    --correlation-id of claude --environment reaches the spawn-runner hook.

  16. fix

    The self-hosted runner setup wizard's key rotation advice now warns that revoking a key stops the sessions running under it.

  17. other

    Resumed self-hosted runner sessions check whether earlier work is still there and say what is missing.

  18. other

    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.

  19. other

    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.

  20. other

    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

  1. breaking Breaking

    Self-hosted runners with --trust-workspace false ignore more repository settings; such values must be set in user or managed settings.

  2. breaking Breaking

    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.

  3. fix

    claude self-hosted-runner no longer asks for new tokens nonstop when a refreshed token is already due.

  4. other

    Self-hosted runners with --trust-workspace false ignore more repository settings.

Claude Code v2.1.325

  1. breaking Breaking

    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.

  2. breaking Breaking

    Changed self-hosted runners to refuse a session whose session folder or repository path is a symbolic link, except a checkout hook's checkout.

  3. fix

    Fixed self-hosted runner sessions with several repositories being unable to use a repository added mid-session.

  4. fix

    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

  1. fix

    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.

  2. other

    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.

  3. other

    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.

  4. fix

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

  5. fix

    [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
  1. fix

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

  2. feature

    [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

  1. feature

    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.

  2. fix

    Fixes self-hosted runner sessions losing recent turns or the whole conversation when restarted while a plan waited for approval.

  3. fix

    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.

  4. fix

    Fixes claude -p run inside a cloud or self-hosted runner session generating its own title and sending it to that session.

  5. other

    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
  1. other

    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.

  2. other

    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.

  3. fix

    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.

  4. fix

    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

  1. fix

    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.

  2. fix

    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

  1. fix

    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.

  2. other

    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.

  3. fix

    Fixed recently used self-hosted environments never appearing among recent environments on the cloud new session card.

  4. fix

    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

  1. feature

    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.

  2. fix

    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

  1. fix

    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.

  2. other

    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

  1. breaking Breaking

    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.

  2. fix

    Fixed a conversation cleared with /clear sometimes returning when a cloud or self-hosted runner session restarted.

  3. fix

    Fixed self-hosted runner sessions with --use-anthropic-git-proxy committing a .claude/settings.local.json left in the clone by an earlier session.

  4. fix

    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.

  5. other

    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
  1. other

    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.

  2. fix

    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

  1. fix

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

  2. fix

    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.

  3. fix

    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.

  4. other

    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

  1. other

    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

  1. fix

    Self-hosted runner: fixed git fetches failing with "bad object refs/heads" in sessions that reuse a checkout stored in git's reftable format.

  2. fix

    [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

  1. fix

    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.

  2. fix

    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.

  3. fix

    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

  1. breaking Breaking

    Changed MCP requests in cloud and self-hosted runner sessions to no longer follow HTTP redirects from the session MCP proxy.

  2. feature

    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.

  3. fix

    Fixed self-hosted runner sessions shutting down MCP servers added through an --exec-path wrapper's --mcp-config when connectors change mid-session.

  4. fix

    Fixed self-hosted runner sessions showing tracked files as staged deletions when starting in a reused clone whose remote is still empty.

  5. other

    Self-hosted runner: Improved the output of setup and doctor when the runner's machine has no git credentials.

+6 more
  1. fix

    Self-hosted runner: Fixed sessions that wrote output before their first turn having no release timer, ignoring --retire-at and delaying shutdown.

  2. fix

    Cloud sessions: Fixed Sessions search in self-hosted environment admin details finding nothing when a session ID from a link is pasted.

  3. fix

    Cloud sessions: Fixed Sessions and Runners lists in self-hosted environment admin details saying the list is empty when a search has no matches.

  4. other

    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.

  5. other

    Cloud sessions: Changed deleting a self-hosted environment to turn off its routines immediately, showing the reason on each routine.

  6. fix

    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

  1. fix

    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.

  2. fix

    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.

  3. feature

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

  4. fix

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

  5. fix

    [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

  1. breaking Breaking

    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.

  2. fix

    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

  1. other

    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

  1. breaking Breaking

    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.

  2. other

    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.