Skip to content

Commit 27f6699

Browse files
committed
No memo for getting claude oauth status
1 parent 38092ca commit 27f6699

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

cli/src/chat.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,13 +1363,8 @@ export const Chat = ({
13631363
isAskUserActive: askUserState !== null,
13641364
})
13651365
const hasStatusIndicatorContent = statusIndicatorState.kind !== 'idle'
1366-
1367-
// Check if Claude OAuth is active for the current agent mode
1368-
const isClaudeOAuthActive = useMemo(() => {
1369-
const status = getClaudeOAuthStatus()
1370-
// When connected, Claude OAuth is active for Claude models
1371-
return status.connected
1372-
}, [inputMode]) // Re-check when input mode changes (e.g., after /connect:claude)
1366+
1367+
const isClaudeOAuthActive = getClaudeOAuthStatus().connected
13731368

13741369
// Fetch Claude quota when OAuth is active
13751370
const { data: claudeQuota } = useClaudeQuotaQuery({

0 commit comments

Comments
 (0)