Skip to content

Commit da16ad7

Browse files
committed
fix(scanner): resolve infinite recursion in codex isInternalTool (#19)
isInternalTool called itself instead of checking CODEX_INTERNAL_TOOLS set, causing stack overflow on every codex connector scan.
1 parent ebd5201 commit da16ad7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/cli/src/scanner/connectors

packages/cli/src/scanner/connectors/codex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const CODEX_INTERNAL_TOOLS = new Set([
1414
]);
1515

1616
function isInternalTool(name: string): boolean {
17-
return isInternalTool(name) || name.startsWith("mcp__") || name.startsWith("mcp_");
17+
return CODEX_INTERNAL_TOOLS.has(name) || name.startsWith("mcp__") || name.startsWith("mcp_");
1818
}
1919

2020
const SKILL_PATH_RE = /skills\/([^/]+)\/SKILL\.md/;

0 commit comments

Comments
 (0)