UAT: agents session show prints success message twice — duplicate ✓ OK Session details loaded output #2560

Closed
opened 2026-04-03 18:54:14 +00:00 by freemo · 2 comments
Owner

Metadata

  • Branch: fix/cli-session-show-duplicate-message
  • Commit Message: fix(cli): remove duplicate success message in agents session show
  • Milestone: v3.6.0
  • Parent Epic: #945

Description

The agents session show command prints the success confirmation message "✓ OK Session details loaded" twice in succession.

What was tested:
Code analysis of /app/src/cleveragents/cli/commands/session.py.

Expected behavior (from spec):
The success confirmation message should appear exactly once after displaying session details.

Actual behavior:
Lines 441 and 443 of session.py both print the same message:

console.print("[green bold]✓ OK[/green bold] Session details loaded")

console.print("[green bold]✓ OK[/green bold] Session details loaded")

This results in the message appearing twice in the terminal output, which is confusing and unprofessional.

Code location:
/app/src/cleveragents/cli/commands/session.py lines 441–443

Steps to reproduce:

  1. Create a session: agents session create
  2. Show the session: agents session show <SESSION_ID>
  3. Observe "✓ OK Session details loaded" printed twice at the bottom of the output

Suggested fix:
Remove the duplicate console.print call at line 443 (or line 441), keeping only one.

Subtasks

  • Remove duplicate console.print call in session.py line 443
  • Add/update Behave unit test to assert message appears exactly once
  • Update PR and close this issue

Definition of Done

  • agents session show prints the success message exactly once
  • Unit test coverage >= 97%
  • All nox sessions pass

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

## Metadata - **Branch**: `fix/cli-session-show-duplicate-message` - **Commit Message**: `fix(cli): remove duplicate success message in agents session show` - **Milestone**: v3.6.0 - **Parent Epic**: #945 ## Description The `agents session show` command prints the success confirmation message "✓ OK Session details loaded" twice in succession. **What was tested:** Code analysis of `/app/src/cleveragents/cli/commands/session.py`. **Expected behavior (from spec):** The success confirmation message should appear exactly once after displaying session details. **Actual behavior:** Lines 441 and 443 of `session.py` both print the same message: ```python console.print("[green bold]✓ OK[/green bold] Session details loaded") console.print("[green bold]✓ OK[/green bold] Session details loaded") ``` This results in the message appearing twice in the terminal output, which is confusing and unprofessional. **Code location:** `/app/src/cleveragents/cli/commands/session.py` lines 441–443 **Steps to reproduce:** 1. Create a session: `agents session create` 2. Show the session: `agents session show <SESSION_ID>` 3. Observe "✓ OK Session details loaded" printed twice at the bottom of the output **Suggested fix:** Remove the duplicate `console.print` call at line 443 (or line 441), keeping only one. ## Subtasks - [ ] Remove duplicate `console.print` call in `session.py` line 443 - [ ] Add/update Behave unit test to assert message appears exactly once - [ ] Update PR and close this issue ## Definition of Done - [ ] `agents session show` prints the success message exactly once - [ ] Unit test coverage >= 97% - [ ] All nox sessions pass --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: ca-uat-tester
freemo added this to the v3.6.0 milestone 2026-04-03 18:54:24 +00:00
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • MoSCoW: Should Have

Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: ca-project-owner

Issue triaged by project owner: - **State**: Verified - **MoSCoW**: Should Have --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
Author
Owner

Closing as duplicate of #2920.

Both issues describe the same bug: agents session show prints the success message ✓ OK Session details loaded twice due to a duplicate console.print call at lines 441-443 in session.py. Issue #2920 is the established tracking issue (v3.2.0 milestone, State/Verified). Please track this work in #2920.


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

Closing as duplicate of #2920. Both issues describe the same bug: `agents session show` prints the success message `✓ OK Session details loaded` twice due to a duplicate `console.print` call at lines 441-443 in `session.py`. Issue #2920 is the established tracking issue (v3.2.0 milestone, `State/Verified`). Please track this work in #2920. --- **Automated by CleverAgents Bot** Supervisor: Backlog Grooming | Agent: ca-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.

Reference
cleveragents/cleveragents-core#2560
No description provided.