{"version":"2.1.242","anchor":"a-pre-shutdown-callback-slot-exists-but-nothing-fills-it","canonical_anchor":"a-pre-shutdown-callback-slot-exists-but-nothing-fills-it","heading":"A pre-shutdown callback slot exists but nothing fills it","tier":"soon","area":"Session Lifecycle","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.242\/e\/a-pre-shutdown-callback-slot-exists-but-nothing-fills-it","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.242","markdown":"### A pre-shutdown callback slot exists but nothing fills it\n\nA pre-exit callback slot exists, but nothing in the build ever fills it.\n\n**What**\n\nThe interactive session host gained a way to register a callback that runs just before Claude Code exits, and the exit path does call it. But the register and clear operations are only reachable through two module-level wrappers that nothing in the build calls, so the slot is always empty and the new step does nothing.\n\n**Details**\n\n- The run step is wired into the normal interactive exit sequence, followed by a short wait.\n- Infrastructure landed ahead of whatever will register into it.\n\n**Evidence**\n\n`registerBeforeInteractiveShutdown`\n\n- Area: Session Lifecycle\n- Tier: Nothing to try yet\n- Useful: 1\/5\n- Signal: 3\/5\n- Present in the build but not switched on"}