mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 08:23:34 +00:00
Accumulate tool cost to project total
This commit is contained in:
1 file changed
+3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user