Skip to content

Sidebar Tasks section: background commands, monitors, terminals and workflow runs per project #734

Done

Description

@tannerpolley

Problem

The owner can't see at a glance what background processes a project's threads are running. Some are native to the provider CLI only.

Owner decisions (2026-11-27)

  • A Tasks section in each project folder of the PC sidebar, after the project's threads and role sections (Sidebar role sections: see each project's agents by role at a glance #724, Phone home mirrors the PC sidebar; main thread above role sections (PC and phone) #731).
  • It lists open background work for any thread in that project, in subsections for neatness:
    • Commands: agent background commands. Claude background Bash, from pendingBackgroundTasks kind command / background_task. Codex background terminals.
    • Monitors: Claude Monitor watches (pendingBackgroundTasks kind monitor).
    • Terminals: processes running in a thread's T3 terminal drawer (useThreadRunningTerminalIds).
    • Workflows: running Workflow runs started from a thread.
    • Subagents are excluded; the role sections cover them.
  • Collapsed by default, as one line: "Tasks · 3 running". Hidden when nothing runs. Expanded rows show a kind icon, a short description, the owning thread, and time running. Collapse persists like role sections.
  • Click opens the owning thread and scrolls to the task's item, where its output and Stop already are.
  • PC only for now. Put the grouping in packages/client-runtime so the phone can follow later.

Known gap

Codex background terminals live only in the Codex app-server. CodexAdapterV2 lists them with thread/backgroundTerminals/list but does not report them in pendingBackgroundTasks, so the sidebar can't see them yet. Report them the way the Claude adapter reports its background work (kind: "command"), and clear them when they exit.

Constraints

No continuously repainting animations and no per-row subscriptions to everything (AGENTS.md performance). Derive the list once per project.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions