(model)
| 395 | abortControllerRef.current?.abort(); |
| 396 | }, |
| 397 | onSetModel(model) { |
| 398 | const resolved = model === 'default' ? null : model ?? null; |
| 399 | setMainLoopModelOverride(resolved); |
| 400 | setAppState(prev_10 => { |
| 401 | if (prev_10.mainLoopModelForSession === resolved) return prev_10; |
| 402 | return { |
| 403 | ...prev_10, |
| 404 | mainLoopModelForSession: resolved |
| 405 | }; |
| 406 | }); |
| 407 | }, |
| 408 | onSetMaxThinkingTokens(maxTokens) { |
| 409 | const enabled = maxTokens !== null; |
| 410 | setAppState(prev_11 => { |
nothing calls this directly
no test coverage detected