Running counts disagree between the status bar, Claims and Agent work

Open
#269 1 comment 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
40/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, python
Domain
frontend, tooling

Research direction

Start by finding where the status bar, the Claims cards, Team → Jobs and Agent work each compute their running and queued counts from /api/team and /api/agent-work. The goal is one shared count function that all of them use, plus a browser regression with proof jobs and no Agent tasks. Done when the counts agree or each label names what it counts, and clicking a count opens a list of the same length.

Written by the indexing model from the issue text.

Description

area:web layer:entry priority:p2 status:triage type:bug
What happened

The same project reports different numbers of running work at the same moment (fixture project, 1.0.100, 1440×900):

  • The status bar says "2 running · 1 queued · 1 needs attention".
  • The first Claims card shows "2 running", and Team → Jobs shows 2.
  • Agent work → All tasks says "No agent tasks in this project yet" with a count of 0.

Proof jobs (from /api/team) and Agent tasks (from /api/agent-work) are different records, but the interface calls both "running" and does not say which is which. A researcher reads this as a data error.

Why it happened

Each surface counts the records it fetches and labels them with the same words. There is no shared definition of "running work" or a rule about which surfaces count which kind.

Expected

Every count names what it counts, and the surfaces agree:

  • The status bar either splits "proof runs" and "Agent tasks" or links each number to the page that lists exactly those records.
  • Agent work either includes proof runs that an Agent started, or its empty state says that proof runs are listed under Claims and Team → Jobs and links there.
  • "Running" on Claims cards and in the status bar uses one source for the same thing.
Acceptance
  • One function produces the running, queued and needs-attention counts, and every surface that shows them uses it.
  • Clicking a count opens a list whose length equals the count.
  • A browser regression with proof jobs and no Agent tasks (the fixture) checks that the status bar, Claims and Agent work agree or explain the difference.
Version

1.0.100

Environment

Workbench fixture, Chrome, 1440×900.

Dominant language
Python
Stars
2
Forks
0
Avg merge
56m
Merged PRs (30d)
190

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 SAFuDarren/Trellin

All issues in SAFuDarren/Trellin

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.