unsloth/studio/src-tauri
shimmyshimmer cbb1508513 Address review: Linux data-dir caches, bash invocation, pre-webview clear
Three review findings, all verified:

1. wry keys the WebKitGTK base-cache dir to the app DATA dir (same as
base-data), so on Linux the stale frontend cache also lives under
~/.local/share/ai.unsloth.studio. Clear the cache-typed subdirs there
(WebKitCache, CacheStorage, serviceworkers) while keeping localstorage,
indexeddb, and cookies. Tests extended to 23 assertions.

2. run_all.sh invoked the new test with sh, but the extracted setup.sh
function uses bash arrays; dash aborts with a syntax error before any
assertion. Invoke with bash.

3. The in-app desktop update runs start_backend_update before
downloadAndInstall/relaunch, so setup.ps1/setup.sh clear caches while
the live WebView still holds them and silently fail. Clear the caches
from the Rust side in main() before the Builder runs: the config window
(and the WebView lock) exists by the time setup hooks fire, so this is
the one point where the profile is guaranteed unlocked. Same cache-only
path lists per OS; cargo check passes.
2026-07-23 02:35:51 -07:00
..
capabilities Studio: persist Tauri window size and maximized state across launches (#5799) 2026-06-02 09:26:15 -07:00
icons Polish Studio desktop chrome (#6332) 2026-06-24 17:56:25 -07:00
linux Windows installer: fix DiskPart UAC mid-install, drive-root cache, and spurious unsloth.exe rename warning (#6296) 2026-06-22 03:09:08 -07:00
src Address review: Linux data-dir caches, bash invocation, pre-webview clear 2026-07-23 02:35:51 -07:00
windows Windows installer: fix DiskPart UAC mid-install, drive-root cache, and spurious unsloth.exe rename warning (#6296) 2026-06-22 03:09:08 -07:00
build.rs Add tauri (#5144) 2026-04-23 04:50:10 -07:00
Cargo.lock Fix Studio desktop reliability (#7255) 2026-07-21 09:51:18 +02:00
Cargo.toml Fix Studio desktop reliability (#7255) 2026-07-21 09:51:18 +02:00
Entitlements.plist Fix Studio desktop reliability (#7255) 2026-07-21 09:51:18 +02:00
Info.plist Fix Studio desktop reliability (#7255) 2026-07-21 09:51:18 +02:00
tauri.conf.json Fix Linux AppImage packaging (#6657) 2026-06-24 19:40:00 -07:00
tauri.macos.conf.json Fix Studio desktop reliability (#7255) 2026-07-21 09:51:18 +02:00
tauri.windows.conf.json Fix Windows workflow issues(#5694) 2026-05-22 05:32:30 -07:00