Repository navigation
Description
Summary
After the unified jobs.Supervisor landed (#684), background shells and subagents appear in the input status-bar background-jobs indicator (the "gear" indicator below the input) because it reads backgroundTaskRegistry.CountRunningJobs(kind) from the supervisor. Active A2A tasks do NOT appear there, even though the A2A submit path registers an a2aJob of JobKindA2A with the supervisor.
Root cause is dual tracking: an A2A task is registered in BOTH the A2A task tracker (taskTracker.StartPolling, which backs the /tasks active list via backgroundTaskService.GetBackgroundTasks()) AND the supervisor (submitter.Submit(&a2aJob{...})). The status bar and the /tasks active list therefore source A2A state from two different places that can diverge - the exact divergence the supervisor unification was meant to remove. Note backgroundTaskRegistry.HasPending() (reads the embedded trackers) and the supervisor's per-kind counts are also two independent computations of "what is running".
Steps to Reproduce
- Configure a remote A2A agent and delegate a long-running task via
A2A_SubmitTask. - While it runs, watch the input status-bar background-jobs indicator and open
/tasks. - The task shows in
/tasksbut the status-bar indicator does not count it (running shells and subagents do show).
Expected Behavior
Active A2A tasks are reflected in the status-bar indicator the same way running shells and subagents are, sourced from a single source of truth for "what background work is running".
Actual Behavior
A2A tasks are invisible in the status-bar indicator; the supervisor count and the /tasks A2A list are populated by separate, potentially divergent paths.
Notes / proposed direction
- Reconcile so the
/tasksactive A2A rows and the supervisor'sCountRunningJobs(JobKindA2A)come from one place; e.g. routebackgroundTaskRegistry.HasPending()and the/tasksA2A rows through the supervisor snapshot instead of the parallelA2ATaskTracker/backgroundTaskServicepath. - Relevant code:
internal/ui/components/input_status_bar.go(getBackgroundJobsInfo),internal/agent/tools/a2a_task.go(dual registration),internal/services/background_task_registry.go(HasPending). - Follow-up from feat(agent): interactive subagent management and unified background-work tracking #684. Related: [BUG] Completed background A2A tasks are not retained in /tasks (completed_task_retention ignored) #691 (A2A completed-task retention), [FEATURE] Show background shell (and subagent) output in the /tasks detail panel #692 (/tasks detail panel).
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(a2a): unify background-job liveness, clear, and cancel on the sup…
chore(release): 0.128.0 [skip ci]
inference-gateway-releaser commentedon Jul 3, 2026
🎉 This issue has been resolved in version 0.128.0 🎉
The release is available on:
Your semantic-release bot 📦🚀