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_123858.json
Normal file
43
.agent/metrics/metrics_20260122_123858.json
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"summary": {
|
||||
"iterations": 1,
|
||||
"successful": 1,
|
||||
"failed": 0,
|
||||
"errors": 0,
|
||||
"checkpoints": 0,
|
||||
"rollbacks": 0
|
||||
},
|
||||
"iterations": [
|
||||
{
|
||||
"iteration": 1,
|
||||
"duration": 92.9218270778656,
|
||||
"success": true,
|
||||
"error": "",
|
||||
"timestamp": "2026-01-22T12:38:58.712792",
|
||||
"trigger_reason": "initial",
|
||||
"output_preview": "I'll start by checking the scratchpad to see if there's any previous progress, then begin working on this task.I can see from the scratchpad that a previous task was completed (CTA button fixes), but the current task is different. Let me read the PROMPT.md file to understand the current task:Let me check the actual task context and read the scratchpad more carefully. The current task is about fixing installation instructions in the WordPress blog post:Now let me understand the current task. The ",
|
||||
"tokens_used": 50880,
|
||||
"cost": 0.274752,
|
||||
"tools_used": []
|
||||
}
|
||||
],
|
||||
"cost": {
|
||||
"total": 0.274752,
|
||||
"by_tool": {
|
||||
"claude": 0.274752
|
||||
},
|
||||
"history": [
|
||||
{
|
||||
"timestamp": 1769085538.6974664,
|
||||
"tool": "claude",
|
||||
"input_tokens": 40704,
|
||||
"output_tokens": 10176,
|
||||
"cost": 0.274752
|
||||
}
|
||||
]
|
||||
},
|
||||
"analysis": {
|
||||
"avg_iteration_duration": 92.9218270778656,
|
||||
"success_rate": 100.0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user