diff --git a/LICENSE.md b/LICENSE.md index 75e5e5e6..68f7617b 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -19,3 +19,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Fresh restart - testing stash browsing with updated recovery logic! + +Now baseline exists - this should work properly! + +Testing with debug logs to see what's happening in the hooks. + +After reloading hooks module - this should create debug logs! diff --git a/lua/nvim-claude/hooks.lua b/lua/nvim-claude/hooks.lua index 92605ac5..34a2d08b 100644 --- a/lua/nvim-claude/hooks.lua +++ b/lua/nvim-claude/hooks.lua @@ -17,6 +17,10 @@ end function M.pre_tool_use_hook() vim.notify('Pre-hook called', vim.log.levels.INFO) + -- Debug log + local debug_msg = string.format('Pre-hook executing at %s', os.date('%Y-%m-%d %H:%M:%S')) + vim.fn.writefile({debug_msg}, '/tmp/claude-pre-hook-debug.log', 'a') + local utils = require('nvim-claude.utils') -- Check if we're in a git repository @@ -75,6 +79,10 @@ end function M.post_tool_use_hook() vim.notify('Post-hook called', vim.log.levels.INFO) + -- Debug log + local debug_msg = string.format('Post-hook executing at %s', os.date('%Y-%m-%d %H:%M:%S')) + vim.fn.writefile({debug_msg}, '/tmp/claude-post-hook-debug.log', 'a') + vim.notify('Post-tool-use hook triggered', vim.log.levels.INFO) -- Use vim.schedule to ensure we're in the main thread