Skip to content

Commit 83a8b78

Browse files
committed
fix(ci): guard loop detection integer parsing
1 parent eaa2f7a commit 83a8b78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/agents/tool-loop-detection.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type ResolvedLoopDetectionConfig = {
5555
};
5656

5757
function asPositiveInt(value: number | undefined, fallback: number): number {
58-
if (!Number.isInteger(value) || value <= 0) {
58+
if (typeof value !== "number" || !Number.isInteger(value) || value <= 0) {
5959
return fallback;
6060
}
6161
return value;

0 commit comments

Comments
 (0)