From 6aed9c9e0252b0c8f681a358e5a8707271454137 Mon Sep 17 00:00:00 2001 From: Agando Date: Mon, 1 Jun 2026 06:00:39 +0200 Subject: auto: 2026-06-01_06:00 changes --- modules/core/module-aiassist.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'modules/core/module-aiassist.js') diff --git a/modules/core/module-aiassist.js b/modules/core/module-aiassist.js index 8f8a60c..f77ec61 100644 --- a/modules/core/module-aiassist.js +++ b/modules/core/module-aiassist.js @@ -665,17 +665,19 @@ RULES: } // Validator: check safe tool results for consistency if (safeResults.length > 0 && pendingText) { - const om = this.terminal.ollamaManager; + const om = this.terminal.ollamaManager; if (om && om.validatorEnabled && om.validatorModel) { - let anyInvalid = false; + let invalidTools = []; for (const { fn, toolResult } of safeResults) { const valid = await om.validateToolResult(fn.name, fn.arguments, toolResult, pendingText || ''); if (!valid && !this._cancelled) { - anyInvalid = true; + invalidTools.push(fn.name); this.terminal.print('šŸ” Validator: ' + fn.name + ' result — AI note may not match (logged)', 'info'); - // Just log it — don't force retry (cloud models get 400 on retry) } } + if (invalidTools.length > 0) { + pendingText += '\n\nāš ļø **Validator flagged** ' + invalidTools.join(', ') + ' — the AI analysis may not match what was returned. Use `ai-ignore` to dismiss and proceed.'; + } } } if (pendingText) { -- cgit v1.2.3