* The effort to send when the ACP thinking toggle flips on: the current * model's declared default effort (or middle `support_efforts`), falling * back to `'on'` for boolean models or when the catalog is unavailable * (harness-less unit tests). The `always_thinking` constraint is enforced
()
| 396 | * explicit off request here. |
| 397 | */ |
| 398 | private async thinkingOnEffort(): Promise<string> { |
| 399 | if (!this.harness) return 'on'; |
| 400 | const models = await listModelsFromHarness(this.harness); |
| 401 | return models.find((m) => m.id === this.currentModelIdInternal)?.defaultThinkingEffort ?? 'on'; |
| 402 | } |
| 403 | |
| 404 | /** |
| 405 | * Forward an ACP `session/set_mode` request to the underlying SDK |
no test coverage detected