Skip to content

Commit c6f708c

Browse files
ndemiancCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent bd9da62 commit c6f708c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/levelcode-ai/test/agentMaxSteps.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ test('extension.js hands runAgent maxSteps as a LIVE getter over a fresh aiConfi
4646
const ext = read('extension.js');
4747
assert.match(
4848
ext,
49-
/get\s+maxSteps\s*\(\s*\)\s*\{[^}]*aiConfig\(\)\s*\.get\(\s*['"]agent\.maxSteps['"]/,
49+
/get\s+maxSteps\s*\(\s*\)\s*\{[\s\S]*?(?:\baiConfig\(\)\s*\.get|\b(?:const|let|var)\s+\w+\s*=\s*aiConfig\(\)[\s\S]*?\b\w+\s*\.get)\(\s*['"]agent\.maxSteps['"]/,
5050
'runAgent ctx must expose `get maxSteps()` re-reading a FRESH aiConfig() each access'
5151
);
5252
});

0 commit comments

Comments
 (0)