{"version":"2.1.324","anchor":"archivedjson-treated-as-a-session-sidecar-file","canonical_anchor":"session-info-schema-gains-an-archived-field","heading":"Sessions can be marked archived and are hidden from listings","tier":"use","area":"Sessions","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/archivedjson-treated-as-a-session-sidecar-file","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Sessions can be marked archived and are hidden from listings\n\nSession info now reports `archived`, archive state is kept in `archived.json`, and archived sessions are skipped in listings; git `daemon --access-hook` is flagged\n\n**What**\n\nA session is one conversation with Claude Code. Sessions now have an archived state.\n\n- The session information returned by `listSessions` and `getSessionInfo` (for apps built on the Agent SDK) has an optional `archived` value. It is false if the session was archived and then unarchived, or a prompt was sent in it since. It is absent if the session was never archived, and absent when a `sessionStore` is used.\n\n- `archived.json` is now treated as a sidecar file of a session (a small file kept next to it), like `custom-title.json`, and is skipped during copying in the same way.\n\n- A session listing now skips sessions marked archived, and another check also leaves out entries marked archived.\n\n- Separately, the list of unsafe git options now includes `--access-hook` for `git daemon`.\n\n**Why**\n\nArchived sessions no longer show up in that listing, and SDK apps can see and filter which sessions are archived. Commands using `git daemon --access-hook` are now treated as unsafe.\n\n- Area: Sessions\n- Names: `archived.json`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}