What
A headless session is one run with -p or through the SDK, with no interactive screen. Three things change there:
- Asking for compaction, which shortens the conversation to save space, now gives an error saying it is not yet available in a headless session.
- Some queued messages, typed while Claude was busy, are now moved to sit next to the result of the tool call they belong to. A tool call is one action Claude takes, such as reading a file.
- A hook is a command you set up to run automatically. When a hook blocks your prompt or could not check it, Claude Code now says "Claude did not get this message: a hook in this session blocked it or could not check it."
Why
People running Claude Code with -p or the SDK learn when a prompt never reached Claude, or when compaction is not available.