Skip to content

AI Model selection is incorrectly shared across multiple windows (Global State Issue) #4133

@zzing0907

Description

@zzing0907

Before opening, please confirm:

Operating System

darwin

Kiro Version

0.5.35

Bug Description

I am experiencing an issue where the AI Chat Model selection is not isolated per window. When I have multiple windows open and select different models, changing or using the model in one window overrides the selection in the other windows.

It seems like the "Active AI Model" state is being treated as a global variable rather than being scoped to the specific window or session.

Steps to Reproduce

  1. Open two separate windows of Kiro.
  2. In Window A, select the "Claude 4.5 Opus" model.
  3. In Window B, select the "Claude 4.5 Sonnet" model.
  4. Start a chat or modify settings in Window A.

Expected Behavior

Expected Behavior:
The AI model selection should be isolated to each specific window (instance).

  • If I select Opus in Window A and Sonnet in Window B, they should remain different.
  • Changing the model in one window should NOT affect the model selection in other active windows.

Conversation ID

bf920448-5e40-41de-8870-35eb3bf76b04
d15887f4-3dc9-4878-b211-caf40cf14518

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions