Skip to content

feat: add theme support and default model persistence#23

Open
Mohtasham Murshid (MohtashamMurshid) wants to merge 4 commits intolangchain-ai:mainfrom
MohtashamMurshid:main
Open

feat: add theme support and default model persistence#23
Mohtasham Murshid (MohtashamMurshid) wants to merge 4 commits intolangchain-ai:mainfrom
MohtashamMurshid:main

Conversation

@MohtashamMurshid
Copy link
Contributor

Summary

  • Add theme support (light/dark/system) with persistent storage
  • Implement default model persistence and loading so the selected model is remembered across sessions
  • UI improvements for theme switching in settings dialog and sidebar

Test plan

  • Verify theme switching works correctly (light/dark/system modes)
  • Verify selected model persists across app restarts
  • Test settings dialog theme options
  • Test sidebar appearance in different themes

- Add theme toggle in sidebar footer and settings dialog
- Support light, dark, and system (auto) theme modes
- Persist theme preference in localStorage
- Listen for system preference changes when set to 'system'
- Update CodeViewer to use theme-appropriate Shiki highlighting
- Add light theme CSS variables
- Fix code block backgrounds in streaming markdown for light theme
- Save selected model as default for new threads and app restarts
- Load default model from storage on app start
- Update current model in thread state to reflect the loaded default
- Introduce a new model configuration for Gemini 3 Flash Preview
- Enhance the available models list with a focus on fast and efficient reasoning and coding capabilities
Keep upstream description for gemini-3-flash-preview model.
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.

1 participant