{"version":"2.1.335","anchor":"session-stop-command-records-source-and-via","canonical_anchor":"session-stop-command-records-source-and-via","heading":"Stopping a session now records where the stop came from","tier":"internal","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/session-stop-command-records-source-and-via","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Stopping a session now records where the stop came from\n\nThe session.stop command now carries source and via details saying what stopped the session\n\n**What**\n\nThe `session.stop` command, which ends a session, now carries two more details, `source` and `via`, beside whether a turn was running. A session is one run of Claude Code from start to finish. Both details are also kept when the command is restored.\n\n**Why**\n\nCode that reacts to a session stopping, such as hooks or mods, can now tell where the stop came from.\n\n- Area: Sessions\n- Names: `session.stop`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}