UAT: agents resource type remove output missing "Resources Using" count and "Subcommand Removed" panel #5628

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

Bug Report

Feature Area: Resource Types — agents resource type remove CLI output

Severity: Non-critical (backlog)

What Was Tested

Code-level analysis of src/cleveragents/cli/commands/resource.py against the specification's documented output format for agents resource type remove.

Expected Behavior (from spec §agents resource type remove)

The spec shows the following output after successful type removal:

Remove resource type local/svn? [y/N]: y

╭─ Resource Type Removed ───────╮
│ Name: local/svn               │
│ Resources Using: 0            │
│ Subcommand Removed: yes       │
╰───────────────────────────────╯

✓ OK Resource type removed

Key elements:

  1. A "Resource Type Removed" panel with Name, Resources Using count, and Subcommand Removed fields
  2. "✓ OK Resource type removed" success message

Actual Behavior

In src/cleveragents/cli/commands/resource.py lines 308-309:

service.remove_type(name)
console.print(f"[green]Removed resource type:[/green] {name}")

The implementation:

  1. Prints only a single-line success message
  2. Does NOT print the "Resource Type Removed" panel with "Resources Using" count and "Subcommand Removed" fields
  3. Does not show "✓ OK Resource type removed" format

The "Resources Using: 0" field is useful for confirming that the removal was safe (no orphaned resources). The "Subcommand Removed: yes" field confirms the dynamic subcommand was cleaned up.

Code Location

  • src/cleveragents/cli/commands/resource.py lines 308-309 (type_remove function)

Fix Required

  1. After successful removal, print a "Resource Type Removed" panel with:
    • Name: the removed type name
    • Resources Using: count of resources that were using this type (should be 0 since removal is blocked if resources exist)
    • Subcommand Removed: "yes" if the type was user-addable
  2. Update success message to "✓ OK Resource type removed" format.

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

## Bug Report **Feature Area**: Resource Types — `agents resource type remove` CLI output **Severity**: Non-critical (backlog) ### What Was Tested Code-level analysis of `src/cleveragents/cli/commands/resource.py` against the specification's documented output format for `agents resource type remove`. ### Expected Behavior (from spec §agents resource type remove) The spec shows the following output after successful type removal: ``` Remove resource type local/svn? [y/N]: y ╭─ Resource Type Removed ───────╮ │ Name: local/svn │ │ Resources Using: 0 │ │ Subcommand Removed: yes │ ╰───────────────────────────────╯ ✓ OK Resource type removed ``` Key elements: 1. A "Resource Type Removed" panel with Name, Resources Using count, and Subcommand Removed fields 2. "✓ OK Resource type removed" success message ### Actual Behavior In `src/cleveragents/cli/commands/resource.py` lines 308-309: ```python service.remove_type(name) console.print(f"[green]Removed resource type:[/green] {name}") ``` The implementation: 1. Prints only a single-line success message 2. **Does NOT print** the "Resource Type Removed" panel with "Resources Using" count and "Subcommand Removed" fields 3. Does not show "✓ OK Resource type removed" format The "Resources Using: 0" field is useful for confirming that the removal was safe (no orphaned resources). The "Subcommand Removed: yes" field confirms the dynamic subcommand was cleaned up. ### Code Location - `src/cleveragents/cli/commands/resource.py` lines 308-309 (`type_remove` function) ### Fix Required 1. After successful removal, print a "Resource Type Removed" panel with: - `Name`: the removed type name - `Resources Using`: count of resources that were using this type (should be 0 since removal is blocked if resources exist) - `Subcommand Removed`: "yes" if the type was user-addable 2. Update success message to "✓ OK Resource type removed" format. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.2.0 milestone 2026-04-09 08:05:57 +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.

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