From 5a3fa7a873a76fe531c890199a592a88b2d33804 Mon Sep 17 00:00:00 2001 From: Tino Ehrich Date: Wed, 19 Nov 2025 18:07:53 +0100 Subject: [PATCH] fix: change thinking level cycling from Ctrl+T to Shift+Tab --- packages/coding-agent/src/tui/custom-editor.ts | 8 ++++---- packages/coding-agent/src/tui/tui-renderer.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/coding-agent/src/tui/custom-editor.ts b/packages/coding-agent/src/tui/custom-editor.ts index b89a64d51..08527dff2 100644 --- a/packages/coding-agent/src/tui/custom-editor.ts +++ b/packages/coding-agent/src/tui/custom-editor.ts @@ -6,12 +6,12 @@ import { Editor } from "@mariozechner/pi-tui"; export class CustomEditor extends Editor { public onEscape?: () => void; public onCtrlC?: () => void; - public onCtrlT?: () => void; + public onShiftTab?: () => void; handleInput(data: string): void { - // Intercept Ctrl+T for thinking level cycling - if (data === "\x14" && this.onCtrlT) { - this.onCtrlT(); + // Intercept Shift+Tab for thinking level cycling + if (data === "\x1b[Z" && this.onShiftTab) { + this.onShiftTab(); return; } diff --git a/packages/coding-agent/src/tui/tui-renderer.ts b/packages/coding-agent/src/tui/tui-renderer.ts index 01713d249..e9fcf8476 100644 --- a/packages/coding-agent/src/tui/tui-renderer.ts +++ b/packages/coding-agent/src/tui/tui-renderer.ts @@ -169,7 +169,7 @@ export class TuiRenderer { chalk.dim("ctrl+k") + chalk.gray(" to delete line") + "\n" + - chalk.dim("ctrl+t") + + chalk.dim("shift+tab") + chalk.gray(" to cycle thinking") + "\n" + chalk.dim("/") + @@ -213,7 +213,7 @@ export class TuiRenderer { this.handleCtrlC(); }; - this.editor.onCtrlT = () => { + this.editor.onShiftTab = () => { this.cycleThinkingLevel(); };