From 43c6ca3a5dbdcefc6c6dc29be9ce81d990baf39e Mon Sep 17 00:00:00 2001 From: zhugehyuk Date: Mon, 25 May 2026 03:28:33 +0900 Subject: feat: persist pane history across restarts (#248) refs #217 Co-authored-by: Can Celik --- src/app/config_io.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/app/config_io.rs') diff --git a/src/app/config_io.rs b/src/app/config_io.rs index 36f44b9a..fa2765e9 100644 --- a/src/app/config_io.rs +++ b/src/app/config_io.rs @@ -86,6 +86,14 @@ impl App { } } + pub(super) fn save_pane_history_persistence(&mut self, enabled: bool) { + if self.update_config_file("pane screen history", |content| { + crate::config::upsert_section_bool(content, "experimental", "pane_history", enabled) + }) { + self.apply_config_from_disk(false); + } + } + pub(super) fn save_agent_panel_scope(&mut self, scope: crate::app::state::AgentPanelScope) { let value = match scope { crate::app::state::AgentPanelScope::CurrentWorkspace => { -- cgit v1.2.3