Skip to content

Commit 98f3093

Browse files
committed
fix: update webview test to expect supportsPromptCache=true for Claude Code models
1 parent 2f659bc commit 98f3093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/ui/hooks/__tests__/useSelectedModel.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ describe("useSelectedModel", () => {
402402
expect(result.current.id).toBe("claude-sonnet-4-20250514")
403403
expect(result.current.info).toBeDefined()
404404
expect(result.current.info?.supportsImages).toBe(false)
405-
expect(result.current.info?.supportsPromptCache).toBe(false)
405+
expect(result.current.info?.supportsPromptCache).toBe(true) // Claude Code now supports prompt cache
406406
// Verify it inherits other properties from anthropic models
407407
expect(result.current.info?.maxTokens).toBe(64_000)
408408
expect(result.current.info?.contextWindow).toBe(200_000)

0 commit comments

Comments
 (0)