From 534899bc2b667de29b604e8a415d6f4db0ce5f53 Mon Sep 17 00:00:00 2001 From: Teigen Date: Tue, 21 Apr 2026 23:36:27 +0800 Subject: [PATCH] feat: add xhigh effort option and /effort max mobile shortcut Add XHigh option to Thinking Effort dropdown (between High and Max), and add a Max quick button to the mobile keyboard accessory bar that sends /effort max as a slash command. --- src/web/public/index.html | 1 + src/web/public/keyboard-accessory.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/web/public/index.html b/src/web/public/index.html index 963af0c7..0a744e40 100644 --- a/src/web/public/index.html +++ b/src/web/public/index.html @@ -1102,6 +1102,7 @@ + Set CLAUDE_CODE_EFFORT_LEVEL for all new sessions (default = no override) diff --git a/src/web/public/keyboard-accessory.js b/src/web/public/keyboard-accessory.js index e58aebba..4785eda7 100644 --- a/src/web/public/keyboard-accessory.js +++ b/src/web/public/keyboard-accessory.js @@ -92,6 +92,7 @@ const KeyboardAccessoryBar = { + @@ -125,7 +126,7 @@ const KeyboardAccessoryBar = { this.handleAction(action, btn); // Refocus terminal so keyboard stays open (tap blurs terminal → keyboard dismisses → toolbar shifts) - const refocusActions = new Set(['scroll-up', 'scroll-down', 'arrow-left', 'arrow-right', 'tab', 'shift-tab', 'ctrl-o', 'opt-enter', 'esc']); + const refocusActions = new Set(['scroll-up', 'scroll-down', 'arrow-left', 'arrow-right', 'tab', 'shift-tab', 'ctrl-o', 'opt-enter', 'esc', 'effort-max']); if (refocusActions.has(action) || ((action === 'clear' || action === 'compact') && this._confirmAction)) { if (typeof app !== 'undefined' && app.terminal) { @@ -184,6 +185,9 @@ const KeyboardAccessoryBar = { case 'ctrl-o': this.sendKey('\x0f'); break; + case 'effort-max': + this.sendCommand('/effort max'); + break; case 'init': this.sendCommand('/init'); break;