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>
This commit is contained in:
@@ -426,7 +426,12 @@
|
||||
<div class="chat-sidebar-overlay" id="chat-sidebar-overlay"></div>
|
||||
<div class="chat-sidebar" id="chat-sidebar">
|
||||
<div class="sidebar-header">
|
||||
<h2>Chat</h2>
|
||||
<div class="sidebar-header-archives">
|
||||
<h2>Chat</h2>
|
||||
<button class="btn-show-archives" onclick="showArchivedSessions()" title="View archived sessions">
|
||||
📦 Archives
|
||||
</button>
|
||||
</div>
|
||||
<button class="btn-primary" onclick="startNewChat()">+ New</button>
|
||||
</div>
|
||||
<div class="chat-history-list" id="chat-history-list">
|
||||
@@ -506,6 +511,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Merge Sessions Button (shows when 2+ sessions selected) -->
|
||||
<button id="merge-sessions-btn" onclick="mergeSessions()" style="display: none;">
|
||||
🔀 Emerge Sessions
|
||||
</button>
|
||||
|
||||
<!-- Files View -->
|
||||
<div id="files-view" class="view">
|
||||
<div class="files-layout">
|
||||
|
||||
Reference in New Issue
Block a user