aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorSunskyXH <SunskyXH@gmail.com>2026-06-01 23:24:08 +0900
committerGitHub <noreply@github.com>2026-06-01 17:24:08 +0300
commit250ae921628b7bbf68f33ac3f43ac90bdac10f24 (patch)
treeda6612a07094cfc7f3875f349fa3a94e409e0ddb /src/config
parent043968dd97e8a864f4473f1651e9df9ecd6ed99d (diff)
feat: keep remote bridge alive with an ssh config keepalive fallback (#355)
Diffstat (limited to 'src/config')
-rw-r--r--src/config/model.rs17
1 files changed, 17 insertions, 0 deletions
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 {