Skip to content

Conversation

@joachim-isaksson
Copy link
Contributor

Model store gets fed react proxy objects, so the cache is corrupted on some model changes.

  • Deep copy objects when inserting into recent/favorite stores to break reactive proxy references
  • Only filter models from provider sections if actually displayed in Recent section

To repeat the existing problem (and show that the new behavior is correct), try this without exiting opencode in between.

  • Enter opencode
  • /models # and change to a model not on recent list
  • /models. # and change back to the previous model again
  • /models. # will show that is has lost your first model change.

- Deep copy objects when inserting into recent/favorite stores to break reactive proxy references
- Only filter models from provider sections if actually displayed in Recent section
@rekram1-node
Copy link
Collaborator

/review

@github-actions
Copy link
Contributor

lgtm

@rekram1-node rekram1-node merged commit 1670d22 into sst:dev Dec 30, 2025
2 checks passed
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