From bef3ffc1a02b04f84e30258035462a2b4a691494 Mon Sep 17 00:00:00 2001 From: smnatale Date: Tue, 14 Apr 2026 10:00:23 +0100 Subject: [PATCH 1/3] fix double callback bug --- lua/coderabbit/cli.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/coderabbit/cli.lua b/lua/coderabbit/cli.lua index 8f81b9f..c793089 100644 --- a/lua/coderabbit/cli.lua +++ b/lua/coderabbit/cli.lua @@ -48,6 +48,7 @@ function M.review(opts, callbacks) local stderr_chunks = {} local cfg = config.get() local timer = nil + local timed_out = false local job_id = vim.fn.jobstart(cmd, { cwd = vim.fn.getcwd(), @@ -79,6 +80,9 @@ function M.review(opts, callbacks) if timer then vim.fn.timer_stop(timer) end + if timed_out then + return + end local stderr = table.concat(stderr_chunks, "\n") vim.schedule(function() if callbacks.on_exit then @@ -90,6 +94,7 @@ function M.review(opts, callbacks) if job_id > 0 and cfg.cli.timeout > 0 then timer = vim.fn.timer_start(cfg.cli.timeout, function() + timed_out = true vim.fn.jobstop(job_id) vim.schedule(function() if callbacks.on_exit then From aa774ab1b44c3c63849b1ef22a53fbdd9b3b5741 Mon Sep 17 00:00:00 2001 From: smnatale Date: Tue, 14 Apr 2026 10:05:59 +0100 Subject: [PATCH 2/3] semantic change --- .github/semantic.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/semantic.yml diff --git a/.github/semantic.yml b/.github/semantic.yml new file mode 100644 index 0000000..fd160e5 --- /dev/null +++ b/.github/semantic.yml @@ -0,0 +1 @@ +titleOnly: true From a3173ecf51468a9f3694d07206734b2cb51d3df7 Mon Sep 17 00:00:00 2001 From: smnatale Date: Tue, 14 Apr 2026 10:07:44 +0100 Subject: [PATCH 3/3] semantic fix --- .github/semantic.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/semantic.yml b/.github/semantic.yml index fd160e5..061183b 100644 --- a/.github/semantic.yml +++ b/.github/semantic.yml @@ -1 +1,4 @@ +# Configuration for Semanic Prs Github App +# https://github.com/Ezard/semantic-prs +enabled: true titleOnly: true