Skip to content

Conversation

@EurFelux
Copy link
Collaborator

@EurFelux EurFelux commented Oct 30, 2025

Summary

This pull request implements a feature to allow users to reset their selected default model back to an unselected state, addressing issue #11024.

image

Problem Solved

Users who had selected a default model in Cherry Studio previously had no way to return to the state where no model was selected. This was limiting for users who wanted to start fresh or change their model selection strategy.

Implementation

The PR adds reset functionality to the model settings, including:

  • Reset buttons in the model settings interface
  • Logic to clear the default model selection
  • UI improvements using the new ResetIcon component instead of RedoOutlined
  • Refactoring of model configuration structure for better maintainability

Key Changes

  • Added reset buttons for model settings
  • Restructured default model configuration and usage
  • Removed unused translate prompt related code from ModelSettings
  • Fixed callback function naming in resetQuickModel functionality

User Impact

Users can now easily reset their default model selection, providing more flexibility in model management and allowing them to return to a clean slate state as requested in the original feature request.

Fixes #11024

@EurFelux EurFelux requested a review from 0xfullex as a code owner October 30, 2025 09:18
@EurFelux EurFelux marked this pull request as draft October 30, 2025 09:26
@EurFelux EurFelux changed the base branch from main to v2 October 30, 2025 09:27
@EurFelux EurFelux added the v2 label Oct 30, 2025
@0xfullex
Copy link
Collaborator

commit history seems wrong?

@EurFelux
Copy link
Collaborator Author

Rebase is not finished. Waiting for the next v2 merge main

- Replace SYSTEM_MODELS.defaultModel array with DEFAULT_MODEL_MAP object for clearer model assignments
- Update related store and hook implementations to use new model map
- Add reset functions for default models in useAssistant hook
Add reset functionality for default assistant, quick and translate models.
Replace RedoOutlined icon with custom ResetIcon for consistency.
…n and update button styles

migrate icon usage to custom ResetIcon component and improve button styling
add TODO comment for future button component migration
Use setQuickModel instead of setTranslateModel to properly reset the quick model
Replace SYSTEM_MODELS.defaultModel array with DEFAULT_MODEL_MAP object to better reflect actual model structure
@EurFelux EurFelux force-pushed the feat/reset-default-model branch from cff0f0e to c49c592 Compare November 1, 2025 06:03
@EurFelux EurFelux marked this pull request as ready for review November 1, 2025 06:11
…stid

Update test snapshot to reflect changes in the InputEmbeddingDimension component where a testid was added to the button and the data-title attribute was removed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4 participants