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

Claude Code v2.1.238 ·

Self-hosted runner: prefetched-checkout fast path is compiled in but inert

The self-hosted runner has code to reuse a pre-fetched repo copy, but every clone still fetches fully.

Nothing to try yet In Development
JSON All of v2.1.238
Nothing to try yetTier: how much it should matter to you
1Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
Self-Hosted RunnerArea: what it touches
In DevelopmentKind: in v2.1.238,
In DevelopmentSection of the release

A prefetch state reader, a pinned upstream ref and a freshness check are compiled in and never called.

What

The runner gained machinery to reuse an already-fetched copy of a repository instead of cloning it: a reader for a prefetch state file, a pinned upstream ref refs/remotes/prefetch/staging, and a function to judge whether the prefetch is fresh enough to trust. None of it runs. Every clone still does a full fetch.

Details
  • The reader is called on the clone path but its body returns immediately, so the prefetched tip is never populated.
  • The eligibility function, the only thing that would weigh freshness, repo identity, worktree mode and worker epoch, has no caller anywhere in the build.
  • The git prepare function accepts the new prefetched-tip argument and never reads it; its fetch is wrapped in a build-time-true condition, so the skip-the-fetch branch is compiled out. A sibling telemetry helper returns an empty object.
  • Were it switched on, it would require the environment variable CLAUDE_RUNNER_TRUST_CANONICAL_PREWARM set with --drain-grace-sec 0, single-worker mode, and the hardcoded repository anthropics/anthropic, making it an Anthropic-internal path rather than a general one.
Evidence

canonical is not a trusted one-shot prewarm (CLAUDE_RUNNER_TRUST_CANONICAL_PREWARM unset or drain-grace > 0), refs/remotes/prefetch/staging

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.238 →

Feedback