Skip to content

fix(ai): persist Studio chat sessions across restarts - #8

Merged
PurplePrintAI merged 3 commits into
fork/mainfrom
fix/studio-chat-persistence
Sep 29, 2026
Merged

PurplePrintAI merged 3 commits into
fork/mainfrom
fix/studio-chat-persistence

Conversation

@PurplePrintAI

@PurplePrintAI PurplePrintAI commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Persist AI conversations per project in the Studio userData profile, including turns, generated-image references, manual compaction state, and rewind checkpoints.
  • Restore chats after a restart and open the newest conversation. Remove saved chats when their project is deleted.
  • Save by temporary file plus atomic replacement. A corrupt history file remains untouched and surfaces an error instead of being silently replaced.

Why

Studio kept the chat session map only in the Electron main process. Closing the app erased every conversation even though the project file remained.

Verification

Limitations and rollout

  • Chats already lost on a previous restart cannot be recovered; earlier builds never wrote them to disk.
  • Chat text and document checkpoints are local plaintext JSON in the Studio profile, separate from provider credentials.
  • Windows candidate from the final commit was installed after a verified eight-project profile backup. One approved neutral Claude turn created two on-disk messages, and both reappeared in the QA project after a full app quit/relaunch. The project document hash remained unchanged. The installed app archive SHA-256 is ACBE40664CF189E3C5BCF60AD7B0B4DA38DC089C5E87F2E29645ED2F7602E5A7.
  • The first manual CI run failed before Rust tests because Homebrew no longer bottled x265 for the macOS 14 runner; the follow-up commit switched that job to the supported macOS runner. The final CI run above passed.
  • Stacked on feat: add ChatGPT subscription image scenes to Studio #7; merge feat: add ChatGPT subscription image scenes to Studio #7 first, then retarget this PR to fork/main before merging.

@PurplePrintAI
PurplePrintAI changed the base branch from feature/studio-codex-imagegen to fork/main September 29, 2026 02:21
@PurplePrintAI
PurplePrintAI merged commit e787ad6 into fork/main Sep 29, 2026
15 checks 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