UAT: agents session list truncates session ID to 8 chars — cannot use displayed ID with other commands #5902

Open
opened 2026-04-09 11:38:35 +00:00 by HAL9000 · 0 comments
Owner

Bug Report

Feature Area: Session Management — agents session list
Severity: Backlog (usability issue — users must use agents session show to get full ID)

What Was Tested

Code-level analysis of src/cleveragents/cli/commands/session.py — the list_sessions rich table rendering.

Expected Behavior

The agents session list output should display session IDs in a form that can be directly used with other commands like agents session show <SESSION_ID>, agents session delete <SESSION_ID>, etc.

Actual Behavior (from code)

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

table.add_row(
    s.session_id[:8],  # Truncate ID for readability
    ...
)

The session ID is truncated to 8 characters in the rich table output. However, all other session commands (show, delete, export, tell) require the full 26-character ULID.

This creates a usability gap: users see 01HXM2A6 in the list but need 01HXM2A6K1P2E9Q9D4GQ7J4S7Z to use it with other commands.

Code Location

  • src/cleveragents/cli/commands/session.py, line 319 (list_sessions rich table)

Impact

Users cannot copy-paste session IDs from agents session list output to use with other session commands. They must first run agents session list --format json or agents session show to get the full ID.

A better approach would be to show the full ID (or at least a longer prefix like 12 characters) and use a monospace font column, or provide a --short flag for abbreviated display.


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

## Bug Report **Feature Area:** Session Management — `agents session list` **Severity:** Backlog (usability issue — users must use `agents session show` to get full ID) ## What Was Tested Code-level analysis of `src/cleveragents/cli/commands/session.py` — the `list_sessions` rich table rendering. ## Expected Behavior The `agents session list` output should display session IDs in a form that can be directly used with other commands like `agents session show <SESSION_ID>`, `agents session delete <SESSION_ID>`, etc. ## Actual Behavior (from code) In `src/cleveragents/cli/commands/session.py`, line 319: ```python table.add_row( s.session_id[:8], # Truncate ID for readability ... ) ``` The session ID is truncated to 8 characters in the rich table output. However, all other session commands (`show`, `delete`, `export`, `tell`) require the full 26-character ULID. This creates a usability gap: users see `01HXM2A6` in the list but need `01HXM2A6K1P2E9Q9D4GQ7J4S7Z` to use it with other commands. ## Code Location - `src/cleveragents/cli/commands/session.py`, line 319 (`list_sessions` rich table) ## Impact Users cannot copy-paste session IDs from `agents session list` output to use with other session commands. They must first run `agents session list --format json` or `agents session show` to get the full ID. A better approach would be to show the full ID (or at least a longer prefix like 12 characters) and use a monospace font column, or provide a `--short` flag for abbreviated display. --- **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#5902
No description provided.