Commit Graph

6 Commits

  • Fix project isolation: Make loadChatHistory respect active project sessions
    - Modified loadChatHistory() to check for active project before fetching all sessions
    - When active project exists, use project.sessions instead of fetching from API
    - Added detailed console logging to debug session filtering
    - This prevents ALL sessions from appearing in every project's sidebar
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
  • Implement terminal approval UI system
    Phase 1: Backend approval tracking
    - Add PendingApprovalsManager class to track pending approvals
    - Add approval-request, approval-response, approval-expired WebSocket handlers
    - Add requestApproval() method to ClaudeCodeService
    - Add event forwarding for approval requests
    
    Phase 2: Frontend approval card component
    - Create approval-card.js with interactive UI
    - Create approval-card.css with styled component
    - Add Approve, Custom Instructions, Reject buttons
    - Add expandable custom command input
    
    Phase 3: Wire up approval flow end-to-end
    - Add handleApprovalRequest, handleApprovalConfirmed, handleApprovalExpired handlers
    - Add detectApprovalRequest() to parse AI approval request patterns
    - Integrate approval card into WebSocket message flow
    - Route approval responses based on source (server vs AI conversational)
    
    This allows the AI agent to request command approval through a clean
    UI instead of confusing conversational text responses.
    
    Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
  • feat: AI auto-fix bug tracker with real-time error monitoring
    - Real-time error monitoring system with WebSocket
    - Auto-fix agent that triggers on browser errors
    - Bug tracker dashboard with floating button (🐛)
    - Live activity stream showing AI thought process
    - Fixed 4 JavaScript errors (SyntaxError, TypeError)
    - Fixed SessionPicker API endpoint error
    - Enhanced chat input with Monaco editor
    - Session picker component for project management
    
    Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
  • feat: Implement CLI session-based Full Stack mode
    Replaces WebContainer-based approach with simpler Claude Code CLI session
    shell command execution. This eliminates COOP/COEP header requirements
    and reduces bundle size by ~350KB.
    
    Changes:
    - Added executeShellCommand() to ClaudeService for spawning bash processes
    - Added /claude/api/shell-command API endpoint for executing commands
    - Updated Full Stack mode (chat-functions.js) to use CLI sessions
    - Simplified terminal mode by removing WebContainer dependencies
    
    Benefits:
    - No SharedArrayBuffer/COOP/COEP issues
    - Uses existing Claude Code infrastructure
    - Faster startup, more reliable execution
    - Better error handling and output capture
    
    Fixes:
    - Terminal creation failure in Full Stack mode
    - WebContainer SharedArrayBuffer serialization errors
    
    Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
  • Initial commit: Obsidian Web Interface for Claude Code
    - Full IDE with terminal integration using xterm.js
    - Session management with local and web sessions
    - HTML preview functionality
    - Multi-terminal support with session picker
    
    Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>