MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / SessionIndexEntry

Class SessionIndexEntry

src/server/types.py:74–87  ·  view source on GitHub ↗

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}``.

Source from the content-addressed store, hash-verified

72
73@dataclass(frozen=True)
74class 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 ──────────────────────────────

Callers 4

_entryFunction · 0.90
create_sessionMethod · 0.85
_dict_to_entryFunction · 0.85
update_last_activeFunction · 0.85

Calls

no outgoing calls

Tested by 1

_entryFunction · 0.72