Claude Code · tool · fg-0551

Self-hosted runner checkout hook killed after 30 minutes and the session setup fails

If you see Session setup fails after a long checkout hook, the cause and the fix for Claude Code are below, last verified 2026-10-24.

Verified Oct 2026trust 50/100
Symptom
Session setup fails after a long checkout hookCheckout hook is stopped at 30 minutesLarge clones or slow bootstrap hooks fail on 2.1.307 but worked before
Cause
From 2.1.307, checkout hooks on the self-hosted runner are stopped after 30 minutes by default, which fails the session setup. Earlier versions had no such limit.
Fix
Raise --checkout-hook-timeout-min to a larger number of minutes, or set it to 0 to disable the limit.
Apply
--checkout-hook-timeout-min 0
Affected
Claude Code self-hosted runner 2.1.307 and later
Sources

Last verified 2026-10-24 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun