Commit Graph

7 Commits

  • Fix session persistence after page refresh
    Root cause: loadManuallyCreatedProjects() was restoring projects with
    stale session arrays from localStorage. When loadProjects() tried to
    merge with fresh API data, the stale sessions would override.
    
    Fix 1: In loadManuallyCreatedProjects(), reset the sessions array to
    empty for each loaded project. This ensures sessions always come from
    the API (authoritative source) rather than localStorage.
    
    Fix 2: In createSessionInFolder(), remove the redundant initialize()
    call after loadProjects(). initialize() would reload stale localStorage
    data, undoing the fresh data fetched by loadProjects().
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
  • Fix virtual workingDir handling in addSessionToProject
    - Modified addSessionToProject to correctly extract projectKey from virtual workingDirs
    - Virtual workingDir format: /virtual/projects/{projectKey}
    - Previously was converting slashes to dashes, causing mismatch
    - Added console logging to track session-to-project assignment
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
  • 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>
  • Add close button functionality to project tabs in Claude IDE
    Fix missing 'x' close buttons on project tabs (Level 1). Session tabs
    ( Level 2) already had close buttons implemented.
    
    Changes:
    - project-manager.js: Added close button element to renderProjectTab()
    - Added closeProject() method with confirmation dialog
    - Added getSessionName() helper for session name display
    - Auto-switches to next project when active project is closed
    - project-tabs.css: Added .tab-close styling for project tabs
    - Close button shows on hover, red highlight on hover
    - Mobile responsive: always visible on small screens
    
    The close button removes project tab from view but sessions remain
    accessible via API/reload. Confirmation shows session count and list
    for non-empty projects.
    
    Resolves: https://rommark.dev/claude/ide/session/session-1769083280612-mdof554ot
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
  • Update scratchpad with final iteration status
    Marked Iteration 2 as complete (automated portion).
    Documented that manual WordPress update is required due to REST API limitations.
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
  • Create WordPress blog post update content for SuperCharged Claude Code
    Created comprehensive blog post content highlighting the new SuperCharged
    Claude Code Upgrade kit features:
    
    - New title focusing on 28+ custom skills and Ralph Orchestrator
    - Detailed RalphLoop "Tackle Until Solved" feature explanation
    - Complete feature list for all 28+ skills
    - Updated installation instructions for supercharge.sh
    - Usage examples and workflows
    - SEO-optimized structure with meta description
    
    Files created:
    - new-blog-content.md: Complete blog post in Markdown
    - WORDPRESS-UPDATE-GUIDE.md: Step-by-step WordPress update instructions
    - UPDATE-SUMMARY.md: Summary of changes and next steps
    
    Note: Actual WordPress update requires manual intervention via WordPress admin
    interface as no automated WordPress API tool is available.
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
  • Fix two critical session issues in Claude Code IDE
    Issue 1: Sessions history not showing in left sidebar
    - Converted loadChatHistoryOnLoad IIFE to named loadChatHistory() function
    - Added refresh calls in loadSessionMessages() after loading messages
    - Added guard to skip refresh if showing "Loading session..." state
    - Sidebar now properly shows all active sessions after attachment
    
    Issue 2: New chat session button fails with 'Failed to create session'
    - Changed startNewChat() to call loadChatHistory() instead of loadChatView()
    - Prevents triggering URL-based attachment logic that was causing confusion
    - Sidebar now refreshes correctly without getting stuck in loading state
    
    Also updated cache-bust version to force browser reload.
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>