feat: Show background tasks status in sidebar #5510

Open
opened 2026-02-16 17:53:34 -05:00 by yindo · 0 comments
Owner

Originally created by @dccarbone on GitHub (Jan 13, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Problem

When using background tasks (background_task, call_omo_agent with run_in_background=true), there's no visibility into which tasks are currently running.

The user has to:

  1. Remember the task_ids manually
  2. Use background_output to check status one by one
  3. Hope they don't forget to cancel tasks before finishing

Proposed Solution

Add a visual indicator in the sidebar showing active background tasks:

  • Task count badge on sidebar (e.g., "3 running")
  • Expandable list showing:
    • Agent type (explore, librarian, oracle, etc.)
    • Task description (the short description passed to the tool)
    • Duration/elapsed time
    • Quick actions: view output, cancel

Why This Matters

  • Resource awareness: Users can see if they're spinning up too many agents
  • Better UX: No need to track task_ids mentally
  • Easier cleanup: One-click cancel instead of background_cancel(all=true)

Alternatives Considered

  • Toast notifications for task start/end (less persistent)
  • Status bar indicator (less detailed)

Feature request from a user who frequently uses parallel background agents for exploration.

Originally created by @dccarbone on GitHub (Jan 13, 2026). Originally assigned to: @adamdotdevin on GitHub. ## Problem When using background tasks (`background_task`, `call_omo_agent` with `run_in_background=true`), there's no visibility into which tasks are currently running. The user has to: 1. Remember the `task_id`s manually 2. Use `background_output` to check status one by one 3. Hope they don't forget to cancel tasks before finishing ## Proposed Solution Add a visual indicator in the sidebar showing active background tasks: - **Task count badge** on sidebar (e.g., "3 running") - **Expandable list** showing: - Agent type (explore, librarian, oracle, etc.) - Task description (the short description passed to the tool) - Duration/elapsed time - Quick actions: view output, cancel ## Why This Matters - **Resource awareness**: Users can see if they're spinning up too many agents - **Better UX**: No need to track `task_id`s mentally - **Easier cleanup**: One-click cancel instead of `background_cancel(all=true)` ## Alternatives Considered - Toast notifications for task start/end (less persistent) - Status bar indicator (less detailed) --- *Feature request from a user who frequently uses parallel background agents for exploration.*
yindo added the web label 2026-02-16 17:53:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5510