Skip to content

fix(privacy): use locale-independent XML to detect scheduled task state#79

Merged
dbfx merged 2 commits intomainfrom
fix/privacy-task-toggle-locale
Mar 26, 2026
Merged

fix(privacy): use locale-independent XML to detect scheduled task state#79
dbfx merged 2 commits intomainfrom
fix/privacy-task-toggle-locale

Conversation

@dbfx
Copy link
Contributor

@dbfx dbfx commented Mar 26, 2026

Summary

  • Fixes Privacy / Scheduled Tasks: impossible to enable or disable the options #77 — Privacy / Scheduled Tasks toggles were broken on non-English Windows
  • isTaskActive() parsed schtasks /fo CSV output for the English word "disabled", which fails on localized Windows (e.g. French returns "Désactivé", German returns "Deaktiviert")
  • Switched to schtasks /query /xml format — the <Enabled> element always uses language-independent true/false values regardless of system locale

Test plan

  • Updated mock data in existing tests to use XML format
  • All 1891 tests pass (76 in privacy-shield suite)
  • Verify on non-English Windows that scheduled task toggles now correctly reflect and change state

🤖 Generated with Claude Code

…te (#77)

isTaskActive() parsed schtasks CSV output for the English word "disabled",
which fails on non-English Windows where status is localized (e.g.
"Désactivé" in French). Switch to /xml output format whose <Enabled>
element always uses language-independent "true"/"false" values.

Closes #77

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 90e4f1a2e9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…dge-case test

The previous regex matched any <Enabled>false</Enabled> in the XML,
which could false-positive on trigger-level <Enabled> elements. Now
matches only <Settings><Enabled> specifically.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dbfx dbfx merged commit 5261780 into main Mar 26, 2026
8 checks passed
@dbfx dbfx deleted the fix/privacy-task-toggle-locale branch March 26, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Privacy / Scheduled Tasks: impossible to enable or disable the options

1 participant