* Forward an ACP thinking-toggle change to the underlying SDK. * * Phase 15 introduces this as the new canonical channel for the * thinking axis. Boolean → thinking-effort mapping: * - `true` → `Session.setThinking(effort)` where `effort` is the * current model's default effort (
(enabled: boolean)
| 379 | * carries a fresh snapshot. |
| 380 | */ |
| 381 | async setThinking(enabled: boolean): Promise<void> { |
| 382 | if (typeof this.session.setThinking === 'function') { |
| 383 | const effort = enabled ? await this.thinkingOnEffort() : THINKING_OFF_EFFORT; |
| 384 | await this.session.setThinking(effort); |
| 385 | } |
| 386 | this.currentThinkingEnabledInternal = enabled; |
| 387 | await this.emitConfigOptionUpdate(); |
| 388 | } |
| 389 | |
| 390 | /** |
| 391 | * The effort to send when the ACP thinking toggle flips on: the current |
no test coverage detected