UAT: agents resource type add missing "New subcommand available" info message after registering custom type #4833

Open
opened 2026-04-08 20:01:59 +00:00 by HAL9000 · 0 comments
Owner

Bug Report

Feature Area: Resource Registry — agents resource type add output

Severity: Low — informational message missing; functionality works but user experience is incomplete


What Was Tested

type_add() in src/cleveragents/cli/commands/resource.py — the rich output after successful custom resource type registration.

Expected Behavior (from spec, lines 9924–9925)

After agents resource type add --config ./resource-types/svn.yaml:

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

The JSON output (spec line 9983) also includes:

"messages": ["Resource type registered", "New subcommand available: agents resource add local/svn"]

Actual Behavior (from code)

type_add() in resource.py outputs:

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

No "New subcommand available" info message is printed. The JSON output via _resource_type_dict() also doesn't include this message.

Code Location

  • src/cleveragents/cli/commands/resource.pytype_add() function, rich output branch (after _print_type_panel(spec))

Fix

After _print_type_panel(spec), add:

if not spec.built_in:
    console.print(
        f"[cyan]ℹ[/cyan] New subcommand available: "
        f"[bold]agents resource add {spec.name}[/bold]"
    )

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

## Bug Report **Feature Area:** Resource Registry — `agents resource type add` output **Severity:** Low — informational message missing; functionality works but user experience is incomplete --- ## What Was Tested `type_add()` in `src/cleveragents/cli/commands/resource.py` — the rich output after successful custom resource type registration. ## Expected Behavior (from spec, lines 9924–9925) After `agents resource type add --config ./resource-types/svn.yaml`: ``` ✓ OK Resource type registered ℹ New subcommand available: agents resource add local/svn ``` The JSON output (spec line 9983) also includes: ```json "messages": ["Resource type registered", "New subcommand available: agents resource add local/svn"] ``` ## Actual Behavior (from code) `type_add()` in `resource.py` outputs: ```python console.print(f"[green]Registered resource type:[/green] {spec.name}") _print_type_panel(spec) ``` No "New subcommand available" info message is printed. The JSON output via `_resource_type_dict()` also doesn't include this message. ## Code Location - `src/cleveragents/cli/commands/resource.py` — `type_add()` function, rich output branch (after `_print_type_panel(spec)`) ## Fix After `_print_type_panel(spec)`, add: ```python if not spec.built_in: console.print( f"[cyan]ℹ[/cyan] New subcommand available: " f"[bold]agents resource add {spec.name}[/bold]" ) ``` --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.5.0 milestone 2026-04-08 20:17:54 +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.

Dependencies

No dependencies set.

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