fix: add Reset Harness Data recovery option for startup failures - #81
Open
yaojin3616 wants to merge 1 commit into
Open
fix: add Reset Harness Data recovery option for startup failures#81yaojin3616 wants to merge 1 commit into
yaojin3616 wants to merge 1 commit into
Conversation
When the Harness process fails to start due to corrupted state, users currently have to manually delete the Application Support folder to recover. This change adds a 'Reset Data' button to the startup failure dialog that: - Backs up the current harness directory with a timestamp - Creates a fresh harness directory - Automatically retries startup This gives users a discoverable way to recover from corrupted state without needing to know where the application data is stored on disk. Closes #68
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.
Problem
When Harness state becomes corrupted (e.g., after an update or crash), the app fails to start. Users currently have to manually find and delete the
~/Library/Application Support/dsh-desktopfolder to recover, which is not discoverable.Solution
Add a Reset Data button to the Harness startup failure dialog that:
harness/directory with a timestamp (e.g.,harness-backup-2026-08-18T09-...)This gives users a self-service recovery option directly in the app, without needing to know where application data is stored on disk. The backup preserves user data in case they need to recover anything.
Changes
resetHarnessData()function that renames the harness home to a timestamped backup and recreates itCloses #68