fix: 暂时不可访问的文件不要当成删除 - #228
Merged
Merged
Conversation
taekchef
marked this pull request as ready for review
August 16, 2026 09:17
Merged
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.
Closes #227
实际改动
entryPresence == .absent且父位置.present时注销该条登记。.present/.inaccessible都保留登记;不可读不再当成删除。legacyExternal检查文件的直接父目录,不再永远视为父位置可用。ImportedFileRecovery.resolve顺序为当前地址 → 书签 → 备用地址;当前地址失败后不再用同一个失败路径当 fallback。WorkspaceStore+GoneImportedItems.swift/GoneImportedItemTests.swift。sourceMissingLabel死参数,以及只给测试用的UnavailableCourseUnregister.Action。明确未做
/tmp登记清理在合并后单独做,不由产品逻辑偷偷完成。WorkspaceStore.swift、WeiBeiSelfCheck/main.swift、script/、.github/、Package.swift。共享文件占用
无。
失败注入
after the current path fails, recovery must try lastKnownPath...isReadableFile == false当成删除;现改为entryPresence三态。验证
prepare_pi_runtime+swift build -c debug+ SelfCheck + WebEditorCheck + PiCheck +check_selfcheck_source_assertions.sh+git diff --check通过