mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-03 21:03:08 +00:00
feat: implement Codex CLI authentication check and integrate with provider
- Added a new utility for checking Codex CLI authentication status using the 'codex login status' command. - Integrated the authentication check into the CodexProvider's installation detection and authentication methods. - Updated Codex CLI status display in the UI to reflect authentication status and method. - Enhanced error handling and logging for better debugging during authentication checks. - Refactored related components to ensure consistent handling of authentication across the application.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useNavigate } from '@tanstack/react-router';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { LogOut, RefreshCcw } from 'lucide-react';
|
||||
import { LogOut } from 'lucide-react';
|
||||
|
||||
export function LoggedOutView() {
|
||||
const navigate = useNavigate();
|
||||
@@ -22,10 +22,6 @@ export function LoggedOutView() {
|
||||
<Button className="w-full" onClick={() => navigate({ to: '/login' })}>
|
||||
Go to login
|
||||
</Button>
|
||||
<Button className="w-full" variant="secondary" onClick={() => window.location.reload()}>
|
||||
<RefreshCcw className="mr-2 h-4 w-4" />
|
||||
Retry
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user