Allow SWITCH_MODEL to reset a session to Auto

FixAIService
Shipped
July 16, 2026 at 5:45 PM UTC
Author
Kamo
Commit
b1d9bd3

handleSwitchModel always UUID-parsed modelId and errored on null, so a session could never be reverted to automatic model selection mid-chat. Parse modelId as a string: null/empty/"auto" clears the session model (setModel(null) + save, responding modelName "Auto"); a UUID selects a concrete model; an invalid UUID returns a clean error instead of throwing.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing