feat: detect MSIX-virtualized Claude config path + warn (#7)
CI / Lint (ruff) (pull_request) Successful in 7s
CI / Tests (py3.10) (pull_request) Successful in 8s
CI / Tests (py3.12) (pull_request) Successful in 8s

This commit is contained in:
Cowork Supervisor
2026-07-08 11:51:23 -04:00
parent 4c6fe7c5aa
commit 8c456c9a89
3 changed files with 264 additions and 0 deletions
+16
View File
@@ -1679,6 +1679,22 @@ class MainWindow(QMainWindow):
self.load_profile(self.profiles[0])
else:
self.status.setText('No Claude installs found. Use "Add config…" to point at one.')
self._maybe_warn_msix()
def _maybe_warn_msix(self):
"""
Windows-only, no-op everywhere else: if Claude Desktop looks like an
MSIX/Store install with a virtualized config, append a warning to the
status bar so edits to the plain %APPDATA% path aren't silently lost.
Defensive on purpose -- this must never block startup or profile load.
"""
try:
warning = core.msix_warning_text()
except Exception:
return
if warning:
self.status.setText(f"{self.status.text()}{warning}")
self.status.setToolTip(warning)
def add_custom_config(self):
start = str(core.app_support_base())