mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 22:01:41 +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
|
|
@ -98,6 +98,7 @@ export class TuiRenderer {
|
|||
// Setup UI layout
|
||||
this.ui.addChild(new Spacer(1));
|
||||
this.ui.addChild(header);
|
||||
this.ui.addChild(new Spacer(1));
|
||||
this.ui.addChild(this.chatContainer);
|
||||
this.ui.addChild(this.statusContainer);
|
||||
this.ui.addChild(new Spacer(1));
|
||||
|
|
@ -377,11 +378,10 @@ export class TuiRenderer {
|
|||
// Apply the selected thinking level
|
||||
this.agent.setThinkingLevel(level);
|
||||
|
||||
// Show confirmation message with padding and blue color
|
||||
this.chatContainer.addChild(new Text("", 0, 0)); // Blank line before
|
||||
const confirmText = new Text(chalk.blue(`Thinking level set to: ${level}`), 0, 0);
|
||||
// Show confirmation message with proper spacing
|
||||
this.chatContainer.addChild(new Spacer(1));
|
||||
const confirmText = new Text(chalk.dim(`Thinking level: ${level}`), 1, 0);
|
||||
this.chatContainer.addChild(confirmText);
|
||||
this.chatContainer.addChild(new Text("", 0, 0)); // Blank line after
|
||||
|
||||
// Hide selector and show editor again
|
||||
this.hideThinkingSelector();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue