pub struct SessionManagerConfig {
pub state_dir: PathBuf,
pub callback_url: String,
pub user_rap_config: Option<PathBuf>,
pub id_source: Arc<dyn IdSource>,
}Expand description
Configuration for building a SessionManager. The non-generic
constructor (SessionManager::new) fills in the home-directory
defaults; tests can point everything at temp dirs for hermetic runs.
Fields§
§state_dir: PathBufDirectory for persisted daemon state (sessions.json, thread
history, tool state).
callback_url: StringBase URL for the RAP callback server.
user_rap_config: Option<PathBuf>Path to the user-level RAP config merged into every session
(~/.infinity/rap.json in production). None disables user-level
RAP servers, so sessions only boot servers from their cwd config.
id_source: Arc<dyn IdSource>Source of session/thread ids. Production uses random UUIDs
(crate::ids::UuidIdSource); tests use
crate::ids::SequentialIdSource so ids rendered in UIs are
deterministic. Shared (Arc) between the manager and the
conversation store so all ids come from one sequence.