Feature: Session CLI MCP logger code execution
  As a developer
  I want to verify the MCP logger suppression code executes
  So that coverage includes the initialization and conditional logic

  Background:
    Given the session CLI modules are loaded

  Scenario: Session create initializes MCP logger
    When I inspect the session create function source
    Then the source should contain mcp_logger initialization
    And the source should contain logging.getLogger call

  Scenario: Session create has conditional suppression logic
    When I inspect the session create function source
    Then the source should contain format check for RICH and COLOR
    And the source should contain setLevel CRITICAL

  Scenario: Session create has finally block for restoration
    When I inspect the session create function source
    Then the source should contain finally block
    And the source should contain mcp_logger.setLevel(orig_level)

  Scenario: Session list initializes MCP logger
    When I inspect the session list function source
    Then the source should contain mcp_logger initialization
    And the source should contain logging.getLogger call

  Scenario: Session list has conditional suppression logic
    When I inspect the session list function source
    Then the source should contain format check for RICH and COLOR
    And the source should contain setLevel CRITICAL

  Scenario: Session list has finally block for restoration
    When I inspect the session list function source
    Then the source should contain finally block
    And the source should contain mcp_logger.setLevel(orig_level)
