chore(auto-reply): include cwd in timeout message

This commit is contained in:
Peter Steinberger
2025-11-26 02:18:16 +01:00
parent ce5b02a9ad
commit 4a8bb56a1e
2 changed files with 2 additions and 1 deletions

View File

@@ -341,7 +341,7 @@ export async function runCommandReply(
);
const baseMsg =
"Command timed out after " +
`${timeoutSeconds}s. Try a shorter prompt or split the request.`;
`${timeoutSeconds}s${reply.cwd ? ` (cwd: ${reply.cwd})` : ""}. Try a shorter prompt or split the request.`;
const partial = errorObj.stdout?.trim();
const partialSnippet =
partial && partial.length > 800 ? `${partial.slice(0, 800)}...` : partial;