Merge feat/graph-rendering: wave 4 — extraction usage capture (live + persisted), true abort

# Conflicts:
#	src/server/observability.ts
This commit is contained in:
amosblomqvist
2026-09-11 03:28:23 +03:00
10 changed files with 335 additions and 32 deletions
+4
View File
@@ -15,6 +15,10 @@ export async function GET() {
title: chatStore.getChat(run.chatId)?.title ?? run.chatId,
phase: run.phase,
startedAt: run.startedAt,
// Live per-stage usage (the money channel): model + per-step CallUsage,
// accumulated as steps bill. Cost and context-window folds are the
// consumer's (core/prices.ts helpers — nothing stores dollars).
usage: run.usage,
}));
return Response.json({ runs });
}