[Feature Request] Switching model based on power status
Feature Request
Description
As I am working on a mobile device (MacBook Pro) and larger AI models use more energy it would be convenient to set a model for use while I am on battery and another model for use while the MacBook is connected to the power supply. The switch should happen automatically when the power status changes, ideally between sessions (not mid-completion) to avoid context loss.
Use Case
This would allow to use larger models while plugged in and smaller models while on battery. It would also extend the battery life when using smaller models. macOS provides easy access to power source status via IOKit / NSProcessInfo.processInfo.isLowPowerModeEnabled or simply by observing NSWorkspace power notifications, so implementation complexity should be low.
Environment
- Cotabby version: 0.5.0-beta
- macOS version: 26.6
- Mac model: Mac16,7
- Chip: Apple M4 Pro
- Memory: 24 GB
Submitted via tabby feedback form
Hi! I'm looking into this issue and had a quick implementation question before I start.
Would you prefer:
- Separate battery and plugged-in model selections in Settings, with automatic switching when the power source changes.
or
- A simpler approach with a single alternate model configured for battery/plugged-in use while keeping the current model selection flow mostly unchanged.
I just want to make sure the UI and persistence approach match the intended scope before opening a PR.
@100NikhilBro great question, honestly I think we should go for 1., iicr It follows how windows/macOS distinguishes different power settings depending on plugged in or not.
- would directly meet the issue-filer's ask but definitely is a lot more niche use-case.
So let's do 1 and have default as same model, but on toggle of advanced battery setting, we let user define plugged vs non plugged in
Sounds good, thanks for clarifying! I'll take a look at the implementation and open a PR once I have something working.