debug: forward runner query lifecycle logs to INFO for diagnosis

This commit is contained in:
Eyejoker
2026-03-29 21:29:06 +09:00
parent 8119b0bb8f
commit b33cf6c058
2 changed files with 12 additions and 2 deletions

View File

@@ -900,7 +900,10 @@ export async function runAgentForGroup(
// success-null-result with no visible output — agent returned nothing useful.
// But if output was already delivered to Discord (sawOutput), treat as success.
if (primaryAttempt.sawSuccessNullResultWithoutOutput && !primaryAttempt.sawOutput) {
if (
primaryAttempt.sawSuccessNullResultWithoutOutput &&
!primaryAttempt.sawOutput
) {
logger.error(
{ group: group.name, chatJid, runId },
'Agent returned success with null result and no visible output',