Missing API endpoint: GET /api/data/archived-outputs/stats #295
Labels
No labels
good first issue
has-pr
help wanted
idea
priority
critical
priority
high
priority
low
priority
medium
status
blocked
status
in-progress
status
needs-review
status
ready
type
bug
type
docs
type
enhancement
type
feature
type
refactor
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
customable/claude-mem#295
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The API endpoint
GET /api/data/archived-outputs/statsreturns a 404 error:Context
This endpoint is likely expected by the Endless Mode dashboard widget (
EndlessModeCard) that was recently added to display compression statistics.Expected Behavior
The endpoint should return statistics about archived outputs, such as:
Solution
packages/backend/src/routes/ArchivedOutputRepositoryRelated
EndlessModeCardto DashboardThis endpoint has already been implemented:
Route registration:
packages/backend/src/routes/data.ts:138Handler implementation:
packages/backend/src/routes/data.ts:1391-1399Repository method:
packages/database/src/mikro-orm/repositories/ArchivedOutputRepository.ts:197-222totalCount,pendingCount,completedCount,failedCount,totalTokensSavedWiring:
packages/backend/src/server/backend-service.ts:416passesarchivedOutputsto DataRouterThe endpoint should now work. If you're still seeing a 404, please ensure the backend has been rebuilt and restarted with the latest code (
pnpm build && pnpm dev:restart).