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_120416.json
Normal file
43
.agent/metrics/metrics_20260122_120416.json
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"summary": {
|
||||
"iterations": 1,
|
||||
"successful": 1,
|
||||
"failed": 0,
|
||||
"errors": 0,
|
||||
"checkpoints": 0,
|
||||
"rollbacks": 0
|
||||
},
|
||||
"iterations": [
|
||||
{
|
||||
"iteration": 1,
|
||||
"duration": 286.2897081375122,
|
||||
"success": true,
|
||||
"error": "",
|
||||
"timestamp": "2026-01-22T12:04:16.962058",
|
||||
"trigger_reason": "initial",
|
||||
"output_preview": "I'll help you create a SuperCharged Claude Code package. Let me start by checking the scratchpad and then exploring the current setup.Let me continue exploring the customizations and check the Ralph wrapper script:Now let me create a workspace and start building the package. First, let me create the scratchpad to track progress:Now let me start building the package structure. I'll create the packaging directory and start copying files:Now let me create a sanitized settings.json template and star",
|
||||
"tokens_used": 77686,
|
||||
"cost": 0.41950200000000004,
|
||||
"tools_used": []
|
||||
}
|
||||
],
|
||||
"cost": {
|
||||
"total": 0.41950200000000004,
|
||||
"by_tool": {
|
||||
"claude": 0.41950200000000004
|
||||
},
|
||||
"history": [
|
||||
{
|
||||
"timestamp": 1769083456.9416454,
|
||||
"tool": "claude",
|
||||
"input_tokens": 62149,
|
||||
"output_tokens": 15537,
|
||||
"cost": 0.41950200000000004
|
||||
}
|
||||
]
|
||||
},
|
||||
"analysis": {
|
||||
"avg_iteration_duration": 286.2897081375122,
|
||||
"success_rate": 100.0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user