Skip to main content

Module session

Module session 

Source
Expand description

Session state — core agent session without any UI concerns.

This struct holds all the state shared between frontends (TUI, API, Web): output lines, input, workflow state, config, resume info, MCP servers, etc.

Structs§

Session
Core session state for the Trustee agent.
TuiForwardSink
Includes a 3-state atomic state machine (IDLE/REASONING/CONTENT) that inserts blank separator lines when transitioning between reasoning and content streams, so the frontend can distinguish them visually.