fix: suppress spurious chat message on script skip

When a script returns wakeAgent=false, set result to null so the host
doesn't forward an internal status string to the user's chat.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Koshkoshinsk
2026-03-25 11:41:25 +00:00
parent 1b18d50ae4
commit d622a79fe2

View File

@@ -566,7 +566,7 @@ async function main(): Promise<void> {
log(`Script decided not to wake agent: ${reason}`); log(`Script decided not to wake agent: ${reason}`);
writeOutput({ writeOutput({
status: 'success', status: 'success',
result: `Script: ${reason}`, result: null,
}); });
return; return;
} }