UAT: agents resource type add --update not implemented — aborts with warning instead of updating existing type #5082

Closed
opened 2026-04-09 00:56:29 +00:00 by HAL9000 · 2 comments
Owner

Bug Report

Feature Area: Projects and Resources — Resource Type Management

Severity: Medium (backlog — --update flag is documented in spec but not functional)

What Was Tested

The agents resource type add --update flag behavior was verified against the spec.

Expected Behavior (from spec)

The spec defines --update for agents resource type add (line 9891):

--update: If the type name already exists, overwrite it. Without this flag, adding a duplicate name fails with an error.

When --update is passed and the type already exists, the type definition should be replaced with the new YAML configuration.

Actual Behavior

The --update flag is partially implemented but does not actually update. When a type already exists and --update is passed, the code catches the "already exists" error and prints a warning, then aborts:

# src/cleveragents/cli/commands/resource.py, lines 235-246
if update:
    try:
        spec = service.register_type(config)
    except ValidationError as exc:
        if "already exists" in str(exc):
            console.print(
                "[yellow]Resource type already exists. "
                "Update mode is not yet fully supported.[/yellow]"
            )
            raise typer.Abort() from exc
        raise

The comment "Update mode is not yet fully supported" confirms this is a known stub.

Steps to Reproduce

# Register a custom type
agents resource type add --config ./my-type.yaml

# Try to update it
agents resource type add --update --config ./my-type.yaml
# Output: "Resource type already exists. Update mode is not yet fully supported."
# Expected: Type is updated with new definition

Code Location

src/cleveragents/cli/commands/resource.py, lines 235-246 — type_add() function, --update branch


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

## Bug Report **Feature Area:** Projects and Resources — Resource Type Management **Severity:** Medium (backlog — `--update` flag is documented in spec but not functional) ### What Was Tested The `agents resource type add --update` flag behavior was verified against the spec. ### Expected Behavior (from spec) The spec defines `--update` for `agents resource type add` (line 9891): > `--update`: If the type name already exists, overwrite it. Without this flag, adding a duplicate name fails with an error. When `--update` is passed and the type already exists, the type definition should be replaced with the new YAML configuration. ### Actual Behavior The `--update` flag is partially implemented but does not actually update. When a type already exists and `--update` is passed, the code catches the "already exists" error and prints a warning, then aborts: ```python # src/cleveragents/cli/commands/resource.py, lines 235-246 if update: try: spec = service.register_type(config) except ValidationError as exc: if "already exists" in str(exc): console.print( "[yellow]Resource type already exists. " "Update mode is not yet fully supported.[/yellow]" ) raise typer.Abort() from exc raise ``` The comment "Update mode is not yet fully supported" confirms this is a known stub. ### Steps to Reproduce ```bash # Register a custom type agents resource type add --config ./my-type.yaml # Try to update it agents resource type add --update --config ./my-type.yaml # Output: "Resource type already exists. Update mode is not yet fully supported." # Expected: Type is updated with new definition ``` ### Code Location `src/cleveragents/cli/commands/resource.py`, lines 235-246 — `type_add()` function, `--update` branch --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.2.0 milestone 2026-04-09 01:01:42 +00:00
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: Medium — Spec compliance bug; deviates from documented behavior
  • Milestone: v3.2.0
  • Story Points: 3 — M
  • MoSCoW: Must Have — Spec compliance is required

Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: project-owner

Issue triaged by project owner: - **State**: Verified - **Priority**: Medium — Spec compliance bug; deviates from documented behavior - **Milestone**: v3.2.0 - **Story Points**: 3 — M - **MoSCoW**: Must Have — Spec compliance is required --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner
Author
Owner

Closing as duplicate of #4846 — both issues report the same problem: agents resource type add --update not implemented. See also #4639.


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

Closing as duplicate of #4846 — both issues report the same problem: `agents resource type add --update` not implemented. See also #4639. --- **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#5082
No description provided.