fix: gate xhigh by model (#444) (thanks @grp06)

This commit is contained in:
Peter Steinberger
2026-01-13 06:47:35 +00:00
parent a3641526ab
commit 18d22aa426
6 changed files with 34 additions and 18 deletions

View File

@@ -1227,8 +1227,8 @@ export async function handleDirectiveOnly(params: {
const nextThinkLevel = directives.hasThinkDirective
? directives.thinkLevel
: (sessionEntry?.thinkingLevel as ThinkLevel | undefined) ??
currentThinkLevel;
: ((sessionEntry?.thinkingLevel as ThinkLevel | undefined) ??
currentThinkLevel);
const shouldDowngradeXHigh =
!directives.hasThinkDirective &&
nextThinkLevel === "xhigh" &&