pub fn build_session_context(path: &[SessionEntry]) -> SessionContextExpand description
Build the session context from a resolved branch path.
Pi-compatible: walks path to find latest thinking level, model, active tools, and handles compaction by replacing compacted entries with a summary message.