Skip to content

Commit ccfc6f6

Browse files
fix: respect auto_close on native provider
1 parent d0f9748 commit ccfc6f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/claudecode/terminal/native.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ local function open_terminal(cmd_string, env_table, effective_config, focus)
9898

9999
cleanup_state() -- Clear our managed state first
100100

101+
if not effective_config.auto_close then
102+
return
103+
end
104+
101105
if current_winid_for_job and vim.api.nvim_win_is_valid(current_winid_for_job) then
102106
if current_bufnr_for_job and vim.api.nvim_buf_is_valid(current_bufnr_for_job) then
103107
-- Optional: Check if the window still holds the same terminal buffer

0 commit comments

Comments
 (0)