Commit Graph

7 Commits

Author SHA1 Message Date
Leon van Zyl
cd82a4cf46 Merge pull request #12 from mantarayDigital/fix/start-sh-credentials-check
fix: Comprehensive authentication error handling
2026-01-10 11:29:13 +02:00
Auto
dff28c53bf fix: handle cross-platform venv compatibility in WSL
Changes:
- start_ui.sh, start.sh: Check for venv/bin/activate instead of just
  venv/ directory to detect Windows venvs in Linux/WSL
- Auto-recreate venv when incompatible platform structure detected
- Add error handling for venv removal, creation, and activation failures
- Provide actionable error messages with distro-specific instructions
- start_ui.bat: Check for venv\Scripts\activate.bat for consistency
  with start.bat pattern

Fixes issue where users cloning repo in WSL would encounter:
- "venv/bin/activate: No such file or directory"
- "No module named pip" errors

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 09:51:54 +02:00
mantarayDigital
b2c19b0c4c feat: Add authentication error handling to UI flow
Extend auth error detection to the web UI flow:

server/main.py:
- Fix setup_status() endpoint to check ~/.claude directory instead of
  non-existent .credentials.json file
- Add explanatory comments about Claude CLI credential storage changes

server/services/process_manager.py:
- Add AUTH_ERROR_PATTERNS for detecting auth errors in agent output
- Add is_auth_error() helper function
- Add AUTH_ERROR_HELP message template
- Update _stream_output() to detect auth errors in real-time
- Buffer last 20 lines to catch auth errors on process exit
- Broadcast clear help message to WebSocket clients when auth fails

start_ui.sh:
- Add Claude CLI installation check with helpful guidance
- Add ~/.claude directory check with login reminder
- Non-blocking warnings that don't prevent UI from starting

This ensures users get clear, actionable feedback when authentication
fails, whether using the CLI or the web UI.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 07:37:04 +02:00
Auto
17b7354db8 fix: activate venv in UI launcher scripts
start_ui.sh and start_ui.bat were using system Python directly,
causing ModuleNotFoundError for dotenv. Now they create and activate
the venv before running, matching the pattern in start.sh.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 09:45:54 +02:00
Auto
63731c169f rebrand 2026-01-07 09:28:16 +02:00
Auto
1e20ba9cc9 fix dotenv dependency, also add license agreement 2026-01-06 17:03:35 +02:00
Auto
a2efec159d basic ui 2025-12-30 11:56:39 +02:00