{"version":"2.1.236","anchor":"shutdown-seals-transcript-writes-and-gives-sessionend-hooks-","canonical_anchor":"shutdown-seals-transcript-writes-and-gives-sessionend-hooks-","heading":"Shutdown seals transcript writes and gives SessionEnd hooks more time","tier":"notice","area":"Hooks","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.236\/e\/shutdown-seals-transcript-writes-and-gives-sessionend-hooks-","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.236","markdown":"### Shutdown seals transcript writes and gives SessionEnd hooks more time\n\nSessionEnd hooks get five seconds instead of 3.5, and the transcript is sealed at exit.\n\n**What**\n\nThe failsafe timer that forces exit after shutdown begins grew from 3.5 seconds to 5 seconds at both places it is armed, giving SessionEnd hooks more slack. Shutdown can now also seal the session file against further appends, after which both local and remote persistence stop early, and a single final owed entry is written straight to the session file.\n\n**Details**\n\n- The seal is one-way for the remainder of the process.\n- The final-entry write replaces the previous exit re-stamp helper.\n- Unconditional; no flag.\n\n**Evidence**\n\n`sealAppendsForShutdown`\n\n- Area: Hooks\n- Names: `SessionEnd`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5"}