You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤖 Add Haiku 4-5 support and centralize default model logic
- Add claude-haiku-4-5 to MODEL_ABBREVIATIONS with 'haiku' shortcut
- Add pricing/config for Haiku 4-5 to models-extra.ts ($1/$5 per million tokens)
- Reorder MODEL_ABBREVIATIONS to put sonnet first (becomes default for new chats)
- Centralize default model logic: created getDefaultModelFromLRU() in useModelLRU.ts
- Remove all imports of defaultModel except in models.ts and useModelLRU.ts
- Update all code paths to use LRU for default model selection:
- useSendMessageOptions hook
- getSendOptionsFromStorage (non-hook)
- useAIViewKeybinds
- Debug scripts (costs, agentSessionCli, send-message)
- Update models.json with latest model pricing data
This makes the system less prescriptive - the most recently used model
becomes the default for new chats, creating a natural user-driven flow.
0 commit comments