Expand description
ACP session persistence.
Storage shape:
acp_sessions
├── acp_messages (FK by integer id)
│ └── acp_tool_calls (FK by integer id, two rows per call:
│ one event_kind='in', one 'out')
└── acp_session_eventsToken tracking: acp_sessions.token_count holds the most recently
provider-reported input_tokens (total prompt size). Replace-on-write
after every turn. The TUI ctx bar reads this on resume.
Enums (Rust-side): ToolEventKind is internal to this module — callers
invoke append_tool_call_in / append_tool_call_out as distinct methods
and never see the enum. Action and EventOutcome from zeroclaw_log
are the canonical taxonomies for acp_session_events.
Structs§
- AcpSession
Data - AcpSession
Store - AcpSession
Summary - Lightweight summary for the ACP session picker. Avoids loading the full message history just to render a one-line label per session.