Skip to content

[Bug] Subagents panel shows 0/6 after all subagents finish, while Tasks panel shows 6/6 completed #352

Closed

Description

@yrxeva

Problem

The live Tasks panel and the Subagents panel use inconsistent counters for the same "all finished" state:

  • Tasks panel header: 已完成 6/6 (chatWindow.todoProgress: "已完成 {done}/{total}") — correct.
  • Subagents panel header: 0/6 — even though all 6 subagents completed successfully.

The subagent counter always renders {runningCount}/{subagents.length} (ComposerPanels.tsx:255-258, chatWindow.subagentSummary: "{running} running · {total} total"), so once everything is done it reads "0/6", which looks like nothing finished or all failed.

Expected

When no subagents are running, the counter should read like the tasks panel, e.g. 已完成 6/6 — i.e. count completed subagents, not running ones:

  • While running: 2/6 (or 2 running · 6 total) is fine.
  • When finished: 已完成 6/6 / 6/6 completed (the zh locale already has chatWindow.completedSubagents: "已完成 ({count})").

Concretely: ComposerPanels.tsx could pick the summary key based on runningCount === 0, mirroring the todo panel's todoProgress wording so both headers tell the same story.

Environment: self-hosted ompweb v0.6.0, desktop + mobile.

Activity

  1. anhnt256 commented on Nov 10, 2026

    @anhnt256
    Contributor

    I'll fix this — once no subagent is running, the panel header will show the completed count (6/6, label 6/6 complete / 已完成 6/6) instead of 0/6, mirroring the Tasks panel wording. Opening a PR with the fix, the new locale strings, and tests for both the all-done and still-running states.

  2. added a commit that references this issue on Nov 22, 2026
    ce02f4b
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