fix(audit): resolve lint global, compaction metrics, and nudge id

This commit is contained in:
William Valentin
2026-02-15 21:54:12 -08:00
parent 50dcff5ea6
commit 948d589ac3
7 changed files with 106 additions and 11 deletions
+2 -3
View File
@@ -201,9 +201,8 @@ describe('NativeAgent tool loop', () => {
callCount++;
// After nudge message, model should respond with text
const lastMsg = req.messages[req.messages.length - 1];
const hasNudge = typeof lastMsg?.content !== 'string' &&
Array.isArray(lastMsg?.content) &&
lastMsg.content.some((b: any) => b.content?.includes('do NOT call it again'));
const hasNudge = typeof lastMsg?.content === 'string'
&& lastMsg.content.includes('do NOT call it again');
if (hasNudge) {
return {
content: 'Here is what I found from my searches.',