mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-19 01:33:42 +08:00
7430f245c7
models: add a clear cache button to mici, gate and show progress on both panels Adds the clear-cache tile to the mici models panel (trash slide-to-confirm), factoring the cache-size math into model_cache_size_mb() shared with the big UI. On both UIs the clear button is now gated on offroad + not-downloading + not-clearing (the manager runs offroad-only, so a clear queued onroad would never be serviced and would stick), and shows progress while the manager works: mici shows "clearing..." on the tile, the big UI flips its button to "CLEARING..." to match its FETCHING.../SELECT/CLEAR label style (as in the OSM panel). Claude-Session: https://claude.ai/code/session_01EGMnVnSk5inGTrd7kuDVG9 Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>