@tdd_issue @tdd_issue_10499
Feature: TDD Bug #10500 — PersonaState.set_active_persona() does not reset preset
  As a TUI user
  I want switching to a different persona to reset the active preset to "default"
  So that I do not accidentally carry over a preset from a previous persona

  When a session has cycled to a non-default preset and the user then switches
  to a different persona, the preset should be reset to "default".  The current
  implementation only initialises the preset when the session has no preset at
  all; it leaves an existing non-default preset unchanged.

  @tdd_issue @tdd_issue_10499 @tdd_expected_fail
  Scenario: Bug #10500 - switching persona resets preset to default
    Given a session "sess-reset-1" with persona "coder" and a non-default preset "turbo"
    When I switch session "sess-reset-1" to persona "analyst"
    Then the preset for session "sess-reset-1" should be "default"

  @tdd_issue @tdd_issue_10499 @tdd_expected_fail
  Scenario: Bug #10500 - switching persona resets preset even after multiple cycles
    Given a session "sess-reset-2" with persona "coder" and a non-default preset "fast"
    And the preset for session "sess-reset-2" has been updated to "slow"
    When I switch session "sess-reset-2" to persona "analyst"
    Then the preset for session "sess-reset-2" should be "default"
