Skip to content

ClaudeContextCollapseSnapshotEntry

Base classes

Name Children Inherits
ClaudeStorageModel
clawd_code_sdk.storage.models
Base for transcript models: fields these models don't know are kept.

⋔ Inheritance diagram

graph TD
  3061856380["models.ClaudeContextCollapseSnapshotEntry"]
  746985124["models.ClaudeStorageModel"]
  2604142835["base.ClaudeCodeBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  746985124 --> 3061856380
  2604142835 --> 746985124
  3879467795 --> 2604142835
  2751680898 --> 3879467795

🛈 DocStrings

Bases: ClaudeStorageModel

Snapshot of staged queue and spawn trigger state.

Unlike commits (append-only, replay-all), snapshots are last-wins — only the most recent snapshot entry is applied on restore.

Source code in src/clawd_code_sdk/storage/models.py
class ClaudeContextCollapseSnapshotEntry(ClaudeStorageModel):
    """Snapshot of staged queue and spawn trigger state.

    Unlike commits (append-only, replay-all), snapshots are last-wins —
    only the most recent snapshot entry is applied on restore.
    """

    type: Literal["marble-origami-snapshot"]
    session_id: str
    staged: list[ClaudeContextCollapseStagedSpan]
    armed: bool
    """Spawn trigger state."""
    last_spawn_tokens: int

armed instance-attribute

armed: bool

Spawn trigger state.

:fa-brands-github: Show source on GitHub