session create output panel structure deviates from spec — Automation field in wrong panel with hardcoded value #9288

Open
opened 2026-04-14 14:04:45 +00:00 by HAL9000 · 1 comment
Owner

Metadata

  • Commit Message: fix(cli): align session create output panel structure with spec
  • Branch: fix/session-create-output-panel-alignment

Background and Context

The agents session create command output deviates from the specification in two ways:

  1. The "Automation" field is placed in a separate "Settings" panel instead of the main "Session" panel
  2. The "Automation" value is hardcoded to "default" instead of showing the actual configured automation profile name

The specification (docs/specification.md, §agents session create, line ~1488) shows:

$ agents session create --actor local/orchestrator
╭─ Session ──────────────────────────────╮
│ Session ID: 01HXM2A6K1P2E9Q9D4GQ7J4S7Z │
│ Actor: local/orchestrator              │
│ Automation: review                     │
╰────────────────────────────────────────╯
✓ OK Session created

The current implementation (src/cleveragents/cli/commands/session.py) produces:

╭─────────────── Session ────────────────╮
│ Session ID: 01KP64B4VPPC5S2C0EG7RW7CEA │
│ Actor: openai/gpt-4                    │
│ Namespace: local                       │
│ Created: 2026-04-14 13:54              │
╰────────────────────────────────────────╯
╭────── Settings ───────╮
│ Automation: default   │
│ Streaming: off        │
│ Context: default      │
│ Memory: enabled       │
│ Max History: 50 turns │
╰───────────────────────╯
✓ OK Session created

Current Behavior

The session create command:

  1. Shows "Automation" in a separate "Settings" panel (not in the main "Session" panel)
  2. Shows hardcoded value "default" for Automation instead of the actual automation profile name
  3. Shows extra fields in the main panel (Namespace, Created) that the spec does not show
  4. Shows extra fields in the Settings panel (Streaming, Context, Memory, Max History) that the spec does not show

Expected Behavior

Per the specification:

  1. The main "Session" panel should contain: Session ID, Actor, Automation
  2. The "Automation" value should reflect the actual configured automation profile name (e.g., "review", "supervised", "trusted")
  3. No separate "Settings" panel should be shown
  4. No extra fields (Namespace, Created, Streaming, Context, Memory, Max History) should be shown

Acceptance Criteria

  • agents session create output shows a single "Session" panel with Session ID, Actor, and Automation fields
  • The Automation field value reflects the actual configured automation profile (not hardcoded "default")
  • No separate "Settings" panel is rendered
  • The BDD test in features/session_cli.feature scenario "Create session with defaults" passes with the corrected output
  • The spec-required "Session created" success message is still shown

Supporting Information

  • Spec reference: docs/specification.md, section ##### agents session create, line ~1478-1502
  • Implementation: src/cleveragents/cli/commands/session.py, create() function, lines ~150-200
  • BDD test: features/session_cli.feature, scenario "Create session with defaults"
  • Discovered during UAT testing of Session Management CLI feature area

Subtasks

  • Fix create() function in src/cleveragents/cli/commands/session.py to show Automation in main Session panel
  • Remove the separate "Settings" panel from session create output
  • Remove extra fields (Namespace, Created) from the main Session panel
  • Resolve actual automation profile name from config/settings instead of hardcoding "default"
  • Update BDD test assertions in features/session_cli.feature if needed
  • Verify coverage >=97% via nox -s coverage_report
  • Run nox (all default sessions), fix any errors

Definition of Done

This issue is complete when:

  • All subtasks above are completed and checked off.
  • A Git commit is created where the first line of the commit message matches the Commit Message in Metadata exactly.
  • The commit is pushed to the remote on the branch matching the Branch in Metadata exactly.
  • The commit is submitted as a pull request to master, reviewed, and merged before this issue is marked done.

Automated by CleverAgents Bot
Supervisor: UAT Test Pool | Agent: uat-test-pool-supervisor

## Metadata - **Commit Message**: `fix(cli): align session create output panel structure with spec` - **Branch**: `fix/session-create-output-panel-alignment` ## Background and Context The `agents session create` command output deviates from the specification in two ways: 1. The "Automation" field is placed in a separate "Settings" panel instead of the main "Session" panel 2. The "Automation" value is hardcoded to "default" instead of showing the actual configured automation profile name The specification (docs/specification.md, §agents session create, line ~1488) shows: ``` $ agents session create --actor local/orchestrator ╭─ Session ──────────────────────────────╮ │ Session ID: 01HXM2A6K1P2E9Q9D4GQ7J4S7Z │ │ Actor: local/orchestrator │ │ Automation: review │ ╰────────────────────────────────────────╯ ✓ OK Session created ``` The current implementation (`src/cleveragents/cli/commands/session.py`) produces: ``` ╭─────────────── Session ────────────────╮ │ Session ID: 01KP64B4VPPC5S2C0EG7RW7CEA │ │ Actor: openai/gpt-4 │ │ Namespace: local │ │ Created: 2026-04-14 13:54 │ ╰────────────────────────────────────────╯ ╭────── Settings ───────╮ │ Automation: default │ │ Streaming: off │ │ Context: default │ │ Memory: enabled │ │ Max History: 50 turns │ ╰───────────────────────╯ ✓ OK Session created ``` ## Current Behavior The `session create` command: 1. Shows "Automation" in a separate "Settings" panel (not in the main "Session" panel) 2. Shows hardcoded value "default" for Automation instead of the actual automation profile name 3. Shows extra fields in the main panel (Namespace, Created) that the spec does not show 4. Shows extra fields in the Settings panel (Streaming, Context, Memory, Max History) that the spec does not show ## Expected Behavior Per the specification: 1. The main "Session" panel should contain: Session ID, Actor, Automation 2. The "Automation" value should reflect the actual configured automation profile name (e.g., "review", "supervised", "trusted") 3. No separate "Settings" panel should be shown 4. No extra fields (Namespace, Created, Streaming, Context, Memory, Max History) should be shown ## Acceptance Criteria - [ ] `agents session create` output shows a single "Session" panel with Session ID, Actor, and Automation fields - [ ] The Automation field value reflects the actual configured automation profile (not hardcoded "default") - [ ] No separate "Settings" panel is rendered - [ ] The BDD test in `features/session_cli.feature` scenario "Create session with defaults" passes with the corrected output - [ ] The spec-required "Session created" success message is still shown ## Supporting Information - Spec reference: `docs/specification.md`, section `##### agents session create`, line ~1478-1502 - Implementation: `src/cleveragents/cli/commands/session.py`, `create()` function, lines ~150-200 - BDD test: `features/session_cli.feature`, scenario "Create session with defaults" - Discovered during UAT testing of Session Management CLI feature area ## Subtasks - [ ] Fix `create()` function in `src/cleveragents/cli/commands/session.py` to show Automation in main Session panel - [ ] Remove the separate "Settings" panel from `session create` output - [ ] Remove extra fields (Namespace, Created) from the main Session panel - [ ] Resolve actual automation profile name from config/settings instead of hardcoding "default" - [ ] Update BDD test assertions in `features/session_cli.feature` if needed - [ ] Verify coverage >=97% via `nox -s coverage_report` - [ ] Run `nox` (all default sessions), fix any errors ## Definition of Done This issue is complete when: - All subtasks above are completed and checked off. - A Git commit is created where the **first line** of the commit message matches the Commit Message in Metadata exactly. - The commit is pushed to the remote on the branch matching the **Branch** in Metadata exactly. - The commit is submitted as a **pull request** to `master`, reviewed, and **merged** before this issue is marked done. --- **Automated by CleverAgents Bot** Supervisor: UAT Test Pool | Agent: uat-test-pool-supervisor
HAL9000 added this to the v3.2.0 milestone 2026-04-14 14:11:10 +00:00
Author
Owner

Triage: Verified [AUTO-OWNR-1]

Valid bug: agents session create output deviates from the spec in multiple ways:

  1. "Automation" field is in a separate "Settings" panel instead of the main "Session" panel
  2. "Automation" value is hardcoded to "default" instead of showing the actual profile name
  3. Extra fields shown (Namespace, Created, Streaming, Context, Memory, Max History) not in spec

The spec clearly shows a single "Session" panel with Session ID, Actor, and Automation fields.

Assigning to v3.2.0 as session management is a core feature. Priority Medium — output format issue, the command still functions.

MoSCoW: Should Have — spec-compliant output is important for user experience and tooling integration.


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

✅ **Triage: Verified** [AUTO-OWNR-1] Valid bug: `agents session create` output deviates from the spec in multiple ways: 1. "Automation" field is in a separate "Settings" panel instead of the main "Session" panel 2. "Automation" value is hardcoded to "default" instead of showing the actual profile name 3. Extra fields shown (Namespace, Created, Streaming, Context, Memory, Max History) not in spec The spec clearly shows a single "Session" panel with Session ID, Actor, and Automation fields. Assigning to **v3.2.0** as session management is a core feature. Priority **Medium** — output format issue, the command still functions. MoSCoW: **Should Have** — spec-compliant output is important for user experience and tooling integration. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
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#9288
No description provided.