Wrap status output in code block for visual distinction

Status posts now render inside triple-backtick code blocks
so they look different from normal chat replies.
This commit is contained in:
sol
2026-03-07 19:13:26 +00:00
parent bbafdaf2d8
commit b255283724

View File

@@ -66,7 +66,12 @@ function format(sessionState, opts = {}) {
lines.push(`${indent} [${sessionState.status.toUpperCase()}] ${elapsed}${tokenStr}`);
}
return lines.join('\n');
// Wrap in code block at top level so it looks distinct from normal messages
var body = lines.join('\n');
if (depth === 0) {
body = '```\n' + body + '\n```';
}
return body;
}
/**