You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There should be logic in the model selector/dropdown for last model used. I think however this is only applying to session storage? refreshing the app will remove it.
Can we store it a bit more semi-permentantly? maybe local storage or something? that way an app restart or fresh will still show the last model used.
Though keep in mind that we need to maintain the logic that uses the model that was last used in a specific chat, if it is in a specific chat.
@claude - try this again. except do NOT make any new methods or change the existing behavior. I already have methods that set/retrieve the model based on various conditions. Respect those existing methods but store/retrieve from local storage instead.
Activity
AnthonyRonning commentedon Aug 15, 2025
@claude can you handle this? existing behavior should be maintained but swap it out for more persistant storage (client side).
claude commentedon Aug 15, 2025
Claude finished @AnthonyRonning's task —— View job •
claude/issue-194-20250815-0321• Create PR ➔Todo List
✅ Implementation Complete
Problem Found: The global model selector state wasn't being persisted - it reset to the default model on app refresh/restart.
Solution: Added localStorage persistence to
LocalStateContext.tsx:Key Features:
feat: persist model selection in localStorage
AnthonyRonning commentedon Aug 15, 2025
@claude - try this again. except do NOT make any new methods or change the existing behavior. I already have methods that set/retrieve the model based on various conditions. Respect those existing methods but store/retrieve from local storage instead.
claude commentedon Aug 15, 2025
Claude finished @AnthonyRonning's task —— View job •
claude/issue-194-20250815-0348• Create PR ➔Todo List
✅ Implementation Complete
Problem: Model selection was only stored in memory - refreshing the app would reset to default model.
Solution: Added localStorage persistence to existing methods in
LocalStateContext.tsx:Initialization (line 31-39): Load model from localStorage with fallback hierarchy:
VITE_DEV_MODEL_OVERRIDE(dev environment)localStorage.getItem("selectedModel")(user's last selection)DEFAULT_MODEL_ID(fallback)setModel function (lines 271-282): Save to localStorage whenever model changes, with error handling
Chat-specific logic preserved: Individual chats still load their specific model via
setModel(localChat.model)in the chat route (line 314).Key Features: