logging: emit agent/session meta at command start
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user