UAT: agents session show prints success message twice (duplicate output) #3408

Closed
opened 2026-04-05 16:32:42 +00:00 by freemo · 2 comments
Owner

Metadata

  • Branch: fix/session-show-duplicate-success-message
  • Commit Message: fix(cli): remove duplicate success message in agents session show
  • Milestone: (none — backlog)
  • Parent Epic: #397

Background

During UAT code-level analysis of src/cleveragents/cli/commands/session.py against docs/specification.md §"agents session show" (lines 1719–1871), a duplicate console.print call was found in the show() function.

Problem

The agents session show command prints the success message ✓ OK Session details loaded twice due to a copy-paste / code duplication error at lines 441–443 of src/cleveragents/cli/commands/session.py:

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

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

Both lines are identical and produce duplicate output.

Expected Behavior (from spec §"agents session show")

The success message should appear exactly once:

✓ OK Session details loaded

Actual Behavior

The message is printed twice at the bottom of the output.

Steps to Reproduce

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

Code Location

src/cleveragents/cli/commands/session.py, lines 441–443 in the show() function.

Fix

Remove the duplicate console.print call at line 443.

Subtasks

  • Remove the duplicate console.print("[green bold]✓ OK[/green bold] Session details loaded") call at line 443 of src/cleveragents/cli/commands/session.py
  • Add/update a Behave scenario in features/ to assert the success message appears exactly once in agents session show output
  • Verify all nox sessions pass

Definition of Done

  • The duplicate console.print line is removed from show() in session.py
  • A Behave scenario asserts the success message appears exactly once
  • A PR is opened, reviewed (≥2 approvals), and merged
  • All nox stages pass
  • Coverage >= 97%

Backlog note: This issue was discovered during autonomous operation
on milestone v3.5.0. It does not block milestone completion and has been
placed in the backlog for human review and future milestone assignment.


Automated by CleverAgents Bot
Supervisor: UAT Testing | Agent: ca-new-issue-creator

## Metadata - **Branch**: `fix/session-show-duplicate-success-message` - **Commit Message**: `fix(cli): remove duplicate success message in agents session show` - **Milestone**: *(none — backlog)* - **Parent Epic**: #397 ## Background During UAT code-level analysis of `src/cleveragents/cli/commands/session.py` against `docs/specification.md` §"agents session show" (lines 1719–1871), a duplicate `console.print` call was found in the `show()` function. ## Problem The `agents session show` command prints the success message `✓ OK Session details loaded` **twice** due to a copy-paste / code duplication error at lines 441–443 of `src/cleveragents/cli/commands/session.py`: ```python console.print("[green bold]✓ OK[/green bold] Session details loaded") console.print("[green bold]✓ OK[/green bold] Session details loaded") ``` Both lines are identical and produce duplicate output. ## Expected Behavior (from spec §"agents session show") The success message should appear **exactly once**: ``` ✓ OK Session details loaded ``` ## Actual Behavior The message is printed twice at the bottom of the output. ## Steps to Reproduce 1. Create a session: `agents session create` 2. Run: `agents session show <SESSION_ID>` 3. Observe `✓ OK Session details loaded` appears **twice** at the bottom of the output ## Code Location `src/cleveragents/cli/commands/session.py`, lines 441–443 in the `show()` function. ## Fix Remove the duplicate `console.print` call at line 443. ## Subtasks - [ ] Remove the duplicate `console.print("[green bold]✓ OK[/green bold] Session details loaded")` call at line 443 of `src/cleveragents/cli/commands/session.py` - [ ] Add/update a Behave scenario in `features/` to assert the success message appears exactly once in `agents session show` output - [ ] Verify all nox sessions pass ## Definition of Done - [ ] The duplicate `console.print` line is removed from `show()` in `session.py` - [ ] A Behave scenario asserts the success message appears exactly once - [ ] A PR is opened, reviewed (≥2 approvals), and merged - [ ] All nox stages pass - [ ] Coverage >= 97% > **Backlog note:** This issue was discovered during autonomous operation > on milestone v3.5.0. It does not block milestone completion and has been > placed in the backlog for human review and future milestone assignment. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: ca-new-issue-creator
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: Backlog (unchanged)
  • Story Points: 1 — XS — Fix duplicate output in agents session show.
  • MoSCoW: Could Have — Minor UX issue.

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

Issue triaged by project owner: - **State**: Verified - **Priority**: Backlog (unchanged) - **Story Points**: 1 — XS — Fix duplicate output in `agents session show`. - **MoSCoW**: Could Have — Minor UX issue. --- **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.

Blocks
#397 Epic: Server & Autonomy Infrastructure
cleveragents/cleveragents-core
Reference
cleveragents/cleveragents-core#3408
No description provided.