mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 16:01:05 +00:00
Add thinking level persistence and fix UI issues
- Save and restore thinking level when continuing sessions - Fix thinking level confirmation message spacing and styling - Fix thinking text wrapping to preserve ANSI formatting across lines
This commit is contained in:
parent
159075cad7
commit
7beb354337
4 changed files with 37 additions and 7 deletions
|
|
@ -41,9 +41,9 @@ export class AssistantMessageComponent extends Container {
|
|||
this.contentContainer.addChild(new Markdown(content.text.trim(), undefined, undefined, undefined, 1, 0));
|
||||
} else if (content.type === "thinking" && content.thinking.trim()) {
|
||||
// Thinking traces in dark gray italic
|
||||
// Apply styling to entire block so wrapping preserves it
|
||||
// Use Markdown component because it preserves ANSI codes across wrapped lines
|
||||
const thinkingText = chalk.gray.italic(content.thinking);
|
||||
this.contentContainer.addChild(new Text(thinkingText, 1, 0));
|
||||
this.contentContainer.addChild(new Markdown(thinkingText, undefined, undefined, undefined, 1, 0));
|
||||
this.contentContainer.addChild(new Spacer(1));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue