UAT: agents actor context list missing [REGEX] positional argument for filtering contexts by name pattern #6500

Open
opened 2026-04-09 21:10:52 +00:00 by HAL9000 · 0 comments
Owner

Summary

The spec defines agents actor context list [<REGEX>] where an optional regex pattern filters the listed contexts. The implementation (from context.py) has no positional REGEX argument — it only accepts --context-dir. Users cannot filter context listings by name pattern.

Spec Reference

docs/specification.md line 284:

agents actor context list [<REGEX>]

docs/specification.md lines 5863–5872:

agents actor context list [<REGEX>]

Purpose: List files stored in an actor context.

Arguments:
- [REGEX]: Optional regex filter for context names.

Example: agents actor context list docs — lists contexts matching the "docs" pattern.

Code Location

src/cleveragents/cli/commands/context.py, lines 397–483 (context_list):

@app.command("list")
def context_list(
    context_dir: Annotated[
        Path | None,
        typer.Option("--context-dir", ...),
    ] = None,
) -> None:
    """List all files in the current plan's context."""
    # No REGEX argument at all

The command has no positional argument for regex filtering.

Steps to Reproduce

agents actor context list --help
# Shows: only --context-dir option, no REGEX argument

agents actor context list docs
# Error: Got unexpected extra argument (docs)

Expected vs Actual

Expected Actual
Signature list [<REGEX>] list [OPTIONS] (no positional arg)
agents actor context list docs Lists contexts matching "docs" Error: unexpected argument
Filtering Regex-based filtering Not supported

Impact

Users cannot filter context listings. The spec example agents actor context list docs fails with an error. This is a usability regression for users with many named contexts.


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

## Summary The spec defines `agents actor context list [<REGEX>]` where an optional regex pattern filters the listed contexts. The implementation (from `context.py`) has no positional REGEX argument — it only accepts `--context-dir`. Users cannot filter context listings by name pattern. ## Spec Reference `docs/specification.md` line 284: ``` agents actor context list [<REGEX>] ``` `docs/specification.md` lines 5863–5872: ``` agents actor context list [<REGEX>] Purpose: List files stored in an actor context. Arguments: - [REGEX]: Optional regex filter for context names. ``` Example: `agents actor context list docs` — lists contexts matching the "docs" pattern. ## Code Location `src/cleveragents/cli/commands/context.py`, lines 397–483 (`context_list`): ```python @app.command("list") def context_list( context_dir: Annotated[ Path | None, typer.Option("--context-dir", ...), ] = None, ) -> None: """List all files in the current plan's context.""" # No REGEX argument at all ``` The command has no positional argument for regex filtering. ## Steps to Reproduce ```bash agents actor context list --help # Shows: only --context-dir option, no REGEX argument agents actor context list docs # Error: Got unexpected extra argument (docs) ``` ## Expected vs Actual | | Expected | Actual | |---|---|---| | Signature | `list [<REGEX>]` | `list [OPTIONS]` (no positional arg) | | `agents actor context list docs` | Lists contexts matching "docs" | Error: unexpected argument | | Filtering | Regex-based filtering | Not supported | ## Impact Users cannot filter context listings. The spec example `agents actor context list docs` fails with an error. This is a usability regression for users with many named contexts. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.4.0 milestone 2026-04-10 06:44:33 +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#6500
No description provided.