fix(daemon): query Windows task runtime directly#51486
fix(daemon): query Windows task runtime directly#51486wangji0923 wants to merge 1 commit intoopenclaw:mainfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 69a6a226d2
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Greptile SummaryThis PR fixes #49187 by removing the unnecessary global Key changes:
One minor robustness note: the removed Confidence Score: 5/5
|
f62277c to
87009a1
Compare
|
Refreshed this PR onto the current The runtime path still needs the original fix on main:
Re-verified with focused checks:
|
Summary
schtasks /Querypreflight fromreadScheduledTaskRuntime()so Windows status reads go straight to the task-scoped/Query /TN ... /V /FO LISTlookupLinked Issue
Repro + Verification
corepack pnpm test -- src/daemon/schtasks.test.ts src/daemon/schtasks.startup-fallback.test.ts src/daemon/inspect.test.tscorepack pnpm exec oxfmt --check src/daemon/schtasks.ts src/daemon/schtasks.startup-fallback.test.tsHuman Verification
Review Conversations
Risks and Mitigations
assertSchtasksAvailable()preflight.schtasks /Querypath when the task-scoped query is the only data this code path needs.pnpm checkdid not finish within the local timeout window, andnode scripts/tsdown-build.mjshit a Rolldown panic in this environment rather than a repo-specific TypeScript/build error.