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:
uroma
2026-01-22 14:43:05 +00:00
Unverified
parent b82837aa5f
commit 55aafbae9a
6463 changed files with 1115462 additions and 4486 deletions

View File

@@ -0,0 +1,43 @@
{
"summary": {
"iterations": 1,
"successful": 1,
"failed": 0,
"errors": 0,
"checkpoints": 0,
"rollbacks": 0
},
"iterations": [
{
"iteration": 1,
"duration": 120.01204371452332,
"success": true,
"error": "",
"timestamp": "2026-01-22T12:36:11.499904",
"trigger_reason": "initial",
"output_preview": "I'll help you fix the session close button issue by replacing the blocking `confirm()` dialog with a non-blocking custom modal. Let me start by checking the scratchpad and then exploring the codebase.I can see from the scratchpad that previous work was done on adding close buttons to project tabs. However, the current task is specifically about fixing the **session close button** that's broken because the browser blocked the `confirm()` dialog. Let me explore the session-tabs.js file to understa",
"tokens_used": 81501,
"cost": 0.44010299999999997,
"tools_used": []
}
],
"cost": {
"total": 0.44010299999999997,
"by_tool": {
"claude": 0.44010299999999997
},
"history": [
{
"timestamp": 1769085371.4782748,
"tool": "claude",
"input_tokens": 65201,
"output_tokens": 16300,
"cost": 0.44010299999999997
}
]
},
"analysis": {
"avg_iteration_duration": 120.01204371452332,
"success_rate": 100.0
}
}