Expand description
Lines of a session file: one header, then entries forming a tree.
Mirrors packages/coding-agent/src/core/session-manager.ts in pi v1.0.0. Each
line is one JSON object; crate::json::to_string plus \n writes it.
Structs§
- Branch
Summary Entry - Compaction
Entry - Context
Edit Entry - Replaces or removes an earlier entry’s contribution to the model context.
- Custom
Entry - pi writes the tree position last for this entry.
- Custom
Message Entry - pi writes the tree position last for this entry.
- Entry
Meta - Tree position shared by every entry.
- Label
Entry - Message
Entry - Model
Change Entry - Replacement
- Session
Header - Session
Info Entry - Thinking
Level Change Entry - Usage
Entry - Usage outside model responses, such as cache warming.
Enums§
- File
Entry - One line of a session file, tagged by
type.
Constants§
- CURRENT_
VERSION - Session file format version that pi
v1.0.0writes.