mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Preserve the user's selected session agent/model/variant across reconnect cycles. Previously, background refetches (triggered on reconnect) would clear the stored session agent and fall back to the default agent. - Restore stored session agent during initial message loading instead of falling back to the default agent unconditionally - Remove isFetching from the early-return guard so background refetches preserve the cached message-derived configuration - Track user model/agent overrides per session to prevent reconnect sync from overwriting manual selections - Add shared formatModelKey() utility to eliminate repeated inline providerID/modelID construction across the codebase - Remove unused getSessionAgentFromMessages export