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": 82.89949440956116,
"success": true,
"error": "",
"timestamp": "2026-01-22T12:37:04.146861",
"trigger_reason": "initial",
"output_preview": "I'll start by reading the prompt file and checking for any scratchpad to understand the current state.I see the scratchpad contains information about a different task (Claude IDE session close button). This is a new task about fixing WordPress blog post CTA buttons. Let me start fresh for this new task.\n\nLet me first explore the WordPress installation and understand the post structure.I can see the post content. Looking at the final CTA section, I need to:\n1. Change the \"Get Free Suite\" button l",
"tokens_used": 51576,
"cost": 0.278508,
"tools_used": []
}
],
"cost": {
"total": 0.278508,
"by_tool": {
"claude": 0.278508
},
"history": [
{
"timestamp": 1769085424.1294374,
"tool": "claude",
"input_tokens": 41261,
"output_tokens": 10315,
"cost": 0.278508
}
]
},
"analysis": {
"avg_iteration_duration": 82.89949440956116,
"success_rate": 100.0
}
}