Skip to content

Conversation

ferenci84
Copy link
Contributor

@ferenci84 ferenci84 commented Sep 6, 2025

Description

This PR adds per-tab model persistence and selection functionality. The changes enable each tab to remember and restore its selected AI model when switching between tabs. This improves the user experience by allowing users to maintain different model selections for different conversations.

Key changes:

  • Added modelTitle property to Tab interface to store the selected model per tab
  • Implemented setTabModel action in tabsSlice to update a tab's model title
  • Enhanced tab creation to include the currently selected model
  • Added functionality to restore the model when switching to a tab

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-general-review or @continue-detailed-review

Checklist

  • I've read the contributing guide
  • The relevant docs, if any, have been updated or created
  • The relevant tests, if any, have been updated or created

Screen recording or screenshot

[ When applicable, please include a short screen recording or screenshot - this makes it much easier for us as contributors to review and understand your changes. See this PR as a good example. ]

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Summary by cubic

Remember and restore the selected model per tab so each conversation can use its own model. Switching tabs now updates the global selection to match the tab’s saved model.

  • New Features
    • Added modelTitle to Tab and a setTabModel reducer to store the model per tab.
    • New tabs inherit the current model; switching tabs restores that tab’s model via updateSelectedModelByRole.
    • Persist model changes into the active tab with a TabBar effect.

@ferenci84 ferenci84 requested a review from a team as a code owner September 6, 2025 05:39
@ferenci84 ferenci84 requested review from sestinj and removed request for a team September 6, 2025 05:39
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Sep 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 participant