{"version":"2.1.295","anchor":"background-agent-classifier-ignores-virtual-messages-and-add","canonical_anchor":"background-agent-classifier-ignores-virtual-messages-and-add","heading":"Background-session classifier gains a chat-relay mode and ignores virtual messages","tier":"internal","area":"Background Agents","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.295\/e\/background-agent-classifier-ignores-virtual-messages-and-add","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.295","markdown":"### Background-session classifier gains a chat-relay mode and ignores virtual messages\n\nThe classifier that writes background-session status text adds a chatRelay mode with its own instructions and stops counting virtual messages\n\n**Unclear.** It is not clear what an active chat relay changes about the status shown.\n\n**What**\n\nClaude Code can run sessions in the background, and a classifier gives each one its status text. A classifier here is a step that reads the session's messages and decides what state it is in, such as blocked or failed. This release changes what that classifier reads and how it behaves.\n\n- Virtual messages (marked `isVirtual`) are now filtered out before classification. Before, every message counted.\n\n- A new `chatRelay` mode is passed into the classify call. One finding saw it set from a size check. The other saw it set only when `n.chatRelay === true`, the recap flag is off, the engine is the llm one, and one more check passes.\n\n- In `chatRelay` mode, the quick pre-classification result is skipped unless its state is blocked or failed.\n\n- A new `CLASSIFIER_CHAT_RELAY_ADDENDUM` block is added to the classifier's instructions in this mode.\n\n- Script posts are also passed into the classify call.\n\n- Whether `chatRelay` was on is now recorded with each classification.\n\n**Why**\n\nThis changes how the status text for background sessions is worked out, adding a separate path for sessions whose chat is relayed. Status lines for those sessions may read differently. Virtual messages no longer affect the status of any session.\n\n- Area: Background Agents\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}