mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-01-30 06:12:06 +00:00
Merge pull request #12 from mantarayDigital/fix/start-sh-credentials-check
fix: Comprehensive authentication error handling
This commit is contained in:
21
start_ui.sh
21
start_ui.sh
@@ -9,6 +9,27 @@ echo " AutoCoder UI"
|
||||
echo "===================================="
|
||||
echo ""
|
||||
|
||||
# Check if Claude CLI is installed
|
||||
if ! command -v claude &> /dev/null; then
|
||||
echo "[!] Claude CLI not found"
|
||||
echo ""
|
||||
echo " The agent requires Claude CLI to work."
|
||||
echo " Install it from: https://claude.ai/download"
|
||||
echo ""
|
||||
echo " After installing, run: claude login"
|
||||
echo ""
|
||||
else
|
||||
echo "[OK] Claude CLI found"
|
||||
# Note: Claude CLI no longer stores credentials in ~/.claude/.credentials.json
|
||||
# We can't reliably check auth status without making an API call
|
||||
if [ -d "$HOME/.claude" ]; then
|
||||
echo " (If you're not logged in, run: claude login)"
|
||||
else
|
||||
echo "[!] Claude CLI not configured - run 'claude login' first"
|
||||
fi
|
||||
fi
|
||||
echo ""
|
||||
|
||||
# Check if Python is available
|
||||
if ! command -v python3 &> /dev/null; then
|
||||
if ! command -v python &> /dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user