Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.274 ·

Headless SDK sessions now detect and re-inject a changed system prompt mid-session

Headless SDK sessions now detect a changed system prompt mid-session and re-inject it into the transcript

TierUnder the hoodhow much it should matter to you
Useful2my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaSDKwhat it touches
KindImprovementsin v2.1.274,
Under the hood No documentation found

Headless SDK sessions now detect a changed system prompt mid-session and re-inject it into the transcript

What

In headless SDK sessions (Claude Code used programmatically rather than interactively), a new check compares whether the system prompt was already sent against whether the caller's systemPromptSnapshot has since changed. If it has changed, the new system prompt is pushed into the session transcript as an event and telemetry is recorded, before the system prompt is applied for that turn.

Why

This lets a long-running headless session pick up a system prompt change partway through, rather than being stuck with whatever prompt was set at the start of the session.

Read from
Names in the bundlesystemPromptSnapshot

See this entry in the whole of v2.1.274 →