Revert "revert(ui): restore inherited semantics for Default thinking effort"
This reverts commit 35875e818c.
This commit is contained in:
@@ -148,11 +148,18 @@ const resolveSessionSendConfig = (sessionId: string) => {
|
||||
?? config.currentModelId
|
||||
?? selection.lastUsedProvider?.modelID;
|
||||
|
||||
const variant =
|
||||
// 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 =
|
||||
selectedAgent && providerID && modelID
|
||||
? (selection.getAgentModelVariantForSession(sessionId, selectedAgent, providerID, modelID)
|
||||
?? context.getAgentModelVariantForSession(sessionId, selectedAgent, providerID, modelID))
|
||||
? (() => {
|
||||
const live = selection.getAgentModelVariantForSession(sessionId, selectedAgent, providerID, modelID);
|
||||
return live !== undefined
|
||||
? live
|
||||
: context.getAgentModelVariantForSession(sessionId, selectedAgent, providerID, modelID);
|
||||
})()
|
||||
: undefined;
|
||||
const variant = savedVariant ?? undefined;
|
||||
|
||||
return {
|
||||
providerID,
|
||||
|
||||
Reference in New Issue
Block a user