UAT: agents plan list Filters panel only shown when filters are active — spec shows it always #5492

Open
opened 2026-04-09 07:01:55 +00:00 by HAL9000 · 1 comment
Owner

Summary

The agents plan list command only shows the "Filters" panel when at least one filter is active. The spec shows the Filters panel in all examples, including when no filters are specified (showing (any) for all fields).

Expected Behavior (from spec)

The spec at docs/specification.md line 12110 shows the Filters panel always present:

$ agents plan list --phase execute

╭─ Plans ──────────────────────────────────────────────────────────────────────────────────╮
│ ID        Phase    State       Action               Project            Elapsed       │
│ ────────  ───────  ──────────  ───────────────────  ─────────────────  ─────────     │
│ 01HXM7A9  execute  processing  local/code-coverage  local/api-service  00:01:12      │
╰──────────────────────────────────────────────────────────────────────────────────────────╯

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

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

✓ OK 1 plan listed

The Filters panel shows all four filter fields (Phase, State, Project, Action) with (any) for unset ones.

Actual Behavior

# src/cleveragents/cli/commands/plan.py lines 2740-2744
# Only show Filters panel if at least one filter is active
if phase_filter or state_filter or project_id or action_filter:
    filters_text = "\n".join(active_filters)
    filters_panel = Panel(filters_text, title="Filters", border_style="dim")
    console.print(filters_panel)

When no filters are specified (agents plan list with no options), the Filters panel is completely omitted.

Code Location

  • File: src/cleveragents/cli/commands/plan.py
  • Function: lifecycle_list_plans() at line 2522
  • Lines: 2740-2744 (conditional Filters panel)

Spec Reference

  • docs/specification.md lines 12110–12477: agents plan list section — all examples show the Filters panel

Impact

  • Users running agents plan list without filters don't see the Filters panel
  • Inconsistent output between filtered and unfiltered runs
  • Users can't confirm which filters are active (or inactive) at a glance

Subtasks

  • Remove the conditional check — always show the Filters panel
  • Ensure all four filter fields (Phase, State, Project, Action) are shown with (any) when not set
  • Add unit test for unfiltered agents plan list showing Filters panel

Definition of Done

  • agents plan list (no filters) shows Filters panel with all fields set to (any)
  • agents plan list --phase execute shows Filters panel with Phase: execute, others: (any)
  • Filters panel always present in rich output

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

## Summary The `agents plan list` command only shows the "Filters" panel when at least one filter is active. The spec shows the Filters panel in all examples, including when no filters are specified (showing `(any)` for all fields). ## Expected Behavior (from spec) The spec at `docs/specification.md` line 12110 shows the Filters panel always present: ``` $ agents plan list --phase execute ╭─ Plans ──────────────────────────────────────────────────────────────────────────────────╮ │ ID Phase State Action Project Elapsed │ │ ──────── ─────── ────────── ─────────────────── ───────────────── ───────── │ │ 01HXM7A9 execute processing local/code-coverage local/api-service 00:01:12 │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Filters ──────╮ │ Phase: execute │ │ State: (any) │ │ Project: (any) │ │ Action: (any) │ ╰────────────────╯ ╭─ Summary ─────────╮ │ Total: 1 │ │ Processing: 1 │ │ Completed: 0 │ │ Errored: 0 │ ╰───────────────────╯ ✓ OK 1 plan listed ``` The Filters panel shows all four filter fields (Phase, State, Project, Action) with `(any)` for unset ones. ## Actual Behavior ```python # src/cleveragents/cli/commands/plan.py lines 2740-2744 # Only show Filters panel if at least one filter is active if phase_filter or state_filter or project_id or action_filter: filters_text = "\n".join(active_filters) filters_panel = Panel(filters_text, title="Filters", border_style="dim") console.print(filters_panel) ``` When no filters are specified (`agents plan list` with no options), the Filters panel is completely omitted. ## Code Location - **File**: `src/cleveragents/cli/commands/plan.py` - **Function**: `lifecycle_list_plans()` at line 2522 - **Lines**: 2740-2744 (conditional Filters panel) ## Spec Reference - `docs/specification.md` lines 12110–12477: `agents plan list` section — all examples show the Filters panel ## Impact - Users running `agents plan list` without filters don't see the Filters panel - Inconsistent output between filtered and unfiltered runs - Users can't confirm which filters are active (or inactive) at a glance ## Subtasks - [ ] Remove the conditional check — always show the Filters panel - [ ] Ensure all four filter fields (Phase, State, Project, Action) are shown with `(any)` when not set - [ ] Add unit test for unfiltered `agents plan list` showing Filters panel ## Definition of Done - `agents plan list` (no filters) shows Filters panel with all fields set to `(any)` - `agents plan list --phase execute` shows Filters panel with Phase: execute, others: (any) - Filters panel always present in rich output --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.2.0 milestone 2026-04-09 07:12:13 +00:00
Author
Owner

Label compliance fix applied:

  • Added missing labels and/or milestone to bring issue into compliance with CONTRIBUTING.md

Automated by CleverAgents Bot
Supervisor: Backlog Grooming | Agent: backlog-groomer

Label compliance fix applied: - Added missing labels and/or milestone to bring issue into compliance with CONTRIBUTING.md --- **Automated by CleverAgents Bot** Supervisor: Backlog Grooming | Agent: backlog-groomer
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.

Dependencies

No dependencies set.

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