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": 290.6224524974823,
"success": true,
"error": "",
"timestamp": "2026-01-22T12:48:18.654912",
"trigger_reason": "initial",
"output_preview": "I'll help you fix the text contrast issues on the WordPress blog post. Let me start by checking the scratchpad and understanding the current state.I can see the scratchpad contains a previous task. Let me now focus on the current task - fixing text contrast issues on the WordPress blog post. The main issue mentioned is the 'Ready to Transform Your Development Workflow' heading not being visible.\n\nLet me analyze the current styles and fetch the actual post content to identify ALL text with poor c",
"tokens_used": 74312,
"cost": 0.40127999999999997,
"tools_used": []
}
],
"cost": {
"total": 0.40127999999999997,
"by_tool": {
"claude": 0.40127999999999997
},
"history": [
{
"timestamp": 1769086098.6375349,
"tool": "claude",
"input_tokens": 59450,
"output_tokens": 14862,
"cost": 0.40127999999999997
}
]
},
"analysis": {
"avg_iteration_duration": 290.6224524974823,
"success_rate": 100.0
}
}