From 250ae921628b7bbf68f33ac3f43ac90bdac10f24 Mon Sep 17 00:00:00 2001 From: SunskyXH Date: Mon, 1 Jun 2026 23:24:08 +0900 Subject: feat: keep remote bridge alive with an ssh config keepalive fallback (#355) --- src/config/model.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/config') diff --git a/src/config/model.rs b/src/config/model.rs index c312acfa..dd247d83 100644 --- a/src/config/model.rs +++ b/src/config/model.rs @@ -184,6 +184,7 @@ pub struct Config { pub worktrees: WorktreesConfig, pub advanced: AdvancedConfig, pub experimental: ExperimentalConfig, + pub remote: RemoteConfig, } #[derive(Debug)] @@ -388,6 +389,22 @@ pub struct AdvancedConfig { pub scrollback_limit_bytes: usize, } +#[derive(Debug, Deserialize)] +#[serde(default)] +pub struct RemoteConfig { + /// Add a keepalive fallback under the user's ssh config for the `--remote` + /// bridge. Set false to run plain ssh unchanged. Default: true. + pub manage_ssh_config: bool, +} + +impl Default for RemoteConfig { + fn default() -> Self { + Self { + manage_ssh_config: true, + } + } +} + #[derive(Debug, Default, Deserialize)] #[serde(default)] pub struct ExperimentalConfig { -- cgit v1.2.3