{"version":"2.1.268","anchor":"background-agent-status-now-records-an-explicit-templatea","canonical_anchor":"background-agent-status-now-records-an-explicit-templatea","heading":"Background agent status now records an explicit 'template'\/agentType field with a 'bg' fallback","tier":"internal","area":"Background Agents","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.268\/e\/background-agent-status-now-records-an-explicit-templatea","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.268","markdown":"### Background agent status now records an explicit 'template'\/agentType field with a 'bg' fallback\n\nBackground agent status now stores an explicit agent-type field, defaulting to 'bg' if none is given\n\n**What**\n\nWhen Claude Code saves the state of a background agent, the stored `template` value is now explicitly derived from the agent's `agentType`, falling back to the literal string `\"bg\"` if none is provided, rather than passing through whatever value the caller happened to supply.\n\n**Why**\n\nThis ensures background agent records always have a consistent, well-defined type value instead of possibly storing something unexpected or missing from the caller.\n\n- Area: Background Agents\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}