{"version":"2.1.246","anchor":"mid-turn-backgrounding-tracked-by-a-small-state-object","canonical_anchor":"mid-turn-backgrounding-tracked-by-a-small-state-object","heading":"Mid-turn backgrounding tracked by a small state object","tier":"internal","area":"Background Tasks","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.246\/e\/mid-turn-backgrounding-tracked-by-a-small-state-object","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.246","markdown":"### Mid-turn backgrounding tracked by a small state object\n\nBackgrounding a turn mid-flight is tracked more explicitly, and the turn is properly ended.\n\n**What**\n\nThe bookkeeping for a backgrounding request that arrives during a turn moved from a reference plus a boolean to an object with explicit clear, fork-in-flight and idle-fork-mid-turn transitions, and the turn is now explicitly ended for the tracked message when the fork proceeds.\n\n**Details**\n\n- Clearing the conversation now also receives the session hook registry.\n\n**Evidence**\n\n`markIdleForkMidTurn`\n\n- Area: Background Tasks\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5"}