{"name":"session.turnCount","slug":"session-turncount","family":"setting","title":"Settings keys","noun":"settings key","description":"Plugin API hook `session.turnCount` renamed to `session.turns`","description_source":"entry","described_by":{"version":"2.1.268","anchor":"plugin-api-sessionturncount-renamed-to-sessionturns"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.280","builds":0,"mined_builds":123,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.268","anchor":"plugin-api-sessionturncount-renamed-to-sessionturns","heading":"Plugin API session.turnCount renamed to session.turns","line":"Plugin API hook `session.turnCount` renamed to `session.turns`","released_at":"2026-09-10 18:41:11","reason":"found in this entry's text"}],"entries_total":1,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"session","slug":"session","description":"A per-session workshop document gets snapshotted with your session files and is only writable in plan mode."},{"name":"session.attach","slug":"session-attach","description":"Plugin hooks can now react to tool-call dry-runs, config changes, and session attach\/detach events."},{"name":"session.authorize","slug":"session-authorize","description":"Plugins gain $.session.authorize(), which mints an auth handle for the session."},{"name":"session.compact","slug":"session-compact","description":"A new `session.compact` plugin hook can intercept and rewrite conversation compaction"},{"name":"session.detach","slug":"session-detach","description":"Plugin hooks can now react to tool-call dry-runs, config changes, and session attach\/detach events."},{"name":"session.end","slug":"session-end","description":"Two new lifecycle events, `session.end` and `session.measure`, added for plugins and hooks"},{"name":"session.measure","slug":"session-measure","description":"Two new lifecycle events, `session.end` and `session.measure`, added for plugins and hooks"},{"name":"session.receive","slug":"session-receive","description":"A new `session.compact` plugin hook can intercept and rewrite conversation compaction"},{"name":"session.root","slug":"session-root","description":"Plugin API policy list adds session.root, prompt.read, and ui.panes as permitted actions"},{"name":"session.send","slug":"session-send","description":"Plugin hooks can now listen for a new session.send event, alongside session.receive\/detach\/end"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/setting\/session-turncount","family_url":"https:\/\/changelogs.core-directive.com\/reference\/setting.json"}