Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

SDK-services inactive list shows "today" cost, not lifetime spend (split-zones dashboard)

Open
#376 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
html, python

Research direction

Start in tokenjam/api/routes/status.py at _build_sdk_services and the last-seen query already used in sdk_service_series. Add an all-time lifetime_cost (SUM(cost_usd) over the agent's spans) on each sdk_services entry. Update the inactive list in tokenjam/ui/index.html (SdkServicesPanel) to show that lifetime spend or an honest window label. Done when a dormant service shows accumulated spend and a test covers that lifetime cost.

Written by the indexing model from the issue text.

Description

bug good first issue help wanted

Severity: Low
Where: tokenjam/api/routes/status.py (_build_sdk_services → sdk_services[] payload) + tokenjam/ui/index.html (SdkServicesPanel inactive list)

Observed: The split-zones Status dashboard renders each inactive SDK service's cost from today_cost / window_cost, labeled "today". The design specifies "lifetime $X total". Because the sdk_services payload ships no all-time cost, a long_dormant service last seen days ago shows $0.00 today — misleading for a service whose signal is its accumulated spend. The live/panel services are fine (their cost/min series is windowed by design); this only affects the inactive list's cost column.

Fix direction: Add an all-time lifetime_cost (SUM(cost_usd) over all of the agent's spans) to each sdk_services entry and render it in the inactive list (or, if a lifetime sum is too heavy, relabel the column honestly to the window it represents). Bind the aggregate to the same last-seen query already run in sdk_service_series.

Done when: inactive SDK services display accumulated lifetime spend (matching the design) or an honest window label; a test covers a dormant service's lifetime cost.

Dominant language
Python
Stars
122
Forks
35
Avg merge
1d 18h
Merged PRs (30d)
8

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Metabuilder-Labs/tokenjam

All issues in Metabuilder-Labs/tokenjam

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.