Skip to content

Conversation

@joachim-isaksson
Copy link

@joachim-isaksson joachim-isaksson commented Dec 26, 2025

Problem: Models are not displayed anywhere in the model dialog if they are in the recent list but beyond position 5.

Changed the filter to use recentList (displayed recent models) instead of recents (all recent models) to fix this issue.

Models in positions 6-10 of the recent list were being filtered out
from provider sections even though they weren't displayed in the Recent
section (which only shows top 5).

This caused models like github-copilot/claude-sonnet-4.5 to disappear
from the provider sections if they were in the recent list but beyond
position 5.

Changed the filter to use recentList (displayed models) instead of
recents (all models) to fix this issue.
@rekram1-node
Copy link
Collaborator

/review

@github-actions
Copy link
Contributor

lgtm

@rekram1-node
Copy link
Collaborator

this seems to introduce a regression in recents list in my testing, any model I try just replaces top model in recents list instead of the previous behavior

@joachim-isaksson
Copy link
Author

joachim-isaksson commented Dec 27, 2025

this seems to introduce a regression in recents list in my testing, any model I try just replaces top model in recents list instead of the previous behavior

That bug is already there and fully repeatable in the dev branch even without my patch and (as far as I understand the code) has to do with setModelStore being called with active proxy objects that are still active/changing after being inserted in the store. Deep copying the objects into the store instead seems to fix it (although I can't explain exactly why, yet)

Would you prefer I fix the modelStore bug first before adding this patch again? This patch doesn't change the behavior, just made you test it a bit extra I presume :) Otherwise I can drop in my exact test case that repeats the ModelStore problem both with or without my patch.

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.

2 participants