Fix authentication state consistency across components
- Fix ChatInterface to use context's reactive isAuthenticated value - Fix useAgentLoop to use context's reactive isAuthenticated value - Ensure consistent authentication state checking across the application - Add isAuthenticated to useCallback dependencies for proper reactivity 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
3a4a5cdc52
commit
aed7a25ea7
1 changed files with 4 additions and 4 deletions
|
|
@ -16,7 +16,7 @@ export function ChatInterface() {
|
|||
getAgentLoopState,
|
||||
} = useConversation();
|
||||
|
||||
const { currentProvider } = useInference();
|
||||
const { provider: currentProvider, isAuthenticated } = useInference();
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
const messagesEndRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue