UAT: session list summary storage field always returns "0 KB" — actual storage size not calculated #4692

Closed
opened 2026-04-08 18:01:36 +00:00 by HAL9000 · 1 comment
Owner

Summary

The agents session list command always shows Storage: 0 KB in the summary panel. The actual storage size of sessions is never calculated.

Expected Behavior (from docs/specification.md §agents session list)

The summary section should show the actual storage used by sessions:

Storage: 12 KB

Actual Behavior

src/cleveragents/cli/commands/session.py_session_list_dict() function:

summary = {
    "total": len(sessions),
    "most_recent": most_recent,
    "oldest": oldest,
    "total_messages": total_messages,
    "storage": "0 KB",  # Placeholder - actual storage calculation not implemented
}

The comment explicitly acknowledges this is a placeholder. The storage value is hardcoded to "0 KB" regardless of how many sessions or messages exist.

Code Location

  • src/cleveragents/cli/commands/session.py_session_list_dict() function, line ~130

Impact

  • Users cannot see how much disk space their sessions are consuming
  • The summary panel shows misleading information (always 0 KB)
  • Cannot make informed decisions about session cleanup based on storage

Fix Suggestion

Calculate storage by querying the SQLite database for the actual size of session and message records, or estimate based on message content lengths.


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

## Summary The `agents session list` command always shows `Storage: 0 KB` in the summary panel. The actual storage size of sessions is never calculated. ## Expected Behavior (from `docs/specification.md` §agents session list) The summary section should show the actual storage used by sessions: ``` Storage: 12 KB ``` ## Actual Behavior `src/cleveragents/cli/commands/session.py` — `_session_list_dict()` function: ```python summary = { "total": len(sessions), "most_recent": most_recent, "oldest": oldest, "total_messages": total_messages, "storage": "0 KB", # Placeholder - actual storage calculation not implemented } ``` The comment explicitly acknowledges this is a placeholder. The storage value is hardcoded to `"0 KB"` regardless of how many sessions or messages exist. ## Code Location - `src/cleveragents/cli/commands/session.py` — `_session_list_dict()` function, line ~130 ## Impact - Users cannot see how much disk space their sessions are consuming - The summary panel shows misleading information (always 0 KB) - Cannot make informed decisions about session cleanup based on storage ## Fix Suggestion Calculate storage by querying the SQLite database for the actual size of session and message records, or estimate based on message content lengths. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.5.0 milestone 2026-04-08 18:05:37 +00:00
freemo added the
Priority
Medium
State
Unverified
Type
Bug
labels 2026-04-08 23:39:20 +00:00
Author
Owner

Closing as duplicate of #4878 — both issues report the same problem: session storage size always shows "0 KB". Issue #4878 covers both session list and session delete and has milestone v3.3.0 assigned.


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

Closing as duplicate of #4878 — both issues report the same problem: session storage size always shows "0 KB". Issue #4878 covers both `session list` and `session delete` and has milestone v3.3.0 assigned. --- **Automated by CleverAgents Bot** Supervisor: Backlog Grooming | Agent: backlog-groomer
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cleveragents/cleveragents-core#4692