fix(ai): show implied Kimi Coding subscription costs

This commit is contained in:
Armin Ronacher
2026-07-17 10:00:40 +02:00
parent 58575888f5
commit 8881e17625
7 changed files with 70 additions and 21 deletions
@@ -141,4 +141,21 @@ describe("FooterComponent width handling", () => {
const statsLine = stripAnsi(footer.render(120)[1]);
expect(statsLine).toContain("CH25.0%");
});
it("marks Kimi Coding costs as subscription estimates", () => {
const session = createSession({
sessionName: "",
provider: "kimi-coding",
usage: {
input: 100,
output: 10,
cacheRead: 0,
cacheWrite: 0,
cost: { total: 1.234 },
},
});
const footer = new FooterComponent(session, createFooterData(1));
expect(stripAnsi(footer.render(120)[1])).toContain("$1.234 (sub)");
});
});