{"version":"2.1.327","anchor":"headless-sessions-lsp-compaction-message-queued-messages-r","canonical_anchor":"headless-sessions-lsp-compaction-message-queued-messages-r","heading":"Headless sessions get new messages for compaction and blocked prompts","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/headless-sessions-lsp-compaction-message-queued-messages-r","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Headless sessions get new messages for compaction and blocked prompts\n\nHeadless runs now say when compaction is unavailable or a hook blocked a prompt, and queued messages sit next to their tool result\n\n**What**\n\nA headless session is one run with `-p` or through the SDK, with no interactive screen. Three things change there:\n\n- Asking for compaction, which shortens the conversation to save space, now gives an error saying it is not yet available in a headless session.\n\n- 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.\n\n- 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.\"\n\n**Why**\n\nPeople running Claude Code with `-p` or the SDK learn when a prompt never reached Claude, or when compaction is not available.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}