Minimize a private log console after startup #5011

Open
github-bot wants to merge 1 commit from github-bot/gh-5010 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 17:15 UTC · original
andrewpozdnakov7-jpg:codex2/fix/minimize-private-log-console → main · +32 −1 · 3 files · 1 commits · open

Refs #5003.

What it changes

victory.exe play --set VICTORY_MINIMIZE_CONSOLE=1 can minimize a private classic Windows log console after the first accepted present. This leaves startup output visible during preparation and keeps logging after the window is minimized. The window can still be opened from the taskbar.

The call is asynchronous and the console must belong to this process alone. A shared shell, a Windows Terminal pseudoconsole or a process with no console keeps its current window behavior. Microsoft's console API returns only a non-displayed handle for a pseudoconsole. Console window documentation

How it was tested

  • Windows cargo check --locked -p victory-gpu passed on 2be10963.
  • A focused Windows fixture compiled the exact present and window gates with stub Win32 calls. It requested one minimize on the first accepted present with an eligible console and no request for shared, mismatched, hidden or absent consoles, or when the switch was off. A failed or occluded initial present did not trigger it.
  • cargo xtask policy --staged passed. The patch combines cleanly with #4993.
  • The actual window and game run still need a classic-console check. Main's CI check has five existing Clippy errors tracked in #4708.

Checked for overlap

  • Searched for #5003, console minimization and open PRs touching the presenter. #4613 is about an in-game developer console. #3888 changes what happens when the fallback game window closes.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 17:15 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/5010) `andrewpozdnakov7-jpg:codex2/fix/minimize-private-log-console` → `main` · +32 −1 · 3 files · 1 commits · open Refs #5003. ## What it changes `victory.exe play --set VICTORY_MINIMIZE_CONSOLE=1` can minimize a private classic Windows log console after the first accepted present. This leaves startup output visible during preparation and keeps logging after the window is minimized. The window can still be opened from the taskbar. The call is asynchronous and the console must belong to this process alone. A shared shell, a Windows Terminal pseudoconsole or a process with no console keeps its current window behavior. Microsoft's console API returns only a non-displayed handle for a pseudoconsole. [Console window documentation](https://learn.microsoft.com/en-us/windows/console/getconsolewindow) ## How it was tested - Windows `cargo check --locked -p victory-gpu` passed on `2be10963`. - A focused Windows fixture compiled the exact present and window gates with stub Win32 calls. It requested one minimize on the first accepted present with an eligible console and no request for shared, mismatched, hidden or absent consoles, or when the switch was off. A failed or occluded initial present did not trigger it. - `cargo xtask policy --staged` passed. The patch combines cleanly with #4993. - The actual window and game run still need a classic-console check. Main's [CI check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46563306780/job/142355972539) has five existing Clippy errors tracked in #4708. ## Checked for overlap - [x] Searched for #5003, console minimization and open PRs touching the presenter. #4613 is about an in-game developer console. #3888 changes what happens when the fallback game window closes. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 17:19:14 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 18:39 UTC · original · edited 2026-12-01 18:46 UTC

The console hook applies locally to the current meter at 7724fb03. Windows cargo check --locked -p victory-gpu and the six focused console-routing scenarios passed. The staged asset check stopped on host.rs: that file is 1,064,517 bytes on main, already above the 1,048,576-byte limit. The local result is 1,065,663 bytes.

The tested update is pending the host file size fix. This PR's published head is still 2be10963.

#5065 moves the existing present queue into its own module and brings the source file below the limit. Its Windows crate check and staged asset check passed.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 18:39 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/5010#issuecomment-7321298219) · edited 2026-12-01 18:46 UTC The console hook applies locally to the current meter at `7724fb03`. Windows `cargo check --locked -p victory-gpu` and the six focused console-routing scenarios passed. The staged asset check stopped on `host.rs`: that file is 1,064,517 bytes on main, already above the 1,048,576-byte limit. The local result is 1,065,663 bytes. The tested update is pending the host file size fix. This PR's published head is still `2be10963`. #5065 moves the existing present queue into its own module and brings the source file below the limit. Its Windows crate check and staged asset check passed.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/5011/head:github-bot/gh-5010'
git switch 'github-bot/gh-5010'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-5010'
git switch 'github-bot/gh-5010'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-5010'
git switch 'github-bot/gh-5010'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-5010'
git switch 'main'
git merge --squash 'github-bot/gh-5010'
git switch 'main'
git merge --ff-only 'github-bot/gh-5010'
git switch 'main'
git merge 'github-bot/gh-5010'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
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
github/trustno1-coder--VIctory-NVIDIA!5011
No description provided.