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:
43
.agent/metrics/metrics_20260122_123628.json
Normal file
43
.agent/metrics/metrics_20260122_123628.json
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"summary": {
|
||||
"iterations": 1,
|
||||
"successful": 1,
|
||||
"failed": 0,
|
||||
"errors": 0,
|
||||
"checkpoints": 0,
|
||||
"rollbacks": 0
|
||||
},
|
||||
"iterations": [
|
||||
{
|
||||
"iteration": 1,
|
||||
"duration": 234.6205906867981,
|
||||
"success": true,
|
||||
"error": "",
|
||||
"timestamp": "2026-01-22T12:36:28.303076",
|
||||
"trigger_reason": "initial",
|
||||
"output_preview": "I'll help you fix the WordPress blog post issues. Let me start by checking the scratchpad and then examining the current state of the files.Good! I can see the scratchpad contains a different task (Claude IDE tab close buttons), so this is a fresh start. Now let me check the actual blog post to understand the issues:Let me get more details about the actual CTA buttons and check the full HTML:Now let me check for all the CTA buttons and potential contrast issues:Now let me check the actual render",
|
||||
"tokens_used": 71132,
|
||||
"cost": 0.384108,
|
||||
"tools_used": []
|
||||
}
|
||||
],
|
||||
"cost": {
|
||||
"total": 0.384108,
|
||||
"by_tool": {
|
||||
"claude": 0.384108
|
||||
},
|
||||
"history": [
|
||||
{
|
||||
"timestamp": 1769085388.286653,
|
||||
"tool": "claude",
|
||||
"input_tokens": 56906,
|
||||
"output_tokens": 14226,
|
||||
"cost": 0.384108
|
||||
}
|
||||
]
|
||||
},
|
||||
"analysis": {
|
||||
"avg_iteration_duration": 234.6205906867981,
|
||||
"success_rate": 100.0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user