@tdd_issue @tdd_issue_10458
Feature: TDD — session tell --stream routes output through console (not sys.stdout)
  As a security-conscious developer
  I want streaming output from `session tell --stream` to go through the Rich console
  So that sensitive values in the assistant response are redacted before reaching stdout

  Background:
    Given a session tell stream redaction mock service

  @tdd_issue @tdd_issue_10458
  Scenario: session tell --stream does not write directly to sys.stdout
    When I invoke session tell with --stream and a sensitive prompt
    Then the tell command exits with code 0
    And sys.stdout.write was not called directly during streaming

  @tdd_issue @tdd_issue_10458
  Scenario: session tell --stream output contains the assistant response
    When I invoke session tell with --stream and a plain prompt
    Then the tell command exits with code 0
    And the tell output contains "Acknowledged"

  @tdd_issue @tdd_issue_10458
  Scenario: session tell --stream uses console.print not sys.stdout.write
    When I invoke session tell with --stream and a plain prompt
    Then the tell command exits with code 0
    And the streaming output was written through the Rich console
