Skip to content

feat: move /btw persistence to backend, add workspace cleanup, simplify WelcomeScene#154

Merged
GCWing merged 1 commit intomainfrom
gcwing/dev
Mar 14, 2026
Merged

feat: move /btw persistence to backend, add workspace cleanup, simplify WelcomeScene#154
GCWing merged 1 commit intomainfrom
gcwing/dev

Conversation

@GCWing
Copy link
Owner

@GCWing GCWing commented Mar 14, 2026

  • Move /btw side-question turn persistence from frontend to Rust backend: add persist_btw_turn to SessionManager and Coordinator, expose via BtwAskStreamRequest and remove inline saveSessionTurn logic from BtwThreadService
  • Add per-workspace mutex (SESSION_INDEX_LOCKS) in PersistenceManager to prevent session-index races; detect and rebuild stale index entries; fix metadata-before-write ordering in save_dialog_turn
  • Add cleanup_invalid_workspaces Tauri command and save workspace data after cleanup in workspace service; call it on app startup in workspaceManager
  • Refactor WelcomeScene into a single unified view, removing has-workspace / first-time split, panda mascot, session-type buttons, and git branch tag; update locales (en-US / zh-CN) accordingly
  • Minor UI polish: NavPanel, SplashScreen, PersonaView, ChatInput styles

…fy WelcomeScene

- Move /btw side-question turn persistence from frontend to Rust backend:
  add persist_btw_turn to SessionManager and Coordinator, expose via
  BtwAskStreamRequest and remove inline saveSessionTurn logic from BtwThreadService
- Add per-workspace mutex (SESSION_INDEX_LOCKS) in PersistenceManager to
  prevent session-index races; detect and rebuild stale index entries;
  fix metadata-before-write ordering in save_dialog_turn
- Add cleanup_invalid_workspaces Tauri command and save workspace data after
  cleanup in workspace service; call it on app startup in workspaceManager
- Refactor WelcomeScene into a single unified view, removing has-workspace /
  first-time split, panda mascot, session-type buttons, and git branch tag;
  update locales (en-US / zh-CN) accordingly
- Minor UI polish: NavPanel, SplashScreen, PersonaView, ChatInput styles
@GCWing GCWing changed the title feat: move /btw persistence to backend, add workspace cleanup, simpli… feat: move /btw persistence to backend, add workspace cleanup, simplify WelcomeScene Mar 14, 2026
@GCWing GCWing merged commit 38fb7de into main Mar 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant