Skip to content

ClaudeContextCollapseCommitEntry

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
  3980423728["models.ClaudeContextCollapseCommitEntry"]
  746985124["models.ClaudeStorageModel"]
  2604142835["base.ClaudeCodeBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  746985124 --> 3980423728
  2604142835 --> 746985124
  3879467795 --> 2604142835
  2751680898 --> 3879467795

🛈 DocStrings

Bases: ClaudeStorageModel

Persisted context-collapse commit.

The archived messages themselves are NOT persisted — they're already in the transcript as ordinary user/assistant messages. Only enough is persisted to reconstruct the splice instruction and summary placeholder.

Source code in src/clawd_code_sdk/storage/models.py
class ClaudeContextCollapseCommitEntry(ClaudeStorageModel):
    """Persisted context-collapse commit.

    The archived messages themselves are NOT persisted — they're already
    in the transcript as ordinary user/assistant messages. Only enough is
    persisted to reconstruct the splice instruction and summary placeholder.
    """

    type: Literal["marble-origami-commit"]
    session_id: str
    collapse_id: str
    """16-digit collapse ID."""
    summary_uuid: str
    """The summary placeholder's uuid."""
    summary_content: str
    """Full `<collapsed id="...">text</collapsed>` string for the placeholder."""
    summary: str
    """Plain summary text."""
    first_archived_uuid: str
    """Span start boundary."""
    last_archived_uuid: str
    """Span end boundary."""

collapse_id instance-attribute

collapse_id: str

16-digit collapse ID.

first_archived_uuid instance-attribute

first_archived_uuid: str

Span start boundary.

last_archived_uuid instance-attribute

last_archived_uuid: str

Span end boundary.

summary instance-attribute

summary: str

Plain summary text.

summary_content instance-attribute

summary_content: str

Full <collapsed id="...">text</collapsed> string for the placeholder.

summary_uuid instance-attribute

summary_uuid: str

The summary placeholder's uuid.

:fa-brands-github: Show source on GitHub