{"version":"2.1.234","anchor":"background-session-ledger-tracks-drainable-monitors","canonical_anchor":"background-session-ledger-tracks-drainable-monitors","heading":"Background session ledger tracks drainable monitors","tier":"internal","area":"Sessions","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.234\/e\/background-session-ledger-tracks-drainable-monitors","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.234","markdown":"### Background session ledger tracks drainable monitors\n\nBackground sessions track how many monitors still have work, affecting when an idle one is retired.\n\n**What**\n\nThe record kept for each background session now stores how many monitors still have work to drain, which changes when an idle background session is retired.\n\n**Details**\n\n- The count is only written when it is above zero.\n- The check that decides whether a session is a parked idle fork became its own method, and it now accepts a session recorded by a different CLI version as long as that session reports drainable monitors.\n- Change detection between records now compares kinds as a set, so reordering alone no longer counts as a change.\n\n**Evidence**\n\n`isParkedIdleFork`\n\n- Area: Sessions\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 2\/5"}