Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.299 ·

Self-hosted runner gains a shutdown drain and tool-server sessions

The self-hosted runner can wait up to --shutdown-drain-sec seconds for running work on SIGTERM, and supports a tool-server session kind

Group of 2 Use it now Notable New Features
JSON All of v2.1.299
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
Self-Hosted RunnerArea: what it touches
New FeaturesKind: in v2.1.299,
What probably matters to youSection of the release

What

A self-hosted runner is a program you run on your own machines to pick up and run Claude Code sessions. It has a new --shutdown-drain-sec <n> option, stored as shutdownDrainMs.

  • On the first SIGTERM (the usual stop signal), the runner stops looking for new work. The work already being fetched and any running hooks get up to n seconds to finish. Hooks are user-set commands that run at certain moments.
  • A second signal, or SIGINT (Ctrl+C), stops whatever is still running.
  • The value must be a whole number of seconds from 0 to 3600. The default is 0, which turns the drain off and stops work at once.
  • The runner logs its drain behaviour and warns if --shutdown-drain-sec is less than the hook timeout plus a margin.
  • The runner supports a 'tool-server' session kind with its own .tool-server-config folder. Before, only .claude-config was listed.

Before, the first signal stopped everything at once and a second one forced the exit.

Why

Operators can restart or roll out runners without cutting off sessions and hooks that are still running, as long as the drain time is long enough.

How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeAdded --shutdown-drain-sec to claude self-hosted-runner orchestrator: on SIGTERM it stops polling and gives the poll in flight and running…

See this entry in the whole of v2.1.299 →

Feedback