Skip to content

Commit 55f7792

Browse files
committed
test: fix ThinkingBudget test to expect isUserAction parameter
The test now correctly expects setApiConfigurationField to be called with three arguments including the isUserAction=false parameter for automatic thinking token adjustments.
1 parent a07ac9a commit 55f7792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/settings/__tests__/ThinkingBudget.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ describe("ThinkingBudget", () => {
112112
)
113113

114114
// Effect should trigger and cap the value
115-
expect(setApiConfigurationField).toHaveBeenCalledWith("modelMaxThinkingTokens", 8000) // 80% of 10000
115+
expect(setApiConfigurationField).toHaveBeenCalledWith("modelMaxThinkingTokens", 8000, false) // 80% of 10000
116116
})
117117

118118
it("should use default thinking tokens if not provided", () => {

0 commit comments

Comments
 (0)