[PR #668] [MERGED] docs/boot.md: the Windows PowerShell 5.1 capture survives ErrorActionPreference Stop (PROC-271) (OLD-9939) #708

Closed
opened 2026-11-26 20:18:47 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/668
Author: @LouisRiverstone
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism

Base: main ← Head: carry-old-9939


📝 Commits (1)

  • 4d470fd docs/boot.md: the Windows PowerShell 5.1 capture survives ErrorActionPreference Stop (PROC-271)

📊 Changes

1 file changed (+9 additions, -1 deletions)

View changed files

📝 docs/boot.md (+9 -1)

📄 Description

Claimed in the coordination issue as: OLD-9939 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7129925439)

Replaces the carried-over draft #206. I'm the original author of old upstream PR 9939.

What and why

PROC-271. If the session, a profile or a script has set $ErrorActionPreference = 'Stop', Windows PowerShell 5.1 turns the first stderr line of the gta6rt.exe --run ... 2>&1 | ... capture in docs/boot.md into a terminating error. The run stops there, and the log has no [d3d12-trace] line, so it reads as a run that made no D3D12 call. The command now runs inside & { $ErrorActionPreference = 'Continue'; ... }, which is the same pattern scripts/first_look.ps1 uses for its dry run, and the doc explains why the wrapper is there.

The old branch's final diff, applied on current main (21625bca8) as one commit. It applied cleanly.

Tested

Measured with a stand-in on Windows PowerShell 5.1.26100. The stand-in printed three trace lines to stderr and exited with code 37.

  • Without the block: three lines captured with Continue, none with Stop.
  • With the block: three lines captured with either setting, $LASTEXITCODE was 37, and the session's preference was unchanged afterwards.

Documentation only.

GPUs tested: n/a

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: documentation only)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/668 **Author:** [@LouisRiverstone](https://github.com/LouisRiverstone) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Base:** `main` ← **Head:** `carry-old-9939` --- ### 📝 Commits (1) - [`4d470fd`](https://github.com/ubiquitarianism/leonida/commit/4d470fd69b8fd415261b8283bc3bf31424d8bda5) docs/boot.md: the Windows PowerShell 5.1 capture survives ErrorActionPreference Stop (PROC-271) ### 📊 Changes **1 file changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/boot.md` (+9 -1) </details> ### 📄 Description Claimed in the coordination issue as: OLD-9939 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7129925439) Replaces the carried-over draft #206. I'm the original author of old upstream PR 9939. ### What and why PROC-271. If the session, a profile or a script has set `$ErrorActionPreference = 'Stop'`, Windows PowerShell 5.1 turns the first stderr line of the `gta6rt.exe --run ... 2>&1 | ...` capture in `docs/boot.md` into a terminating error. The run stops there, and the log has no `[d3d12-trace]` line, so it reads as a run that made no D3D12 call. The command now runs inside `& { $ErrorActionPreference = 'Continue'; ... }`, which is the same pattern `scripts/first_look.ps1` uses for its dry run, and the doc explains why the wrapper is there. The old branch's final diff, applied on current `main` (21625bca8) as one commit. It applied cleanly. ### Tested Measured with a stand-in on Windows PowerShell 5.1.26100. The stand-in printed three trace lines to stderr and exited with code 37. - Without the block: three lines captured with `Continue`, none with `Stop`. - With the block: three lines captured with either setting, `$LASTEXITCODE` was 37, and the session's preference was unchanged afterwards. Documentation only. GPUs tested: n/a AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: documentation only) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:47 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#708
No description provided.