This commit is contained in:
Your Name
2026-04-08 22:06:09 +00:00
parent 0df3521032
commit b39b74ee09
18 changed files with 62 additions and 184 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ export class ContextManager {
// Walk backwards finding nodes that fall out of the retained budget
for (let i = this.currentShip.length - 1; i >= 0; i--) {
const node = this.currentShip[i];
rollingTokens += node.metadata.currentTokens;
rollingTokens += this.env.tokenCalculator.calculateConcreteListTokens([node]);
if (rollingTokens > this.sidecar.budget.retainedTokens) {
agedOutNodes.add(node.id);
}