*** Settings ***
Documentation    Bug #1141 — session create does not persist session
...    for subsequent list. Verifies that the session CRUD
...    lifecycle works: create → list → verify.
Resource    common_e2e.resource
Suite Setup    E2E Suite Setup
Suite Teardown    E2E Suite Teardown

*** Test Cases ***
Session Create Then List Shows Session
  [Documentation]    Create a session and verify it appears in session list.
  [Tags]    E2E tdd_issue tdd_issue_1141 tdd_issue_4177
  ${r1}=    Run CleverAgents Command    session list --format json
  Should Contain    ${r1.stdout}    "total": 0
  Run CleverAgents Command    session create --format plain
  ${r2}=    Run CleverAgents Command    session list --format json
  Should Contain    ${r2.stdout}    "total": 1
