mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +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;
|
updatedSession.totalCost = currentCost + result.cost;
|
||||||
this.sessions.set(projectId, updatedSession);
|
this.sessions.set(projectId, updatedSession);
|
||||||
this.emit('costUpdated', projectId, updatedSession.totalCost);
|
this.emit('costUpdated', projectId, updatedSession.totalCost);
|
||||||
|
|
||||||
|
// Accumulate tool cost to project total
|
||||||
|
await this.accumulateProjectCost(projectId, result.cost);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in new issue
Block a user