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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user