Skip to content

fix(dashboard): agent status reports empty recentTasks and activityTimeline it never measured #21270

Closed
1 of 1 issue completed

Description

@mrveiss

Problem

get_agent_statuses() in autobot-backend/services/agent_org_service.py returns recentTasks: [] and activityTimeline: [] for every agent. No source feeds them, so the Agent Activity widget shows "no recent tasks" and an empty timeline as if it had measured them. It cannot tell "nothing happened" from "not measured". This is the same class #17514 fixed for tasksCompleted, uptime, successRate and currentTask (now absent or None, rendered as not reported).

Found while checking #17514 against main.

Scope

Acceptance criteria

  • recentTasks and activityTimeline are either real data or None; never a placeholder [].
  • The widget shows "not reported" for None and "no recent tasks" only for a measured empty list.
  • Tests: backend (unmeasured → None, measured empty → []), frontend (both states render distinctly).
  • api.ts regenerated if the response model changes.

Activity

  1. added
    needs-ac-evidenceClosed by a merge keyword; awaits an AC evidence table comment (#19520)
    on Nov 12, 2026
  2. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

    Landed via the merge train (#21382, merge 6199adcab0) via #21277, #21374

  3. mrveiss commented on Nov 12, 2026

    @mrveiss
    OwnerAuthor

    Closure check, 2026-11-12 (Riga), against merged main. PR #21277 landed via train #21382, merge commit 6199adc. The issue was closed by Closes #21270; all four ACs are now ticked with code evidence, so it stays closed.

    AC Status Evidence
    recentTasks / activityTimeline are real data or None, never a placeholder [] Met autobot-backend/services/agent_activity_feed.py: get_agent_feeds (:127) returns None for an unreadable store and for agents past the cap; used by services/agent_org_service.py:149 and api/agent_org.py:153; model schemas_agent.py:1116-1117 is List[...] | None = None
    Widget: "not reported" for None, "no recent tasks" only for a measured empty list Met autobot-frontend/src/components/visualizations/AgentActivityVisualization.vue:160 (activityTimeline == null) and :254 (recentTasks == null picks notReported else noRecentTasks); keys at src/i18n/locales/en.json:7492,7501
    Tests: backend (unmeasured None, measured empty []), frontend (both states distinct) Met tests/unit/test_agent_activity_feed_21270.py: test_unreadable_store_is_none_not_empty, test_measured_empty_history_is_empty_lists; __tests__/AgentActivityVisualization.notReported.test.ts:83 (null feeds) and :90 (measured empty)
    api.ts regenerated Met src/types/generated/api.ts:58310-58317 both feeds typed ... | null

    Ticked 4 of 4. Not evidenced: the widget on a live install (host runs pre-update bundles, #21343); no AC requires it. Parent: #18242.

  4. added
    needs-ac-evidenceClosed by a merge keyword; awaits an AC evidence table comment (#19520)
    and removed
    needs-ac-evidenceClosed by a merge keyword; awaits an AC evidence table comment (#19520)
    on Nov 12, 2026
  5. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

    Landed via the merge train (#21374, merge 080095370b) via #21277

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendbugSomething isn't workingfrontendneeds-ac-evidenceClosed by a merge keyword; awaits an AC evidence table comment (#19520)phase:M3.5Dashboards with movable widgets

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions