revert(ui): restore inherited semantics for Default thinking effort

The explicit-Default behavior from 77d756aeb (Default = send no effort)
was based on a misdiagnosis: the tester did not know a default effort was
configured in settings, so the settings default applying under Default is
the intended behavior, not a bug. Restores the pre-fix effort resolution,
tests, and documentation.
This commit is contained in:
Iuliia Ivashko
2026-09-04 02:10:17 +03:00
parent 77d756aebb
commit 35875e818c
8 changed files with 52 additions and 212 deletions
@@ -148,18 +148,11 @@ const resolveSessionSendConfig = (sessionId: string) => {
?? config.currentModelId
?? selection.lastUsedProvider?.modelID;
// A recorded `null` is an explicit "Default": it stops the lookup and sends
// no effort, instead of falling through to the persisted copy.
const savedVariant =
const variant =
selectedAgent && providerID && modelID
? (() => {
const live = selection.getAgentModelVariantForSession(sessionId, selectedAgent, providerID, modelID);
return live !== undefined
? live
: context.getAgentModelVariantForSession(sessionId, selectedAgent, providerID, modelID);
})()
? (selection.getAgentModelVariantForSession(sessionId, selectedAgent, providerID, modelID)
?? context.getAgentModelVariantForSession(sessionId, selectedAgent, providerID, modelID))
: undefined;
const variant = savedVariant ?? undefined;
return {
providerID,