fix(cli-run): improve agent header and think block spacing

Add newlines around agent header for visual separation, dim the thinking
label, and add trailing newline after think block close.

🤖 Generated with [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) assistance
This commit is contained in:
YeonGyu-Kim
2026-02-18 02:01:16 +09:00
parent d9751bd5cb
commit 2f659e9b97

View File

@@ -15,6 +15,8 @@ export function renderAgentHeader(
const variantSuffix = variant ? ` (${variant})` : "" const variantSuffix = variant ? ` (${variant})` : ""
const modelLabel = model ? pc.dim(`${modelBase}${variantSuffix}`) : "" const modelLabel = model ? pc.dim(`${modelBase}${variantSuffix}`) : ""
process.stdout.write("\n")
if (modelLabel) { if (modelLabel) {
process.stdout.write(` ${modelLabel} \n`) process.stdout.write(` ${modelLabel} \n`)
} }
@@ -22,14 +24,16 @@ export function renderAgentHeader(
if (agentLabel) { if (agentLabel) {
process.stdout.write(` ${pc.dim("└─")} ${agentLabel} \n`) process.stdout.write(` ${pc.dim("└─")} ${agentLabel} \n`)
} }
process.stdout.write("\n")
} }
export function openThinkBlock(): void { export function openThinkBlock(): void {
process.stdout.write("\n ┃ Thinking: ") process.stdout.write(`\n ${pc.dim("┃ Thinking:")} `)
} }
export function closeThinkBlock(): void { export function closeThinkBlock(): void {
process.stdout.write(" \n") process.stdout.write(" \n\n")
} }
export function writePaddedText( export function writePaddedText(