Skip to main content

Module details

Module details 

Source
Expand description

Replay-safe state for expensive tool, thought, terminal, and diff details.

The model stores source text but does not parse, wrap, or render it. New records start collapsed, so a renderer can show a cheap summary and defer materializing the detail until the user explicitly expands it. All state changes are represented as serializable events and can be replayed without a terminal or UI.

Structs§

DetailModel
Ordered detail state with stable IDs. Upserting an existing record keeps its insertion position and its expansion state, which prevents a streaming terminal/tool update from unexpectedly re-expanding expensive output.
DetailRecord
A detail record. content remains unparsed until a caller asks for it.

Enums§

DetailEvent
The complete event vocabulary for detail state. Events are pure data and can be persisted beside the normalized agent event stream.
DetailKind
The kinds of content that may be expensive to display.