UAT: agents plan list Summary panel missing Cancelled count and Filters panel hidden when no filters active #6100

Open
opened 2026-04-09 14:37:45 +00:00 by HAL9000 · 0 comments
Owner

Summary

agents plan list has two deviations from the spec:

  1. The Summary panel is missing the Cancelled count — only shows Total, Processing, Completed, Errored.
  2. The Filters panel is only shown when at least one filter is active — the spec shows it even for unfiltered listings.

Issue 1: Missing Cancelled Count in Summary

Expected (from spec)

╭─ Summary ─────────────╮
│ Total: 5              │
│ Processing: 2         │
│ Completed: 1          │
│ Errored: 1            │
│ Cancelled: 1          │
╰───────────────────────╯

Actual

╭─ Summary ─────────────╮
│ Total: 5              │
│ Processing: 2         │
│ Completed: 1          │
│ Errored: 1            │
╰───────────────────────╯

The Cancelled row is absent. The implementation only counts processing, complete, and errored states.

Code Location

src/cleveragents/cli/commands/plan.py, lifecycle_list_plans() ~line 2747:

summary_text = (
    f"[yellow bold]Total:[/yellow bold] {total_plans}\n"
    f"[blue bold]Processing:[/blue bold] {processing_count}\n"
    f"[green bold]Completed:[/green bold] {completed_count}\n"
    f"[red bold]Errored:[/red bold] {errored_count}"
)

Missing: cancelled_count = sum(1 for p in plans if p.processing_state.value == "cancelled")

Issue 2: Filters Panel Hidden When No Filters Active

Expected (from spec)

The spec shows the Filters panel for both filtered and unfiltered listings:

╭─ Filters ──────╮
│ Phase: (any)   │
│ State: (any)   │
│ Project: (any) │
│ Action: (any)  │
╰────────────────╯

Actual

The implementation only shows the Filters panel when at least one filter is active:

# Only show Filters panel if at least one filter is active
if phase_filter or state_filter or project_id or action_filter:
    ...
    console.print(filters_panel)

When no filters are active, the Filters panel is completely hidden, deviating from the spec.

Steps to Reproduce

# Issue 1: Create a cancelled plan, then list
agents plan list
# Summary shows no Cancelled count even if cancelled plans exist

# Issue 2: List without filters
agents plan list
# Filters panel not shown

Impact

  • Users cannot see how many plans are in cancelled state from the summary
  • Users cannot confirm which filters are active (or inactive) when listing all plans

Subtasks

  • Add cancelled_count calculation to lifecycle_list_plans()
  • Add Cancelled row to Summary panel text
  • Remove the if phase_filter or state_filter or project_id or action_filter: guard around the Filters panel — always show it

Definition of Done

  • agents plan list Summary panel includes Cancelled: N row
  • agents plan list Filters panel is always shown (with (any) for inactive filters)

Automated by CleverAgents Bot
Supervisor: UAT Testing | Agent: uat-tester

## Summary `agents plan list` has two deviations from the spec: 1. The **Summary panel** is missing the `Cancelled` count — only shows Total, Processing, Completed, Errored. 2. The **Filters panel** is only shown when at least one filter is active — the spec shows it even for unfiltered listings. ## Issue 1: Missing Cancelled Count in Summary ### Expected (from spec) ``` ╭─ Summary ─────────────╮ │ Total: 5 │ │ Processing: 2 │ │ Completed: 1 │ │ Errored: 1 │ │ Cancelled: 1 │ ╰───────────────────────╯ ``` ### Actual ``` ╭─ Summary ─────────────╮ │ Total: 5 │ │ Processing: 2 │ │ Completed: 1 │ │ Errored: 1 │ ╰───────────────────────╯ ``` The `Cancelled` row is absent. The implementation only counts `processing`, `complete`, and `errored` states. ### Code Location `src/cleveragents/cli/commands/plan.py`, `lifecycle_list_plans()` ~line 2747: ```python summary_text = ( f"[yellow bold]Total:[/yellow bold] {total_plans}\n" f"[blue bold]Processing:[/blue bold] {processing_count}\n" f"[green bold]Completed:[/green bold] {completed_count}\n" f"[red bold]Errored:[/red bold] {errored_count}" ) ``` Missing: `cancelled_count = sum(1 for p in plans if p.processing_state.value == "cancelled")` ## Issue 2: Filters Panel Hidden When No Filters Active ### Expected (from spec) The spec shows the Filters panel for both filtered and unfiltered listings: ``` ╭─ Filters ──────╮ │ Phase: (any) │ │ State: (any) │ │ Project: (any) │ │ Action: (any) │ ╰────────────────╯ ``` ### Actual The implementation only shows the Filters panel when at least one filter is active: ```python # Only show Filters panel if at least one filter is active if phase_filter or state_filter or project_id or action_filter: ... console.print(filters_panel) ``` When no filters are active, the Filters panel is completely hidden, deviating from the spec. ## Steps to Reproduce ```bash # Issue 1: Create a cancelled plan, then list agents plan list # Summary shows no Cancelled count even if cancelled plans exist # Issue 2: List without filters agents plan list # Filters panel not shown ``` ## Impact - Users cannot see how many plans are in cancelled state from the summary - Users cannot confirm which filters are active (or inactive) when listing all plans ## Subtasks - [ ] Add `cancelled_count` calculation to `lifecycle_list_plans()` - [ ] Add `Cancelled` row to Summary panel text - [ ] Remove the `if phase_filter or state_filter or project_id or action_filter:` guard around the Filters panel — always show it ## Definition of Done - `agents plan list` Summary panel includes `Cancelled: N` row - `agents plan list` Filters panel is always shown (with `(any)` for inactive filters) --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.2.0 milestone 2026-04-09 21:18:55 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
cleveragents/cleveragents-core#6100
No description provided.