Repository navigation
Fix checked stop on localized Windows Task Scheduler states - #9041
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Review readiness checklist
0/4 boxes ticked. Automatic draft conversion failed. Please convert this pull request to a draft manually until every box above is ticked. Hygiene✅ Deterministic PR hygiene checks passed. |
Ingwannu
left a comment
There was a problem hiding this comment.
The French-host timing and successful install are useful evidence for the numeric TASK_STATE fallback. This head also changes src/service/windows-process-evidence.ts and src/service/windows-process-native.ts to supply process ownership evidence. That is a different contract, overlaps the work already under review in #9027, and is outside the verification in this PR description. Could you keep #9041 focused on the task-state fallback and move any remaining ownership differences to the #9027 discussion? Please keep the failed or timed-out lookup cases inconclusive and update the old Get-ScheduledTask fallback description in windows-checked-stop-live.ts alongside the change.
# Conflicts: # src/service/windows-process-evidence.ts # src/service/windows-process-native.ts
Revert the snapshot-owner fallback in windows-process-evidence.ts and windows-process-native.ts to dev: lidge-jun#9027 carries the native ownership proof for a missing CIM owner sample, and two fallbacks for the same evidence would disagree. Document the Schedule.Service TASK_STATE fallback for unrecognized locales.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Maintainer integration (lane W, @lidge-jun) at exact head Changes I added after the author's head
Relaxed merge gate, checked against
Evidence:
|
Summary
On French Windows, schtasks reports Prêt for a ready task. The existing PowerShell fallback took about 1.5 seconds on the affected machine, beyond the one-second state budget, and service installation rolled back. Read the numeric TASK_STATE through Schedule.Service when the CSV fast path cannot classify the result. Queued and running remain active. Failed, timed-out and unknown reads remain inconclusive.
Verification
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
Required local validation passed; commands, results, and any full-suite exception are documented.
I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit