Skip to content

[Critical] Workspace Persistence (Remember Last Workspace) #24

@7sg56

Description

@7sg56

Priority: Critical (Ship Blocker)

The app loses the workspace every time it restarts. Users have to re-select their folder on every launch.

Scope

Use Tauri's tauri-plugin-store (a JSON key-value store) to persist the last workspace path and restore it on launch.

Backend / Config Changes

  • [MODIFY] Cargo.toml — Add tauri-plugin-store dependency.
  • [MODIFY] lib.rs — Register the store plugin.

Frontend Changes

  • [MODIFY] useWorkspace.ts — After loading a workspace, persist the path to the store. On app init, read the stored path and auto-load the workspace.
  • [MODIFY] App.tsx — On mount, attempt to restore the last workspace before showing the welcome screen.

Verification

  • Open a workspace, quit the app, relaunch — verify it auto-loads the last workspace without prompting.

Source: changelogs/cinder-v0.2.md

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions