Skip to content

Commit ee1f537

Browse files
fix: respect auto_close on native provider (#63)
1 parent 7b7ce38 commit ee1f537

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
@@ -99,6 +99,10 @@ local function open_terminal(cmd_string, env_table, effective_config, focus)
9999

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

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

0 commit comments

Comments
 (0)