Files
cleveragents-core/features
HAL9000 8fc2b93a2a
CI / benchmark-publish (pull_request) Has been skipped
CI / helm (pull_request) Successful in 33s
CI / lint (pull_request) Failing after 58s
CI / build (pull_request) Successful in 41s
CI / push-validation (pull_request) Successful in 30s
CI / quality (pull_request) Successful in 1m9s
CI / typecheck (pull_request) Successful in 1m17s
CI / security (pull_request) Successful in 1m37s
CI / coverage (pull_request) Has been skipped
CI / integration_tests (pull_request) Successful in 3m26s
CI / e2e_tests (pull_request) Successful in 4m2s
CI / unit_tests (pull_request) Successful in 5m36s
CI / docker (pull_request) Has been skipped
CI / status-check (pull_request) Failing after 3s
fix(cli/session): emit JSON envelope in session delete for non-rich formats
Replace the bare console.print() Rich markup call in the session delete
command's non-rich branch with a proper format_output() call that emits
a spec-compliant JSON/YAML/plain envelope.

The else branch previously called:
  console.print(f"[green]✓ OK[/green] Session {session_id} deleted")
which emitted raw Rich markup to stdout, breaking any downstream JSON
parser. The fix constructs a data dict with session_id, messages_removed,
storage_freed, and plans_orphaned fields and delegates to format_output().

Also adds BDD feature file and step definitions tagged @tdd_issue_10461
that verify the JSON envelope output and confirm no regression in the
default Rich console output path.

ISSUES CLOSED: #10461
2026-04-28 07:43:06 +00:00
..