1 parent bd9da62 commit c6f708cCopy full SHA for c6f708c
1 file changed
extensions/levelcode-ai/test/agentMaxSteps.test.js
@@ -46,7 +46,7 @@ test('extension.js hands runAgent maxSteps as a LIVE getter over a fresh aiConfi
46
const ext = read('extension.js');
47
assert.match(
48
ext,
49
- /get\s+maxSteps\s*\(\s*\)\s*\{[^}]*aiConfig\(\)\s*\.get\(\s*['"]agent\.maxSteps['"]/,
+ /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['"]/,
50
'runAgent ctx must expose `get maxSteps()` re-reading a FRESH aiConfig() each access'
51
);
52
});
0 commit comments