Unclear It is not clear whether a custom or appended system prompt still reaches a session after it is moved to the background.
What
The system prompt is the standing set of instructions Claude Code gives the model. In two places it used to be built once and reused. It is now rebuilt through a renderSystemPrompt callback:
- When the main conversation is detached to run in the background, its query now rebuilds the system prompt for each model. Tools are worked out first, and the custom and appended system prompts (
customSystemPromptandappendSystemPrompt) are no longer passed in this path. - The headless engine, which runs Claude Code without its interactive screen, now passes a callback that takes the tools, the MCP clients (connections to add-on tool servers) and the model in use, and rebuilds the prompt.
Why
The instructions can now follow a change of model or tools during a session, so a background or headless session may behave differently after a model switch or fallback. If you rely on a custom or appended system prompt, check how a backgrounded session behaves.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
It is not clear whether a custom or appended system prompt still reaches a session after it is moved to the background.