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_121823.json
Normal file
43
.agent/metrics/metrics_20260122_121823.json
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"summary": {
|
||||
"iterations": 1,
|
||||
"successful": 1,
|
||||
"failed": 0,
|
||||
"errors": 0,
|
||||
"checkpoints": 0,
|
||||
"rollbacks": 0
|
||||
},
|
||||
"iterations": [
|
||||
{
|
||||
"iteration": 1,
|
||||
"duration": 411.8341362476349,
|
||||
"success": true,
|
||||
"error": "",
|
||||
"timestamp": "2026-01-22T12:18:23.593223",
|
||||
"trigger_reason": "initial",
|
||||
"output_preview": "I'll help you update the WordPress blog post to showcase the new SuperCharged Claude Code Upgrade repository. Let me start by checking for a scratchpad and then begin the work.Good! I can see from the scratchpad that the SuperCharged Claude Code package has been created with all the customizations. Now I need to update the WordPress blog post. Let me start by fetching the current blog post content to understand its structure.Perfect! I can see the current blog post structure. Now let me fetch in",
|
||||
"tokens_used": 87596,
|
||||
"cost": 0.473016,
|
||||
"tools_used": []
|
||||
}
|
||||
],
|
||||
"cost": {
|
||||
"total": 0.473016,
|
||||
"by_tool": {
|
||||
"claude": 0.473016
|
||||
},
|
||||
"history": [
|
||||
{
|
||||
"timestamp": 1769084303.5776978,
|
||||
"tool": "claude",
|
||||
"input_tokens": 70077,
|
||||
"output_tokens": 17519,
|
||||
"cost": 0.473016
|
||||
}
|
||||
]
|
||||
},
|
||||
"analysis": {
|
||||
"avg_iteration_duration": 411.8341362476349,
|
||||
"success_rate": 100.0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user