Skip to content

Commit 534899b

Browse files
TeigenTeigen
authored andcommitted
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.
1 parent 03d91ff commit 534899b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/web/public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,7 @@ <h3>App Settings</h3>
11021102
<option value="low">Low</option>
11031103
<option value="medium">Medium</option>
11041104
<option value="high">High</option>
1105+
<option value="xhigh">XHigh</option>
11051106
<option value="max">Max</option>
11061107
</select>
11071108
<span class="form-hint">Set CLAUDE_CODE_EFFORT_LEVEL for all new sessions (default = no override)</span>

src/web/public/keyboard-accessory.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ const KeyboardAccessoryBar = {
9292
</button>
9393
<button class="accessory-btn" data-action="tab" title="Tab">Tab</button>
9494
<button class="accessory-btn" data-action="shift-tab" title="Shift+Tab">⇧Tab</button>
95+
<button class="accessory-btn" data-action="effort-max" title="/effort max">Max</button>
9596
<button class="accessory-btn" data-action="ctrl-o" title="Ctrl+O">⌃O</button>
9697
<button class="accessory-btn" data-action="opt-enter" title="Option+Enter (newline)">⌥Enter</button>
9798
<button class="accessory-btn" data-action="esc" title="Escape">Esc</button>
@@ -125,7 +126,7 @@ const KeyboardAccessoryBar = {
125126
this.handleAction(action, btn);
126127

127128
// Refocus terminal so keyboard stays open (tap blurs terminal → keyboard dismisses → toolbar shifts)
128-
const refocusActions = new Set(['scroll-up', 'scroll-down', 'arrow-left', 'arrow-right', 'tab', 'shift-tab', 'ctrl-o', 'opt-enter', 'esc']);
129+
const refocusActions = new Set(['scroll-up', 'scroll-down', 'arrow-left', 'arrow-right', 'tab', 'shift-tab', 'ctrl-o', 'opt-enter', 'esc', 'effort-max']);
129130
if (refocusActions.has(action) ||
130131
((action === 'clear' || action === 'compact') && this._confirmAction)) {
131132
if (typeof app !== 'undefined' && app.terminal) {
@@ -184,6 +185,9 @@ const KeyboardAccessoryBar = {
184185
case 'ctrl-o':
185186
this.sendKey('\x0f');
186187
break;
188+
case 'effort-max':
189+
this.sendCommand('/effort max');
190+
break;
187191
case 'init':
188192
this.sendCommand('/init');
189193
break;

0 commit comments

Comments
 (0)