Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Customize sessions in self-hosted environments changedself-hosted-environments-configuration

Nearest release: v2.1.322, published an hour after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 10 Nov 2026 00:15 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 10 Nov 2026 00:37 UTC.

Upstream edited
Recorded here
Lines+7added
Lines−5removed
From line 231 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits48to this page, all time

The whole hunk

from line 231, old and new numbered
/
lines
from line 231
231231set -u
232232export GIT_ALLOW_PROTOCOL=${GIT_ALLOW_PROTOCOL:-https:http:ssh}
233233IFS=':'
234rc=0 # becomes 1 when a step fails; a non-zero exit makes the runner log it
234235# -c overrides beat repo-local settings, blocking session-written fsmonitor,
235236# hook-path, and gpg-program config from executing code with the hook's
236237# privileges. -c commit.gpgsign=false also leaves these rescue commits
from line 242
241242g() { git -c core.fsmonitor=false -c core.hooksPath=/dev/null \
242243 -c commit.gpgsign=false "$@"; }
243244for ws in $CLAUDE_RUNNER_WORKSPACE_PATHS; do
244 cd "$ws" 2>/dev/null || continue
245 [ -z "$(g status --porcelain 2>/dev/null)" ] && continue
246 g add -A
247 g commit -q -m "runner snapshot: $CLAUDE_RUNNER_SESSION_ID ($CLAUDE_RUNNER_EXIT_REASON)" || continue
248 g push -q origin "HEAD:refs/heads/rescue/$CLAUDE_RUNNER_SESSION_ID" || true
245 cd "$ws" || { rc=1; continue; }
246 g add -A || rc=1
247 g diff-index --cached --quiet HEAD && continue # nothing to save
248 g commit -q -m "runner snapshot: $CLAUDE_RUNNER_SESSION_ID ($CLAUDE_RUNNER_EXIT_REASON)" || { rc=1; continue; }
249 g push -q origin "HEAD:refs/heads/rescue/$CLAUDE_RUNNER_SESSION_ID" || rc=1
249250done
251exit "$rc"
250252```
251253 
252254The `GIT_ALLOW_PROTOCOL` line in the script limits git to HTTPS, HTTP, and SSH remotes. If the runner's environment already sets a non-empty `GIT_ALLOW_PROTOCOL` list of its own, the script keeps that list.
Feedback