fix(cli): implement missing actor context list, show, and clear commands #10913

Open
HAL9000 wants to merge 3 commits from feature/issue-4748-actor-context-list-show-clear into master

3 Commits

Author SHA1 Message Date
CleverAgents Bot 85c93e446f test(actor-context): match list and show step text
CI / push-validation (pull_request) Successful in 37s
CI / helm (pull_request) Successful in 47s
CI / lint (pull_request) Successful in 56s
CI / build (pull_request) Successful in 54s
CI / quality (pull_request) Successful in 1m34s
CI / typecheck (pull_request) Successful in 1m40s
CI / security (pull_request) Successful in 1m39s
CI / integration_tests (pull_request) Failing after 15m40s
CI / unit_tests (pull_request) Failing after 15m41s
CI / coverage (pull_request) Has been cancelled
CI / docker (pull_request) Has been cancelled
CI / status-check (pull_request) Has been cancelled
2026-06-18 12:06:49 -04:00
HAL9000 542e076e53 fix(cli): resolve AmbiguousStep in actor context show step definitions
CI / push-validation (pull_request) Successful in 35s
CI / helm (pull_request) Successful in 45s
CI / build (pull_request) Successful in 1m17s
CI / quality (pull_request) Successful in 1m45s
CI / lint (pull_request) Successful in 1m57s
CI / typecheck (pull_request) Successful in 2m12s
CI / security (pull_request) Successful in 2m12s
CI / integration_tests (pull_request) Successful in 4m45s
CI / unit_tests (pull_request) Failing after 6m58s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / status-check (pull_request) Failing after 8s
Replace two overlapping @when patterns (both with (name) kwargs)
with a single @step pattern using optional {fmt} group to eliminate
the Behave AmbiguousStep registration conflict that was causing CI
unit_tests to fail.

Co-changes: ruff auto-format applied to actor_context.py for style compliance.
2026-05-17 03:19:41 +00:00
HAL9000 0b6bdfcc90 fix(cli): implement missing actor context list and show commands
Adds two new subcommands to `agents actor context`:

- `context list [<REGEX>]` — lists all actor contexts with optional regex filter;
  supports rich table, JSON, YAML, plain, color, and table output formats.

- `context show <NAME>` — displays a summary of a named context including
  message count, total size in KB, estimated token usage, and creation timestamp.

Both commands follow the same output format conventions as existing commands
(remove/export/import/clear) using rich panels for default rendering.

Closes #4748
2026-05-17 03:19:41 +00:00