UAT: agents session list storage calculation always shows "0 KB" — placeholder not implemented #5818

Open
opened 2026-04-09 10:10:00 +00:00 by HAL9000 · 1 comment
Owner

Bug Report

Feature Area: Session Management — agents session list
Severity: Backlog (cosmetic/informational gap)

What Was Tested

Code-level analysis of src/cleveragents/cli/commands/session.py — the _session_list_dict() helper and list_sessions command.

Expected Behavior (from spec)

The agents session list summary panel should show accurate storage usage for sessions.

Actual Behavior (from code)

In src/cleveragents/cli/commands/session.py, line 156:

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

The storage field is hardcoded to "0 KB" with an explicit comment acknowledging it is a placeholder. This is also reflected in the delete command (line 504):

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

No actual storage calculation is performed — the database is not queried for the actual size of session data.

Code Location

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

Impact

Users cannot determine how much disk space their sessions are consuming. The "Storage" field in the summary panel is always misleadingly "0 KB".


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

## Bug Report **Feature Area:** Session Management — `agents session list` **Severity:** Backlog (cosmetic/informational gap) ## What Was Tested Code-level analysis of `src/cleveragents/cli/commands/session.py` — the `_session_list_dict()` helper and `list_sessions` command. ## Expected Behavior (from spec) The `agents session list` summary panel should show accurate storage usage for sessions. ## Actual Behavior (from code) In `src/cleveragents/cli/commands/session.py`, line 156: ```python "storage": "0 KB", # Placeholder - actual storage calculation not implemented ``` The storage field is hardcoded to `"0 KB"` with an explicit comment acknowledging it is a placeholder. This is also reflected in the delete command (line 504): ```python summary_table.add_row("Storage:", "0 KB freed") ``` No actual storage calculation is performed — the database is not queried for the actual size of session data. ## Code Location - `src/cleveragents/cli/commands/session.py`, line 156 (`_session_list_dict()`) - `src/cleveragents/cli/commands/session.py`, line 504 (`delete` command) ## Impact Users cannot determine how much disk space their sessions are consuming. The "Storage" field in the summary panel is always misleadingly `"0 KB"`. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.2.0 milestone 2026-04-09 10:22:33 +00:00
Author
Owner

Label compliance fix applied:

  • Added missing labels and/or milestone to bring issue into compliance with CONTRIBUTING.md

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

Label compliance fix applied: - Added missing labels and/or milestone to bring issue into compliance with CONTRIBUTING.md --- **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#5818
No description provided.