docs: clarify offline mode scope and warn without -FakeUser #2159
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2167"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-25T02:33:12Z.
Change
Refs #2075 proposals (1) and (2).
docs/startup-runtime.mdRun section: offline mode applies to the title process only; Gaming Services outside the process can still service runtime calls and a signed-in Xbox/Store account. Recommend an account-free user/machine or the isolated VM; link the existing note that network activity is not fully blocked.tools/startup/run.ps1:Write-Warningwhen-FakeUseris not passed (user APIs then hit the host runtime).tests/startup_run_ps1_check.py: text check + negative mutant for the warning.Proposal (3) (allow-list /
X2W_RUNTIME_LOCAL) left for maintainer discussion.AI-assisted.
Verification
Evidence and follow-up
Docs + launcher warning only. No game files. Larger runtime allow-list remains for #2075 discussion.
Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T02:38:53Z.
Review: COMMENTED
Review of head
442a5d89456bcaee5f45ee0db4d81e4d89be3602(docs + launcher warning only).Verdict: no blockers. P1=0, P2=0, 2 nits.
CI at this head: Linux checks, gfx1013 fixtures and Windows build/test pass. Mergeable. Title and body are neutral. No game files.
Commands run locally in a worktree of this head:
git diff --stat origin/main...HEAD: 3 files, +37/-2python3 -B tests/startup_run_ps1_check.py --text-only:0 failedpython3 -B tests/startup_run_ps1_check.py:0 failed (text only: not a Windows host)python3 tests/docs_links_check.py:Checked 18 Markdown files and 403 links.Self-test passed.python3 tests/bidi_controls_check.py: no bidirectional controlsgit diff --check origin/main...HEAD: cleanWrite-Warningreplaced withWrite-Hostintools/startup/run.ps1. Result:FAIL text: missing Write-Warning when -FakeUser is not passed, 1 failed. Killed.if (-not $FakeUser)changed toif ($FakeUser). Result: same FAIL, 1 failed. Killed.git checkout -- ..Checked by reading:
#iterating-on-start-up-runsand#startup-memory-accountinganchors exist (docs/startup-runtime.md:594,:1726).docs/startup-runtime.md:1749.text_problemscheck also runs on Windows hosts that execute the script, and theno FakeUser warningmutant is correctly removed from the shell-executed mutants, because a run succeeds without the warning.Nits (not blocking):
tools/startup/run.ps1:50: the warning looks only at the-FakeUserswitch. IfX2W_FAKE_USER=1is already set in the caller's environment, the warning still fires. Considerif (-not $FakeUser -and $env:X2W_FAKE_USER -ne "1"), or leave it as is, since the launcher only sets the variable from the switch.tests/startup_run_ps1_check.py:FAKE_USER_WARNpins the full message prefix, so rewording the warning needs a test edit. This is acceptable, but a shorter anchor such asWrite-Warningplus-FakeUserwould make the test less brittle.Not run: Win2025 (
win2025). The change is docs plus a one-line warning, and CI Windows already passes.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T02:48:07Z.
Review: COMMENTED
Re-review of head
e894eed8(new commit on top of442a5d89: docs + launcher warning only).Verdict: no blockers. P1=0, P2=0. Previous nit 1 is resolved. Previous nit 2 is unchanged (optional).
Status of the earlier findings:
X2W_FAKE_USER=1was already set): RESOLVED.tools/startup/run.ps1:50is nowif (-not $FakeUser -and $env:X2W_FAKE_USER -ne "1"). The test regexFAKE_USER_WARNintests/startup_run_ps1_check.pywas updated to pin the new condition.State: PR is not Draft, mergeable. Title and body are neutral. CI at this head: Linux Python checks pass; gfx1013 fixtures and Windows build/test were still pending when I looked.
Commands run locally in a worktree of this head:
git diff --stat origin/main...HEAD: 3 files, +37/-2python3 -B tests/startup_run_ps1_check.py:0 failed (text only: not a Windows host)python3 tests/docs_links_check.py:Checked 18 Markdown files and 403 links.Self-test passed.python3 tests/bidi_controls_check.py: no bidirectional controlsgit diff --check origin/main...HEAD: clean-and $env:X2W_FAKE_USER -ne "1"from run.ps1. Result:FAIL text: missing Write-Warning when -FakeUser is not passed, 1 failed. Killed.Write-Warningchanged toWrite-Host. Result: same FAIL, 1 failed. Killed.git checkout -- .; worktree clean.Not run: Win2025. The change is docs plus one launcher warning line; the Windows CI job covers it once it finishes.
AI-assisted; commands listed were executed locally.