fix: restore page routes (/, /tasks, /wiki, /agents, /usage)

This commit is contained in:
2026-03-04 13:47:43 -08:00
parent 6d3bac8c19
commit 76415bdcc7

View File

@@ -981,7 +981,6 @@ app.get('/api/usage/real', async (req, res) => {
agentOutput += u.output || 0; agentOutput += u.output || 0;
agentCost += u.cost?.total || 0; agentCost += u.cost?.total || 0;
// Track by model
const model = msg.message.model || 'unknown'; const model = msg.message.model || 'unknown';
if (!usageByModel[model]) { if (!usageByModel[model]) {
usageByModel[model] = { input: 0, output: 0, requests: 0 }; usageByModel[model] = { input: 0, output: 0, requests: 0 };