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": 130.0527069568634,
"success": true,
"error": "",
"timestamp": "2026-01-22T12:41:04.926101",
"trigger_reason": "initial",
"output_preview": "I'll help you fix the tab persistence issue in the Claude IDE. Let me start by reading the prompt file and checking for any existing scratchpad.I can see there's an old scratchpad from a previous task. Let me create a new scratchpad for this task and start exploring the codebase to understand the tab persistence issue.Perfect! Let me read the relevant files to understand the current implementation:Now I understand the issue. The closed tabs are not persisted to localStorage, so when the page ref",
"tokens_used": 84911,
"cost": 0.45851699999999995,
"tools_used": []
}
],
"cost": {
"total": 0.45851699999999995,
"by_tool": {
"claude": 0.45851699999999995
},
"history": [
{
"timestamp": 1769085664.9097311,
"tool": "claude",
"input_tokens": 67929,
"output_tokens": 16982,
"cost": 0.45851699999999995
}
]
},
"analysis": {
"avg_iteration_duration": 130.0527069568634,
"success_rate": 100.0
}
}