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": 24.534838438034058,
"success": true,
"error": "",
"timestamp": "2026-01-22T12:50:00.098429",
"trigger_reason": "initial",
"output_preview": "I'll start by reading the scratchpad to see what's already been accomplished, then verify the current state of the work.Based on the scratchpad and current styles file, I can see that all the text contrast fixes have already been implemented. Let me verify the current state by fetching the live page to confirm all changes are working:The page content shows the blog post is rendering. Looking at the scratchpad, I can see that:\n\n1. **Iteration 1** - Analysis was completed \u2705\n2. **Iteration 2** - Im",
"tokens_used": 47241,
"cost": 0.255099,
"tools_used": []
}
],
"cost": {
"total": 0.255099,
"by_tool": {
"claude": 0.255099
},
"history": [
{
"timestamp": 1769086200.0856762,
"tool": "claude",
"input_tokens": 37793,
"output_tokens": 9448,
"cost": 0.255099
}
]
},
"analysis": {
"avg_iteration_duration": 24.534838438034058,
"success_rate": 100.0
}
}