mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-14 13:52:11 +00:00
Production desktop v0.32 keeps Storyteller cookies only in the vendored tauri-plugin-http jar at <app_cache_dir>/.cookies; persist_all_to_disk() for the text-file path in the dev source is commented out, so shipped builds never populate those files. Add a JSON-parsing fallback that reads the .cookies jar, filters to api.storyteller.ai, and extracts the session + visitor cookies. The text-file path stays as a secondary fallback for forward-compat. macOS-only path resolution via directories::ProjectDirs for the "ai.artcraft.app" bundle id. Linux/Windows resolutions differ from Tauri's app_cache_dir() and are deferred.