UAT: agents session list and session delete storage size always shows "0 KB" — spec requires actual storage calculation #4878

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

Bug Report

Feature Area: Session Management — agents session list, agents session delete
Severity: Low (cosmetic/informational)
Found by: UAT tester, code analysis


What Was Tested

The storage size fields in agents session list and agents session delete were compared against the specification.

Expected Behavior (from spec)

agents session list — spec shows actual storage in the Summary panel:

Summary
  Total: 2
  Most Recent: weekly-planning
  Oldest: refactor-sprint
  Total Messages: 20
  Storage: 42 KB          ← actual storage used

agents session delete — spec shows actual storage freed in the Deletion Summary panel:

Deletion Summary
  Session: 01HXM2A6K1P2E9Q9D4GQ7J4S7Z
  ID: 01HXM2A6K1P2E9Q9D4GQ7J4S7Z
  Messages: 6 removed
  Storage: 18 KB freed    ← actual storage freed
  Plans Orphaned: 0

Actual Behavior

session listsrc/cleveragents/cli/commands/session.py, line 156:

"storage": "0 KB",  # Placeholder - actual storage calculation not implemented

session deletesrc/cleveragents/cli/commands/session.py, line 504:

summary_table.add_row("Storage:", "0 KB freed")

Both values are hardcoded to "0 KB" regardless of actual session size. The comment in session list explicitly acknowledges this is a placeholder.

Code Locations

  • src/cleveragents/cli/commands/session.py, line 156 (_session_list_dict)
  • src/cleveragents/cli/commands/session.py, line 504 (delete function)

Steps to Reproduce

# Create a session with many messages
agents session create
agents session tell --session <ID> "message 1"
# ... repeat many times

# List sessions — Storage always shows 0 KB
agents session list

# Delete session — Storage freed always shows 0 KB
agents session delete --yes <ID>

Impact

  • Users cannot see how much storage their sessions are consuming
  • The "Storage freed" metric in deletion output is always misleading (shows 0 KB even for large sessions)
  • Minor UX issue — does not affect functional correctness

Definition of Done

  • session list Summary panel shows actual total storage used by all sessions (in KB/MB)
  • session delete Deletion Summary panel shows actual storage freed by the deleted session
  • Storage calculation accounts for message content size stored in the database

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

## Bug Report **Feature Area:** Session Management — `agents session list`, `agents session delete` **Severity:** Low (cosmetic/informational) **Found by:** UAT tester, code analysis --- ### What Was Tested The storage size fields in `agents session list` and `agents session delete` were compared against the specification. ### Expected Behavior (from spec) **`agents session list`** — spec shows actual storage in the Summary panel: ``` Summary Total: 2 Most Recent: weekly-planning Oldest: refactor-sprint Total Messages: 20 Storage: 42 KB ← actual storage used ``` **`agents session delete`** — spec shows actual storage freed in the Deletion Summary panel: ``` Deletion Summary Session: 01HXM2A6K1P2E9Q9D4GQ7J4S7Z ID: 01HXM2A6K1P2E9Q9D4GQ7J4S7Z Messages: 6 removed Storage: 18 KB freed ← actual storage freed Plans Orphaned: 0 ``` ### Actual Behavior **`session list`** — `src/cleveragents/cli/commands/session.py`, line 156: ```python "storage": "0 KB", # Placeholder - actual storage calculation not implemented ``` **`session delete`** — `src/cleveragents/cli/commands/session.py`, line 504: ```python summary_table.add_row("Storage:", "0 KB freed") ``` Both values are hardcoded to `"0 KB"` regardless of actual session size. The comment in `session list` explicitly acknowledges this is a placeholder. ### Code Locations - `src/cleveragents/cli/commands/session.py`, line 156 (`_session_list_dict`) - `src/cleveragents/cli/commands/session.py`, line 504 (`delete` function) ### Steps to Reproduce ```bash # Create a session with many messages agents session create agents session tell --session <ID> "message 1" # ... repeat many times # List sessions — Storage always shows 0 KB agents session list # Delete session — Storage freed always shows 0 KB agents session delete --yes <ID> ``` ### Impact - Users cannot see how much storage their sessions are consuming - The "Storage freed" metric in deletion output is always misleading (shows 0 KB even for large sessions) - Minor UX issue — does not affect functional correctness ### Definition of Done - [ ] `session list` Summary panel shows actual total storage used by all sessions (in KB/MB) - [ ] `session delete` Deletion Summary panel shows actual storage freed by the deleted session - [ ] Storage calculation accounts for message content size stored in the database --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.3.0 milestone 2026-04-08 20:17:20 +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#4878
No description provided.