Headless SDK sessions now detect a changed system prompt mid-session and re-inject it into the transcript
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.
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.