On-disk record persisted to ``~/.claude/server-sessions.json``. Mirrors ``server/types.ts:46-55``. Used to resume sessions across server restarts: the new server reads this file at startup and can restart the agent subprocess with ``--resume {transcriptSessionId}``.
| 72 | |
| 73 | @dataclass(frozen=True) |
| 74 | class SessionIndexEntry: |
| 75 | """On-disk record persisted to ``~/.claude/server-sessions.json``. |
| 76 | |
| 77 | Mirrors ``server/types.ts:46-55``. Used to resume sessions across |
| 78 | server restarts: the new server reads this file at startup and can |
| 79 | restart the agent subprocess with ``--resume {transcriptSessionId}``. |
| 80 | """ |
| 81 | |
| 82 | session_id: str |
| 83 | transcript_session_id: str |
| 84 | cwd: str |
| 85 | created_at: float |
| 86 | last_active_at: float |
| 87 | permission_mode: str | None = None |
| 88 | |
| 89 | |
| 90 | # ─── Wire schema for POST /sessions response ────────────────────────────── |
no outgoing calls