Skip to content

Conversation

@Abhijay007
Copy link
Collaborator

@Abhijay007 Abhijay007 commented Jan 5, 2026

Closes #6316

Summary

Pre-populates the "Switch Model" modal with the user's current provider and model selection, reducing friction when switching between models from the same provider.

Type of Change

  • Refactor / Code quality

Testing

Tested in desktop UI

Screenshots/Demos (for UX changes)

Before:

image

After:

image

Copilot AI review requested due to automatic review settings January 5, 2026 18:00
@Abhijay007 Abhijay007 marked this pull request as draft January 5, 2026 18:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the user experience of the SwitchModelModal by pre-populating it with the current provider and model when no initial provider is specified. This is particularly useful when users open the modal to change their model from the settings or bottom bar, as they'll see their current selection rather than empty fields.

Key Changes

  • Added fallback to currentProvider and currentModel from the useModelAndProvider hook when initializing the modal's state
  • The initialProvider prop still takes precedence to support onboarding flows

@Abhijay007 Abhijay007 marked this pull request as ready for review January 5, 2026 18:18
@Abhijay007 Abhijay007 merged commit ebae5d8 into block:main Jan 6, 2026
23 checks passed
zanesq added a commit that referenced this pull request Jan 6, 2026
* 'main' of github.com:block/goose:
  refactor:  when changing provider/model,load existing provider/model (#6334)
  chore: refactor configure_extensions_dialog to reduce line count (#6277)
  chore: refactor handle_configure to reduce line count (#6276)
  chore: refactor interactive session to reduce line count (#6274)
  chore: refactor docx_tool to reduce function size (#6273)
  chore: refactor cli() function to reduce line count (#6272)
  make sure the models are using streaming properly (#6331)
  feat: add a max tokens env var (#6264)
  docs: slash commands topic (#6333)
  fix(ci): prevent gh-pages branch bloat (#6340)
  chore(deps): bump qs and body-parser in /documentation (#6338)
  Skip the smoke tests for dependabot PRs (#6337)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UX: When changing provider/model, load existing provider/model

2 participants