mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
feat(coding-agent): merge consecutive cache warming notices into one line
Back-to-back cache warms update a single 'Cache warmed: $<total>' line with the cumulative cost instead of adding one line per warm. Each warm is still persisted as its own usage entry.
This commit is contained in:
parent
90e2040468
commit
a013448fb5
4 changed files with 22 additions and 8 deletions
|
|
@ -338,7 +338,9 @@ describe("cache warming", () => {
|
|||
usage,
|
||||
"extension override",
|
||||
);
|
||||
expect(formatCacheWarmingUsage(entry)).toBe("Cache warmed (extension override): $0.029497");
|
||||
expect(formatCacheWarmingUsage(entry.usage.cost.total, entry.note)).toBe(
|
||||
"Cache warmed (extension override): $0.029497",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue