Accumulate tool cost to project total

This commit is contained in:
Alex Gleason committed 2025-12-08 15:32:14 -06:00
1 parent a9b22e2381
commit 73ccd7cb73
1 file changed
+3
+3
View File
@@ -612,6 +612,9 @@ export class SessionManager {
updatedSession.totalCost = currentCost + result.cost;
this.sessions.set(projectId, updatedSession);
this.emit('costUpdated', projectId, updatedSession.totalCost);
// Accumulate tool cost to project total
await this.accumulateProjectCost(projectId, result.cost);
}
}
} catch (error) {