From 2b97799b6715fd6c355db9c225029765971915e6 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Wed, 20 May 2026 00:29:53 +0300 Subject: feat: add configurable default shell refs #196 --- src/app/api.rs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/app/api.rs') diff --git a/src/app/api.rs b/src/app/api.rs index ab26f82b..6eb95f03 100644 --- a/src/app/api.rs +++ b/src/app/api.rs @@ -637,6 +637,9 @@ impl App { .or_else(|| std::env::current_dir().ok()) .unwrap_or_else(|| std::path::PathBuf::from("/")); let (rows, cols) = self.state.estimate_pane_size(); + let default_shell = self.state.default_shell.clone(); + let scrollback_limit_bytes = self.state.pane_scrollback_limit_bytes; + let host_terminal_theme = self.state.host_terminal_theme; let result = self .state .workspaces @@ -647,8 +650,9 @@ impl App { rows, cols, cwd, - self.state.pane_scrollback_limit_bytes, - self.state.host_terminal_theme, + scrollback_limit_bytes, + host_terminal_theme, + &default_shell, ) }); match result { @@ -1019,6 +1023,9 @@ impl App { ) }) }); + let default_shell = self.state.default_shell.clone(); + let scrollback_limit_bytes = self.state.pane_scrollback_limit_bytes; + let host_terminal_theme = self.state.host_terminal_theme; let Some(ws) = self.state.workspaces.get_mut(ws_idx) else { return serde_json::to_string(&ErrorResponse { id: request.id, @@ -1043,8 +1050,9 @@ impl App { rows, cols, split_cwd, - self.state.pane_scrollback_limit_bytes, - self.state.host_terminal_theme, + scrollback_limit_bytes, + host_terminal_theme, + &default_shell, params.focus, ) { Some(Ok(result)) => result, -- cgit v1.2.3