logging: emit agent/session meta at command start

This commit is contained in:
Peter Steinberger
2025-12-02 21:30:28 +00:00
parent 1df6373cb1
commit 0f6157a49d

View File

@@ -189,12 +189,22 @@ export async function runCommandReply(
systemSent,
identityPrefix: agentCfg.identityPrefix,
format: agentCfg.format,
})
})
: argv;
logVerbose(
`Running command auto-reply: ${finalArgv.join(" ")}${reply.cwd ? ` (cwd: ${reply.cwd})` : ""}`,
);
logger.info(
{
agent: agentKind,
sessionId: templatingCtx.SessionId,
newSession: isNewSession,
cwd: reply.cwd,
command: finalArgv.slice(0, -1), // omit body to reduce noise
},
"command auto-reply start",
);
const started = Date.now();
let queuedMs: number | undefined;