fix(comment-checker): improve pending calls handling and add tests

🤖 Generated with assistance of OhMyOpenCode
This commit is contained in:
YeonGyu-Kim
2026-03-31 17:33:38 -07:00
parent 439c9a6499
commit 3c77c048dd
3 changed files with 57 additions and 1 deletions
+9 -1
View File
@@ -22,7 +22,12 @@ import {
processWithCli,
processApplyPatchEditsWithCli,
} from "./cli-runner"
import { registerPendingCall, startPendingCallCleanup, takePendingCall } from "./pending-calls"
import {
registerPendingCall,
startPendingCallCleanup,
stopPendingCallCleanup,
takePendingCall,
} from "./pending-calls"
import * as fs from "fs"
import { tmpdir } from "os"
@@ -180,5 +185,8 @@ export function createCommentCheckerHooks(config?: CommentCheckerConfig) {
debugLog("tool.execute.after failed:", err)
}
},
dispose: (): void => {
stopPendingCallCleanup()
},
}
}