Remove leftover update workspace folders on launcher startup #1782
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1782
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1782/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Pipe530 on GitHub · 2026-10-21 03:39 UTC · original
Pipe530:pipe530-cleanup-update-temp-folder→main· +22 −1 · 1 files · 3 commits · merged 2026-10-21 18:43 UTCThe update helper can't delete its own executable on Windows, so each automatic update left a
.kyty-update-XXXXXXfolder behind. The launcher now removes these folders at startup (also cleaning up folders from cancelled/failed updates).@coderabbitai[bot] on GitHub · 2026-10-21 03:46 UTC · original · edited 2026-10-21 18:43 UTC
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
587670da-fb13-45e6-9ca9-8b14ad0a698c📥 Commits
Reviewing files that changed from the base of the PR and between
d6eb66520aand196782ef0f.📒 Files selected for processing: 1
src/launcher/src/updateChecker.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.
📝 Walkthrough
When the installation directory exists,
ShowPreviousResultscans hidden.kyty-update-??????workspaces. It removes a workspace when its newest file or directory modification is more than 15 minutes old. It retains recently modified workspaces. The function then reads the update result file.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Bug fix
Merge Risk: 🔵 Low · up to
19678Startup now deletes leftover update folders older than 15 minutes. This fixes the clutter left by automatic updates. Two narrow edge cases remain. A folder replaced by a Windows junction could cause files outside the installation to be deleted, but only someone who can already write to the installation folder can set that up. A very long-running update could also have its folder removed by a second launcher start. Both are worth owner awareness, but neither should block a merge.
Pre-merge checks:
4 ·
1
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.@coderabbitai[bot] on GitHub · 2026-10-21 03:46 UTC · original
On
src/launcher/src/updateChecker.cppline 106 (outdated):🩺 Stability & Availability | 🟠 Major | 🏗️ Heavy lift
🔎 Supported by static analysis
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 21299
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 45665
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 18563
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 17844
Protect active update workspaces from startup cleanup.
Restart()launches a detached helper fromm_workspaceand then quits. A second launcher can callShowPreviousResult()while the helper is still waiting for the old launcher or installing the update. The cleanup can remove the helper's payload and workspace before it writes.kyty-update-result, which can abort the update.Add a lock or marker held for the full helper lifetime. Skip that workspace during startup cleanup.
@coderabbitai[bot] on GitHub · 2026-10-21 03:46 UTC · original · reviewed
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
b9569457-9a1e-417b-b39e-b1558c8fdbb7📥 Commits
Reviewing files that changed from the base of the PR and between
7b7f9a70c6andd6eb66520a.📒 Files selected for processing: 1
src/launcher/src/updateChecker.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.