Skip to main content

Module claude_runtime_state

Module claude_runtime_state 

Source
Expand description

Lossless, non-executing reconstruction of Claude Code runtime state.

Claude Code persists scheduling, queue, permission, and background-agent events in the same JSONL stream as chat messages. Those records are not part of the provider-neutral crate::ChatMessage view, but they are required to decide whether a resumed session is semantically complete. This module folds the verbatim crate::Session::raw records into a serializable manifest. It deliberately does not start jobs, agents, or timers; activation is a separate policy decision.

Structs§

ClaudeBackgroundChild
Latest known state of a Claude Agent tool call.
ClaudeCronJob
One active Claude Cron job.
ClaudeQueueState
End-of-transcript queue state.
ClaudeRuntimeManifest
A pure, serializable reconstruction of runtime state in a Claude transcript.
ClaudeRuntimePosture
Latest Claude CLI mode and permission posture.
ClaudeRuntimeResidue
Verbatim evidence for one runtime-affecting source record.
ClaudeWakeup
One scheduled one-shot wakeup that has not yet observably fired.

Enums§

ClaudeBackgroundState
Lifecycle state recovered for a Claude background child.
ClaudeRuntimeExecutionState
Execution posture for imported Claude runtime state.

Constants§

CLAUDE_RUNTIME_MANIFEST_VERSION
Version of the persisted Claude runtime-state manifest schema.