Set intentional cold-start workspace state - #90
Draft
GeekMai90 wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
让应用每次冷启动都进入稳定、可预期的工作区:左侧选中“全部”,文稿列表无选中,编辑器为空状态,AI 助手与右侧栏默认关闭;同时在没有选中文稿时仍能从右下角打开 AI 助手。
范围
验证
npm run check真实 Tauri 冷启动已检查:左侧“全部”高亮、文稿列表无选中、编辑器显示空状态、右侧栏关闭、右下角 AI 图标可见。
风险审查
CHANGELOG.md审查提示
重点检查
App.tsx的首轮偏好水合守卫与useLibraryPersistence.ts的冷启动选择边界。显式切换写作文件夹、运行期文稿选择和外部文件刷新仍使用原有恢复逻辑;无文稿时助手可以打开,但依赖当前文稿的动作仍由既有保护阻止。