UAT: agents actor context show <NAME> shows file content instead of context summary — missing Estimated Tokens and Created date fields #6056

Open
opened 2026-04-09 14:12:47 +00:00 by HAL9000 · 0 comments
Owner

Bug Report

Feature Area: context-assembly-cli
Severity: Non-critical
Spec Reference: §agents actor context show (spec lines 5978–6061)


What Was Tested

Code-level analysis of src/cleveragents/cli/commands/context.py context_show command.

Expected Behavior (from spec)

agents actor context show <NAME>
  • <NAME>: Context name (required positional argument)
  • Shows a Context Summary panel with: Context name, Files count, Total Size, Estimated Tokens, Created date

Spec example output:

╭─ Context Summary ───────────╮
│ Context: docs               │
│ Files: 3                    │
│ Total Size: 26.5 KB         │
│ Estimated Tokens: ~6,600    │
│ Created: 2026-02-08 12:10   │
╰─────────────────────────────╯

✓ OK Context displayed

The JSON output should include:

{
  "data": {
    "context_summary": {
      "context": "docs",
      "files": 3,
      "total_size_kb": 26.5,
      "estimated_tokens": 6600,
      "created": "2026-02-08T12:10:00Z"
    }
  }
}

Actual Behavior

The context_show command in context.py:

  1. Wrong paradigm: Takes an optional path argument (a file path) instead of a required <NAME> (context name)
  2. Shows file content: When a path is provided, shows the raw file content in a panel — not a context summary
  3. Missing fields: When called without a path (showing all context), displays only Total files: N — missing Estimated Tokens and Created date
  4. Wrong panel title: Uses Content: <path> instead of Context Summary
  5. Missing success message: Does not print ✓ OK Context displayed

Code Location

src/cleveragents/cli/commands/context.py lines 486–565 (context_show function)

Steps to Reproduce

  1. Read src/cleveragents/cli/commands/context.py lines 486–565
  2. Note: path is an optional argument (not required <NAME>)
  3. Note: the function shows file content, not a context summary
  4. Note: missing estimated_tokens and created fields in output

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

## Bug Report **Feature Area**: context-assembly-cli **Severity**: Non-critical **Spec Reference**: §agents actor context show (spec lines 5978–6061) --- ## What Was Tested Code-level analysis of `src/cleveragents/cli/commands/context.py` `context_show` command. ## Expected Behavior (from spec) ``` agents actor context show <NAME> ``` - `<NAME>`: Context name (required positional argument) - Shows a **Context Summary** panel with: Context name, Files count, Total Size, Estimated Tokens, Created date Spec example output: ``` ╭─ Context Summary ───────────╮ │ Context: docs │ │ Files: 3 │ │ Total Size: 26.5 KB │ │ Estimated Tokens: ~6,600 │ │ Created: 2026-02-08 12:10 │ ╰─────────────────────────────╯ ✓ OK Context displayed ``` The JSON output should include: ```json { "data": { "context_summary": { "context": "docs", "files": 3, "total_size_kb": 26.5, "estimated_tokens": 6600, "created": "2026-02-08T12:10:00Z" } } } ``` ## Actual Behavior The `context_show` command in `context.py`: 1. **Wrong paradigm**: Takes an optional `path` argument (a file path) instead of a required `<NAME>` (context name) 2. **Shows file content**: When a path is provided, shows the raw file content in a panel — not a context summary 3. **Missing fields**: When called without a path (showing all context), displays only `Total files: N` — missing Estimated Tokens and Created date 4. **Wrong panel title**: Uses `Content: <path>` instead of `Context Summary` 5. **Missing success message**: Does not print `✓ OK Context displayed` ## Code Location `src/cleveragents/cli/commands/context.py` lines 486–565 (`context_show` function) ## Steps to Reproduce 1. Read `src/cleveragents/cli/commands/context.py` lines 486–565 2. Note: `path` is an optional argument (not required `<NAME>`) 3. Note: the function shows file content, not a context summary 4. Note: missing `estimated_tokens` and `created` fields in output --- **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#6056
No description provided.