debug: forward runner query lifecycle logs to INFO for diagnosis
This commit is contained in:
@@ -285,7 +285,14 @@ export async function runAgentProcess(
|
||||
if (
|
||||
line.includes('Turn in progress') ||
|
||||
line.includes('Subagent') ||
|
||||
line.includes('Intermediate assistant')
|
||||
line.includes('Intermediate assistant') ||
|
||||
line.includes('Promoting') ||
|
||||
line.includes('Flushing') ||
|
||||
line.includes('Result #') ||
|
||||
line.includes('Query done') ||
|
||||
line.includes('Terminal') ||
|
||||
line.includes('Assistant: stop=') ||
|
||||
line.includes('Close sentinel')
|
||||
) {
|
||||
logger.info(
|
||||
{ group: group.name, chatJid: input.chatJid, runId: input.runId },
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user