Fix SelectList crash on narrow terminal and thinking level restoration
SelectList fixes: - Use hardcoded visual width for arrow prefix instead of string length which includes ANSI codes - Truncate scroll indicator text to prevent exceeding terminal width - Fixes crash when terminal is resized narrow and arrow keys are pressed Thinking level fix: - Restore thinking level even if it's "off" (removed !== "off" check) - This ensures the thinking level selector shows the correct state on continue
This commit is contained in:
@@ -230,7 +230,7 @@ export async function main(args: string[]) {
|
||||
|
||||
// Load and restore thinking level
|
||||
const thinkingLevel = sessionManager.loadThinkingLevel() as ThinkingLevel;
|
||||
if (thinkingLevel && thinkingLevel !== "off") {
|
||||
if (thinkingLevel) {
|
||||
agent.setThinkingLevel(thinkingLevel);
|
||||
console.log(chalk.dim(`Restored thinking level: ${thinkingLevel}`));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user