From 8be4cf765afddfd9cf3206602ba4dab682a29fa1 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Wed, 9 Sep 2026 00:32:05 +0300 Subject: fix: restore autofocus when creating worktrees (#3787) * fix: restore autofocus when creating worktrees refs #3766 * fix: let the client focus newly created worktrees refs #3766 --- src/client/shell/actions.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/client/shell/actions.rs') diff --git a/src/client/shell/actions.rs b/src/client/shell/actions.rs index 834169fe..31408457 100644 --- a/src/client/shell/actions.rs +++ b/src/client/shell/actions.rs @@ -874,10 +874,9 @@ impl ClientShellState { return self.handle_settings_endpoint_result(kind, result); } kind => { - return ( - self.handle_worktree_endpoint_result(kind, result), - Vec::new(), - ); + let mut outcome = ClientShellInput::default(); + let repaint = self.handle_worktree_endpoint_result(kind, result, &mut outcome); + return (repaint || outcome.repaint, outcome.actions); } } let repaint = match result { -- cgit v1.2.3