Repository navigation
fix: preserve managed GitHub exec on packaged Windows - #201712
Merged
RomneyDa merged 4 commits intoNov 23, 2026
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
bkudiess
marked this pull request as ready for review
November 19, 2026 08:09
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
obviyus
added a commit
that referenced
this pull request
Nov 24, 2026
…204315) ## Result `test/scripts/installed-terminal-observer.test.ts` "qualifies only successful package-owned pre-handoff Node entries (historical=false)" passes again. The upgrade-survivor observer recognizes the daemon runtime probe that current builds launch. ## Cause #201712 (`6af45b657fdb`, "preserve managed GitHub exec on packaged Windows") regenerated `src/infra/daemon-runtime-probe.generated.mjs` through its owning generator. The probe source hash changed from `a33dc774…` to `747c79c4…`. The observer accepts only reviewed probe bytes (`currentProbeSha256` in `scripts/e2e/lib/upgrade-survivor/installed-terminal-observer.mjs`), and the test pins the same hash. Neither was updated. The probe change is deliberate: it is a generator output, not a hand edit. This PR updates both pins, the same way #203415, #200980 and #200530 did. ## Evidence - `DAEMON_RUNTIME_PROBE_SOURCE` hash: `a33dc774…` at `6af45b657fdb^`; `747c79c4…` at `6af45b657fdb` and on current `main`. - Scheduled run 45288712101 (small-30): `expected '747c79c4…' to be 'a33dc774…'`. The same failure reproduces locally on `main`. - Head: `installed-terminal-observer.test.ts` 23 passed, 7 skipped. CI green on the head; local ClawSweeper: patch is correct, no findings. Co-authored-by: Ayaan Zaidi <[email protected]>
tideclaw-bot
pushed a commit
that referenced
this pull request
Nov 24, 2026
* fix: preserve managed GitHub exec on packaged Windows Co-authored-by: Copilot App <[email protected]> * test: normalize managed GitHub PTY diagnostic line endings * test: include managed GitHub launcher in Windows CI --------- Co-authored-by: Copilot App <[email protected]> Co-authored-by: Dallin Romney <[email protected]> (cherry picked from commit 6af45b6) Release adaptation: preserve the release Windows CI shard list and add only the managed GitHub launcher suite; regenerate the runtime scripts and use the repository env-count collector (463, from 461). Carry 665c286 (#204315) as the two observer/test pins using the release-generated probe hash. cb77c4f was carried in the earlier macOS pick. 75cab7d is not applicable: it only removes an unrelated ratchet from package.json. The external Windows packaging launcher remains the native-redirect producer. Co-authored-by: RomneyDa <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 24, 2026
* fix: preserve managed GitHub exec on packaged Windows Co-authored-by: Copilot App <[email protected]> * test: normalize managed GitHub PTY diagnostic line endings * test: include managed GitHub launcher in Windows CI --------- Co-authored-by: Copilot App <[email protected]> Co-authored-by: Dallin Romney <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 24, 2026
…01712 (openclaw#204315) ## Result `test/scripts/installed-terminal-observer.test.ts` "qualifies only successful package-owned pre-handoff Node entries (historical=false)" passes again. The upgrade-survivor observer recognizes the daemon runtime probe that current builds launch. ## Cause openclaw#201712 (`9c832cceeee5`, "preserve managed GitHub exec on packaged Windows") regenerated `src/infra/daemon-runtime-probe.generated.mjs` through its owning generator. The probe source hash changed from `a33dc774…` to `747c79c4…`. The observer accepts only reviewed probe bytes (`currentProbeSha256` in `scripts/e2e/lib/upgrade-survivor/installed-terminal-observer.mjs`), and the test pins the same hash. Neither was updated. The probe change is deliberate: it is a generator output, not a hand edit. This PR updates both pins, the same way openclaw#203415, openclaw#200980 and openclaw#200530 did. ## Evidence - `DAEMON_RUNTIME_PROBE_SOURCE` hash: `a33dc774…` at `9c832cceeee5^`; `747c79c4…` at `9c832cceeee5` and on current `main`. - Scheduled run 45288712101 (small-30): `expected '747c79c4…' to be 'a33dc774…'`. The same failure reproduces locally on `main`. - Head: `installed-terminal-observer.test.ts` 23 passed, 7 skipped. CI green on the head; local ClawSweeper: patch is correct, no findings. Co-authored-by: Ayaan Zaidi <[email protected]>
tideclaw-bot
pushed a commit
that referenced
this pull request
Nov 24, 2026
…204315) ## Result `test/scripts/installed-terminal-observer.test.ts` "qualifies only successful package-owned pre-handoff Node entries (historical=false)" passes again. The upgrade-survivor observer recognizes the daemon runtime probe that current builds launch. ## Cause #201712 (`6af45b657fdb`, "preserve managed GitHub exec on packaged Windows") regenerated `src/infra/daemon-runtime-probe.generated.mjs` through its owning generator. The probe source hash changed from `a33dc774…` to `747c79c4…`. The observer accepts only reviewed probe bytes (`currentProbeSha256` in `scripts/e2e/lib/upgrade-survivor/installed-terminal-observer.mjs`), and the test pins the same hash. Neither was updated. The probe change is deliberate: it is a generator output, not a hand edit. This PR updates both pins, the same way #203415, #200980 and #200530 did. ## Evidence - `DAEMON_RUNTIME_PROBE_SOURCE` hash: `a33dc774…` at `6af45b657fdb^`; `747c79c4…` at `6af45b657fdb` and on current `main`. - Scheduled run 45288712101 (small-30): `expected '747c79c4…' to be 'a33dc774…'`. The same failure reproduces locally on `main`. - Head: `installed-terminal-observer.test.ts` 23 passed, 7 skipped. CI green on the head; local ClawSweeper: patch is correct, no findings. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 665c286) Co-authored-by: RomneyDa <[email protected]>
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #197437
What Problem This Solves
On packaged Windows installs, managed GitHub exec can refuse to run even after GitHub Identity is connected. The credential reader starts without the native dependency redirect already used by the Gateway.
User Impact
The private credential reader reuses the package's known startup redirect without changing the requested command's environment. Missing or malformed profiles still refuse execution. No new user configuration is required.
Why This Change Was Made
The resolver forwards only the package preload identified by the Gateway's startup arguments and verified against the package layout. It pins the two native redirect roots only for the credential child. Request environment overrides cannot supply those roots or arbitrary startup hooks. Failure diagnostics use fixed stage codes without credential data.
The environment-variable budget increases from current main's 464 to 466 for
OPENCLAW_NATIVE_APP_ROOTandOPENCLAW_NATIVE_STAGED_ROOT. This preserves the two-name increase already reported as owner-approved by the contributor; no formal GitHub review approval is claimed.Evidence
Real installed-package credential-reader comparison — Parallels ARM64
On Windows 11 Pro Dev build 26300, installed the signed ARM64 release
v2026.11.10-beta.1-msix.0and successfully ranclawctl setup. Ran baseline/candidate launch builders throughclawctl pwshunder the package's isolated agent identity, using its provisioned Node 24.22.1, real immutable installed credential reader, vendor preload, and staged dependency roots. The reader was not mocked; only the token contents were synthetic.ff4a6c70d6b42: both-Commandand-EncodedCommandrefused with the credential-unavailable diagnostic and empty stdout.25dc64eac1978: both forms ran the requested command, read the selected profile, preserved conflicting request root values, and cleared competing inherited GitHub token variables. Valid-case wall times: 2.830s and 2.342s.hosts.ymland a regular file instead of a profile directory both refused, through both PowerShell forms. All six candidate assertions passed. Synthetic fixture profiles were removed afterward.OpenClaw.Gateway_2026.11.999.10_arm64__kaa03rpbbqef6, not a development registration. Packaging commit4f6903c877b96dd707f0a996867f4fabc0a56c1d; installed payload commit995f9059b6e6fe3ba0865a3354924fd2bcbfceea.ERR_DLOPEN_FAILEDfor its ARM64 native addon and succeeds through its supported .NET-helper fallback; native-addon loading is not claimed fixed. The installed reader remains the signed release, so candidate reader-stage diagnostics are not covered by this native run.Conflict repair and review
Merged main
36bc0460f4200infcfdcd4a2c887. Resolved the budget conflict by retaining both main's launcher names and this PR's native-root names; regenerated both conflicting script bundles with their owner generator. The CLI bootstrap, launch builder, and credential-reader source are unchanged from the Parallels proof inputs.Local ClawSweeper completed review of
36bc0460f4200..fcfdcd4a2c887: no blocking production-code or security finding. It identified a P3 Windows-test routing gap, addressed indaadf5a94c37aby adding the launcher regression suite to the explicit Windows CI inventory. Its missing-package-proof note did not include the separate installed-reader run documented above. No second hosted review is claimed.Focused checks
node scripts/run-vitest.mjs src/agents/github-exec-launch.test.ts src/agents/bash-tools.exec-github-credential.test.ts src/infra/openclaw-cli-invocation.test.ts --maxWorkers=1— 36 passed, 11 intentional Windows-only skips, 48.72s outer runner time.pnpm tsgo:core— passed.pnpm runtime:scripts:genandpnpm runtime:scripts:check— passed.git diff origin/main --check— passed.pnpm build:runtime— passed before main integration, 1m45s. This is prior-input build evidence, not a new-head build claim; current-head CI remains authoritative.The previous head's CI gate passed. Current-head CI is pending after the conflict-repair push; no merge-readiness claim is based on the old green run.