use std::path::PathBuf;
#[derive(Default)]
pub struct BackgroundSnapshot {
pub requested: bool,
pub poll_deadline: Option<std::time::Instant>,
pub done_received: bool,
pub defer_snapshot_after_current: bool,
}
#[derive(Default)]
pub struct DuplicateLoadGate {
pub requested: bool,
}
#[derive(Default)]
pub struct ZahirExportGate {
pub requested: bool,
}
#[derive(Default)]
pub struct LensExportGate {
pub requested: bool,
}
#[derive(Clone, Copy, Debug)]
pub struct SessionTickFlags {
pub first_tick: bool,
pub refresh_terminal_after_editor: bool,
}
impl Default for SessionTickFlags {
fn default() -> Self {
Self {
first_tick: true,
refresh_terminal_after_editor: false,
}
}
}
#[derive(Clone, Copy, Debug, Default)]
pub struct SessionReloadFlags {
pub snapshot_rows: bool,
pub force_full_enhance_toast_shown: bool,
pub duplicate_groups: bool,
}
#[derive(Default)]
pub struct SessionFlow {
pub tick: SessionTickFlags,
pub reload: SessionReloadFlags,
pub pending_switch_to: Option<PathBuf>,
}