Skip to content

[pull] main from xintaofei:main#89

Merged
pull[bot] merged 2 commits into
MoozLee:mainfrom
xintaofei:main
Jun 12, 2026
Merged

[pull] main from xintaofei:main#89
pull[bot] merged 2 commits into
MoozLee:mainfrom
xintaofei:main

Conversation

@pull

@pull pull Bot commented Jun 12, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

An unsent draft tab is device-local and never persisted, so quitting with only a draft open reopened to zero tabs: the chat area was blank and the New chat button, Mod+T, and context menu were all dead because each was gated on the now-null active folder.

Hydration now synthesizes an active draft whenever no tabs are restored, targeting the last-active folder or chat mode via a localStorage hint, without writing any conversation or folder row before the first send. The sidebar New chat button falls back to chat mode instead of disabling when there is no active folder.
Each unsent chat draft eagerly creates a <data_dir>/chat-sessions/<date>/<uuid>/ scratch directory; quitting before the first send or deleting a chat conversation orphaned it forever. A startup sweep on both desktop and server now removes scratch directories that have no live is_chat folder row and are older than ten minutes, matching live directories by their (date, uuid) tail so a renamed or aliased data directory can never delete a live one.
@pull pull Bot locked and limited conversation to collaborators Jun 12, 2026
@pull pull Bot added the ⤵️ pull label Jun 12, 2026
@pull pull Bot merged commit 0343506 into MoozLee:main Jun 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant