GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(windows): classify localized scheduler denial (#591) by Ingwannu · Pull Request #698 · lidge-jun/opencodex Conversation
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughWindows Task Scheduler elevation detection now uses a locale-independent token probe. Access-denied recovery is restricted to the owned ChangesWindows elevation and Task Scheduler recovery
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant schtasks.exe
participant isWindowsSchtasksAccessDeniedError
participant isCurrentWindowsProcessElevated
participant toWindowsSchtasksError
schtasks.exe->>isWindowsSchtasksAccessDeniedError: Return scheduler status and stderr
isWindowsSchtasksAccessDeniedError->>isCurrentWindowsProcessElevated: Check current process elevation
isCurrentWindowsProcessElevated-->>isWindowsSchtasksAccessDeniedError: Return elevated, non-elevated, or unknown
isWindowsSchtasksAccessDeniedError->>toWindowsSchtasksError: Classify as access-denied or other
Possibly related issues
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs-site/src/content/docs/reference/cli.md`:
- Around line 442-446: Qualify the direct non-elevated Windows install guidance
in docs-site/src/content/docs/reference/cli.md:442-446 so UAC recovery and
language-independent guidance apply only when the owned opencodex-proxy command
and a confirmed non-elevated token are detected; otherwise state that the
original scheduler error is retained. Apply the equivalent translated
clarification in docs-site/src/content/docs/ja/reference/cli.md:363-367,
docs-site/src/content/docs/ko/reference/cli.md:382-386,
docs-site/src/content/docs/ru/reference/cli.md:404-408, and
docs-site/src/content/docs/zh-cn/reference/cli.md:366-369.
In `@src/lib/windows-elevation.ts`:
- Around line 322-326: Update isWindowsSchtasksAccessDeniedError so the
recognized-text branch also requires isOwnedSchedulerCreate(args) before
returning true; retain the scheduler-exit-status and elevation checks for owned
tasks. Preserve generic access-denied text for non-retry user-facing formatting,
and add a regression test covering a foreign /create command targeting
someone-elses-task with “Access is denied.”.
- Around line 49-54: Update the IsUserAnAdmin declaration and wrapper in the
Windows elevation binding: change its FFI return type from "bool" to "i32", and
have isUserAnAdminFn return whether lib.symbols.IsUserAnAdmin() is nonzero.
In `@tests/windows-elevation.test.ts`:
- Around line 107-139: Extend the locale-independent fallback test around
toWindowsSchtasksError with a confirmed-elevated probe case:
setWindowsElevationProbeForTests(() => true), invoke the owned /create
opencodex-proxy command, and assert reason is "other". Reset the probe to null
in a finally block, matching the existing false and null cases.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 64e18d80-28e2-4207-9fd7-44155c0706cb
docs-site/src/content/docs/ja/reference/cli.mddocs-site/src/content/docs/ko/reference/cli.mddocs-site/src/content/docs/reference/cli.mddocs-site/src/content/docs/ru/reference/cli.mddocs-site/src/content/docs/zh-cn/reference/cli.mdsrc/lib/windows-elevation.tsstructure/05_gui-and-management-api.mdtests/windows-elevation.test.ts
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs-site/src/content/docs/reference/cli.md`:
- Around line 442-447: Clarify the documentation so fail-closed behavior for an
unavailable elevation probe applies only to the status-1, unrecognized-text
fallback; preserve the existing localized access-denied text-detection path.
Make this correction in docs-site/src/content/docs/reference/cli.md lines
442-447, docs-site/src/content/docs/ja/reference/cli.md lines 363-368,
docs-site/src/content/docs/ko/reference/cli.md lines 382-386,
docs-site/src/content/docs/ru/reference/cli.md lines 404-409, and
docs-site/src/content/docs/zh-cn/reference/cli.md lines 366-370.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 4b71431c-b352-41a6-9420-b48084264bdb
docs-site/src/content/docs/ja/reference/cli.mddocs-site/src/content/docs/ko/reference/cli.mddocs-site/src/content/docs/reference/cli.mddocs-site/src/content/docs/ru/reference/cli.mddocs-site/src/content/docs/zh-cn/reference/cli.mdsrc/lib/windows-elevation.tstests/windows-elevation.test.ts
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
All automated checks are now green, including the 10m45s I am not self-approving or self-merging this UAC-boundary change. After approval, the merger must also satisfy the documented |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs-site/src/content/docs/reference/cli.md`:
- Around line 442-448: Update the UAC-recovery documentation in
docs-site/src/content/docs/reference/cli.md lines 442-448 to state that the
fixed task-create command requires the exact /create command, expected XML path,
and /f checks, in addition to the owned task name, exit status 1, and confirmed
non-elevated token. Translate and apply the same complete predicate in
docs-site/src/content/docs/ja/reference/cli.md lines 363-370,
docs-site/src/content/docs/ko/reference/cli.md lines 382-388,
docs-site/src/content/docs/ru/reference/cli.md lines 404-411, and
docs-site/src/content/docs/zh-cn/reference/cli.md lines 366-371, keeping all
locale guidance aligned with the CLI behavior.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 55f0e29c-d7a7-4cc7-8db8-efe69e7ca937
docs-site/src/content/docs/ja/reference/cli.mddocs-site/src/content/docs/ko/reference/cli.mddocs-site/src/content/docs/reference/cli.mddocs-site/src/content/docs/ru/reference/cli.mddocs-site/src/content/docs/zh-cn/reference/cli.md
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
CI update: the docs clarification run had one unrelated Windows timeout in the existing I reran the failed Actions run without changing code. The Windows full runtime |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Created the required |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…ion hardening, Windows scheduler fixes Promotes dev to main for the v2.7.43 quick-fix release: - fix(gui): renew loopback dashboard sessions silently instead of prompting - PR #705 + follow-up: Claude effort restoration boundary hardening - PRs #694/#698/#699 and Windows scheduler compare/denial fixes
…ion hardening, Windows scheduler fixes Promotes dev to main for the v2.7.43 quick-fix release: - fix(gui): renew loopback dashboard sessions silently instead of prompting - PR lidge-jun#705 + follow-up: Claude effort restoration boundary hardening - PRs lidge-jun#694/lidge-jun#698/lidge-jun#699 and Windows scheduler compare/denial fixes
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.