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_122834.json
Normal file
43
.agent/metrics/metrics_20260122_122834.json
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"summary": {
|
||||
"iterations": 1,
|
||||
"successful": 1,
|
||||
"failed": 0,
|
||||
"errors": 0,
|
||||
"checkpoints": 0,
|
||||
"rollbacks": 0
|
||||
},
|
||||
"iterations": [
|
||||
{
|
||||
"iteration": 1,
|
||||
"duration": 60.5629768371582,
|
||||
"success": true,
|
||||
"error": "",
|
||||
"timestamp": "2026-01-22T12:28:34.360554",
|
||||
"trigger_reason": "initial",
|
||||
"output_preview": "I'll help you fix the missing close buttons on the session/project tabs. Let me start by checking the scratchpad and exploring the codebase.Good! I found the files. The scratchpad shows previous work on a different task, so I'll start fresh on this close button task. Let me explore these files to understand the current implementation.Perfect! I can see the issue now. Let me analyze what I found:\n\n**Analysis:**\n1. **Session tabs (Level 2)**: Already have close buttons! Line 100 in `session-tabs.j",
|
||||
"tokens_used": 63630,
|
||||
"cost": 0.343602,
|
||||
"tools_used": []
|
||||
}
|
||||
],
|
||||
"cost": {
|
||||
"total": 0.343602,
|
||||
"by_tool": {
|
||||
"claude": 0.343602
|
||||
},
|
||||
"history": [
|
||||
{
|
||||
"timestamp": 1769084914.3426394,
|
||||
"tool": "claude",
|
||||
"input_tokens": 50904,
|
||||
"output_tokens": 12726,
|
||||
"cost": 0.343602
|
||||
}
|
||||
]
|
||||
},
|
||||
"analysis": {
|
||||
"avg_iteration_duration": 60.5629768371582,
|
||||
"success_rate": 100.0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user