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

@@ -195,6 +195,16 @@ export async function runCommandReply(
logVerbose( logVerbose(
`Running command auto-reply: ${finalArgv.join(" ")}${reply.cwd ? ` (cwd: ${reply.cwd})` : ""}`, `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(); const started = Date.now();
let queuedMs: number | undefined; let queuedMs: number | undefined;