UAT: agents resource type add output missing "New subcommand available" info message and multi-panel layout #5625

Open
opened 2026-04-09 07:57:19 +00:00 by HAL9000 · 0 comments
Owner

Bug Report

Feature Area: Resource Types — agents resource type add 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 add.

Expected Behavior (from spec §agents resource type add)

The spec shows the following output after successful type registration:

╭─ Resource Type ────────────────────╮
│ Name: local/svn                    │
│ Physical/Virtual: physical         │
│ User Addable: yes                  │
│ Registered: 2026-02-09 10:15       │
╰────────────────────────────────────╯

╭─ CLI Arguments ────────────────────────╮
│ Argument      Required  Description    │
│ ────────────  ────────  ─────────────  │
│ --url         yes       Repository URL │
│ --checkout    no        Local checkout │
╰────────────────────────────────────────╯

╭─ Child Types ──────────────────────────╮
│ Auto-discover: svn-revision, svn-file  │
│ Manual link: fs-mount                  │
╰────────────────────────────────────────╯

╭─ Sandbox ──────────────────────╮
│ Strategy: copy_on_write        │
│ Handler: SVNHandler (custom)   │
╰────────────────────────────────╯

✓ OK Resource type registered
ℹ New subcommand available: agents resource add local/svn

Key elements:

  1. Multiple separate panels (Resource Type, CLI Arguments, Child Types, Sandbox)
  2. "✓ OK Resource type registered" success message
  3. "ℹ New subcommand available: agents resource add local/svn" info message

Actual Behavior

In src/cleveragents/cli/commands/resource.py lines 254-256:

console.print(f"[green]Registered resource type:[/green] {spec.name}")
_print_type_panel(spec)

The implementation:

  1. Prints a single-line success message (not "✓ OK Resource type registered")
  2. Calls _print_type_panel(spec) which renders a single panel with all info combined (not separate panels for CLI Arguments, Child Types, Sandbox)
  3. Does NOT print the "ℹ New subcommand available: agents resource add local/svn" info message

The missing "New subcommand available" message is particularly important for user discoverability — it tells users what new command they can now use.

Code Location

  • src/cleveragents/cli/commands/resource.py lines 254-256 (type_add function)
  • src/cleveragents/cli/commands/resource.py lines 448-501 (_print_type_panel function — single panel instead of multi-panel)

Fix Required

  1. Add the "ℹ New subcommand available: agents resource add {spec.name}" info message after successful registration (only for user_addable: true types).
  2. Optionally refactor _print_type_panel to use separate panels matching the spec layout.
  3. Update success message to use "✓ OK Resource type registered" format.

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

## Bug Report **Feature Area**: Resource Types — `agents resource type add` 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 add`. ### Expected Behavior (from spec §agents resource type add) The spec shows the following output after successful type registration: ``` ╭─ Resource Type ────────────────────╮ │ Name: local/svn │ │ Physical/Virtual: physical │ │ User Addable: yes │ │ Registered: 2026-02-09 10:15 │ ╰────────────────────────────────────╯ ╭─ CLI Arguments ────────────────────────╮ │ Argument Required Description │ │ ──────────── ──────── ───────────── │ │ --url yes Repository URL │ │ --checkout no Local checkout │ ╰────────────────────────────────────────╯ ╭─ Child Types ──────────────────────────╮ │ Auto-discover: svn-revision, svn-file │ │ Manual link: fs-mount │ ╰────────────────────────────────────────╯ ╭─ Sandbox ──────────────────────╮ │ Strategy: copy_on_write │ │ Handler: SVNHandler (custom) │ ╰────────────────────────────────╯ ✓ OK Resource type registered ℹ New subcommand available: agents resource add local/svn ``` Key elements: 1. Multiple separate panels (Resource Type, CLI Arguments, Child Types, Sandbox) 2. "✓ OK Resource type registered" success message 3. "ℹ New subcommand available: agents resource add local/svn" info message ### Actual Behavior In `src/cleveragents/cli/commands/resource.py` lines 254-256: ```python console.print(f"[green]Registered resource type:[/green] {spec.name}") _print_type_panel(spec) ``` The implementation: 1. Prints a single-line success message (not "✓ OK Resource type registered") 2. Calls `_print_type_panel(spec)` which renders a **single panel** with all info combined (not separate panels for CLI Arguments, Child Types, Sandbox) 3. **Does NOT print** the "ℹ New subcommand available: agents resource add local/svn" info message The missing "New subcommand available" message is particularly important for user discoverability — it tells users what new command they can now use. ### Code Location - `src/cleveragents/cli/commands/resource.py` lines 254-256 (`type_add` function) - `src/cleveragents/cli/commands/resource.py` lines 448-501 (`_print_type_panel` function — single panel instead of multi-panel) ### Fix Required 1. Add the "ℹ New subcommand available: agents resource add {spec.name}" info message after successful registration (only for `user_addable: true` types). 2. Optionally refactor `_print_type_panel` to use separate panels matching the spec layout. 3. Update success message to use "✓ OK Resource type registered" format. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
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#5625
No description provided.