-
Notifications
You must be signed in to change notification settings - Fork 1
fix: MSIX/Store path detection + remove transcriptUnavailable on repair #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
f00a3fb
2ad6c04
9c570e7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,8 +62,23 @@ def _default_paths(): | |
| os.path.expanduser("~/.config/Claude"), | ||
| os.path.expanduser("~/.claude/projects"), | ||
| ) | ||
| _appdata_claude = os.path.join( | ||
| os.environ.get("APPDATA", os.path.expanduser("~")), "Claude" | ||
| ) | ||
| if not os.path.isdir(_appdata_claude): | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This guard only checks whether Useful? React with 👍 / 👎. |
||
| _local = os.environ.get("LOCALAPPDATA", "") | ||
| _pkgs = os.path.join(_local, "Packages") | ||
| if os.path.isdir(_pkgs): | ||
| for _pkg in sorted(os.listdir(_pkgs)): | ||
| if _pkg.startswith("Claude_"): | ||
| _cand = os.path.join( | ||
| _pkgs, _pkg, "LocalCache", "Roaming", "Claude" | ||
| ) | ||
| if os.path.isdir(_cand): | ||
| _appdata_claude = _cand | ||
| break | ||
| return ( | ||
| os.path.join(os.environ.get("APPDATA", os.path.expanduser("~")), "Claude"), | ||
| _appdata_claude, | ||
| os.path.join(os.path.expanduser("~"), ".claude", "projects"), | ||
| ) | ||
|
|
||
|
|
@@ -408,6 +423,7 @@ def main(): | |
| shutil.copy2(path, os.path.join(BACKUP_DIR, fname)) | ||
| repaired_meta = dict(meta) | ||
| repaired_meta["cliSessionId"] = cli_match | ||
| repaired_meta.pop("transcriptUnavailable", None) | ||
| with open(path, "w", encoding="utf-8") as fh: | ||
| json.dump(repaired_meta, fh, indent=2) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When this new Store fallback makes MSIX metadata visible,
desktop_runningis still computed by_detect_desktop_running(), which treats a runningclaude.exeas Desktop only when its executable path containsAnthropicClaude; an MSIX install under theClaude_*package path won't match that check. In that Store-install context,diagnose.pycan now emit runnable mutator commands without theQUIT DESKTOP FIRSTwarning even while Desktop is open, violating the repo's safety boundary and risking Desktop overwriting the repair on its next flush.Useful? React with 👍 / 👎.