Skip to content

fix(tui): sync model preferences across clients - #49611

Merged
rekram1-node merged 2 commits into
v2from
model-sync
Sep 17, 2026
Merged

rekram1-node merged 2 commits into
v2from
model-sync

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • watch shared model preferences and refresh open TUI clients
  • serialize cross-process preference writes with a file lock
  • update recents, favorites, and variants without clobbering unrelated client changes

Testing

  • bun run check
  • bun test test/model-preference.test.ts test/context/local.test.ts (from packages/tui)
  • bun test --timeout 30000 test/component/dialog-shell-output.test.tsx (from packages/tui)
  • verified a favorite toggle propagated between two open TUIs without reopening the model dialog

@rekram1-node
rekram1-node merged commit a2594dd into v2 Sep 17, 2026
7 of 8 checks passed
@rekram1-node
rekram1-node deleted the model-sync branch September 17, 2026 19:54
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
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