Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lua/claudecode/server/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,12 @@ function M.register_handlers()
return result_or_error_table
end

-- Refresh file buffers after tool execution to pick up external changes (e.g., Claude's Edit tool)
-- This handles the case where Claude writes to files outside of tools
vim.defer_fn(function()
vim.cmd.checktime()
end, 50)

-- Log the response for debugging
logger.debug("server", "Response - tools/call", params and params.name .. ":", vim.inspect(result_or_error_table))

Expand Down