Files
SuperCharged-Claude-Code-Up…/PROMPT.md
uroma 55aafbae9a 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>
2026-01-22 14:43:05 +00:00

38 lines
1.4 KiB
Markdown

# Task: CRITICAL BUG: Project isolation completely broken.
## Current Behavior
User creates new project (e.g., 'roman') and clicks 'Start new session' → ALL sessions from other projects appear in this project's left sidebar.
## Previous Failed Attempts
1. Virtual workingDir approach - didn't work
2. Skipping virtual sessions in loadProjects() - didn't work
3. Smart merging logic - still doesn't work
## Requirements
1. Each manually created project should have ONLY its own sessions
2. Auto-generated projects (from real workingDirs) should still work
3. Projects must persist across page refreshes
4. Switching between projects should show only that project's sessions
## Files to Analyze
- /home/uroma/obsidian-web-interface/public/claude-ide/project-manager.js (main logic)
- /home/uroma/obsidian-web-interface/public/claude-ide/chat-enhanced.js (left sidebar)
- /home/uroma/obsidian-web-interface/routes/sessions-routes.js (backend API)
## Success Criteria
- Create new project 'test'
- Add session to 'test' project
- Only 'test' session appears in left sidebar (NOT all sessions)
- Switching to another project shows only that project's sessions
- Console logs confirm correct session filtering
<!-- Ralph will continue iterating until task is complete -->
## Success Criteria
The task is complete when:
- All requirements are implemented
- Tests pass
- Code is documented
<!-- When complete, add <!-- COMPLETE --> marker to this file -->