{"version":"2.1.227","anchor":"session-identity-and-directories-collapse-into-one-object","canonical_anchor":"session-identity-and-directories-collapse-into-one-object","heading":"Session identity and directories collapse into one object","tier":"internal","area":"Session State","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.227\/e\/session-identity-and-directories-collapse-into-one-object","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.227","markdown":"### Session identity and directories collapse into one object\n\nSession identity and working directories now live in one object that can be forked per project.\n\n**What**\n\nThe scattered globals for session id, parent id and working directories were replaced by a single session object that can be subscribed to and updated, with a project fork that keeps the root's identity but overrides directories. Re-identifying through such a fork now throws instead of silently succeeding.\n\n**Details**\n\n- The settings cache and the CLI launch flags (interactive, print output format, client type, bypass permissions, scheduled tasks, init JSON schema and the rest) were each folded into a class with a `reset()`.\n\n**Evidence**\n\n`A withProject fork cannot re-identify the session`\n\n- Area: Session State\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5"}