feat(steam): the tile uses the banner the game folder carries, when it has one #377

Merged
HumanBean merged 11 commits from omgitsgela/LongshotLauncher:feat/game-folder-hero into main 2026-12-02 15:08:43 +00:00
Member

Summary

The game's own frame should be on its details page. The builder now makes it (Longshot #2353): when the player's own dump has the staff-credit movie, the finish decodes one pinned frame, draws Longshot's mark on it, and writes longshot_hero.png (1920x620) beside the game's executable. This is the launcher half that was missing: artwork() wrote its four generated slots and never looked at the game folder, so the picture could not reach Steam.

When the game folder carries a whole 1920x620 PNG of that name, the launcher now:

  • writes those bytes as the Steam hero for the shortcut (both stems, exactly as the slot is written today);
  • skips its generated _logo beside it, because the banner already carries the mark;
  • retires the hero and logo art it wrote itself first, and only when the bytes are exactly its own, so an install from before this change is upgraded instead of keeping the generated hero forever. A file the player or Steam put there is never touched, and a slot that is held stays held.

Without such a file, nothing changes: the four generated slots are written as before. No game-derived image ships in this repository; the composed banner stays in the player's own game folder.

Testing

Tested: Linux, this PC, x86_64.

  • cargo test --locked at head c9b3bf6: 287 passed, 0 failed, 1 ignored. The banner decision has its own module, game::steam::hero_art, with six named cases: the_game_folders_banner_takes_the_hero_slot_and_the_logo_goes, a_heros_own_art_keeps_its_slot_and_the_logo_stays, without_a_banner_the_slots_are_written_as_before, whole_hero_is_a_complete_png_of_the_heros_own_size (it decodes, and refuses a truncated file, a wrong size and a non-PNG), an_upgrade_retires_the_art_the_released_launcher_shipped and an_upgrade_from_the_rust_port_release_is_retired_too (both plant a whole 1920x620 banner that is nobody's shipped artwork in the game folder and the launcher's own older art in the grid, then require the banner to take the hero slot and the old logo to go).
  • The launcher's own CI tier, scripts/ci-test.sh --longshot <the commit tests/longshot.refpins,7015105c…>`: green, the 287 plus the contract checks against that builder commit.
  • cargo fmt --check: clean; cargo clippy --all-targets -- -D warnings: clean (this PC is Rust 1.100.0; the launcher pins 1.99.1).
  • The branch sits one commit behind main and the forge calls it mergeable; the shortcut path it rides on is the current one.
  • The artwork path itself is exercised by the launcher's existing tests; the new decision is a pure function over the game folder's file and the grid's bytes.

Still to test: the end-to-end on a machine with a real build and the player's own banner: build with the dump, let the launcher refresh the shortcut, and see the tile. That needs the Longshot builder release that carries #2353; the file the launcher reads is the one it writes.

Risks

Contained: the launcher only reads one optional file in the game folder, and only ever deletes grid art whose bytes are identical to its own generated ones. Steam's own art, the player's own art and held slots are untouched. A revert is enough.

Checklist

  • One topic, on current main; the title is a Conventional Commit.
  • Tested as Testing says.
  • cargo test, clippy and fmt as above.
  • No game files, build output or hand-edited generated files.
  • Docs updated where they name the artwork slots (docs/ mentions the generated art; the new rule is in the function's comment and this description).
  • AI assistance recorded with Assisted-by: trailers.

How the banner is requested

When Add to Steam adds or updates a tile, the launcher first checks the builder program's own file for the word steam-art (reading the file, never running an old builder that could mistake the word for game arguments). If the word is there, it runs steam-art --game <the profile's build folder> with a 20 second cap and ignores any failure. The builder writes longshot_hero.png beside the executable when the player's dump can make one; the launcher then installs that banner as the hero. If the builder is older, fails, or makes nothing, the generated artwork is written exactly as before.

## Summary The game's own frame should be on its details page. The builder now makes it (Longshot #2353): when the player's own dump has the staff-credit movie, the finish decodes one pinned frame, draws Longshot's mark on it, and writes `longshot_hero.png` (1920x620) beside the game's executable. This is the launcher half that was missing: `artwork()` wrote its four generated slots and never looked at the game folder, so the picture could not reach Steam. When the game folder carries a **whole** 1920x620 PNG of that name, the launcher now: - writes those bytes as the Steam hero for the shortcut (both stems, exactly as the slot is written today); - skips its generated `_logo` beside it, because the banner already carries the mark; - retires the hero and logo art **it wrote itself** first, and only when the bytes are exactly its own, so an install from before this change is upgraded instead of keeping the generated hero forever. A file the player or Steam put there is never touched, and a slot that is held stays held. Without such a file, nothing changes: the four generated slots are written as before. No game-derived image ships in this repository; the composed banner stays in the player's own game folder. ## Testing **Tested:** Linux, this PC, x86_64. - `cargo test --locked` at head `c9b3bf6`: **287 passed, 0 failed, 1 ignored**. The banner decision has its own module, `game::steam::hero_art`, with six named cases: `the_game_folders_banner_takes_the_hero_slot_and_the_logo_goes`, `a_heros_own_art_keeps_its_slot_and_the_logo_stays`, `without_a_banner_the_slots_are_written_as_before`, `whole_hero_is_a_complete_png_of_the_heros_own_size` (it decodes, and refuses a truncated file, a wrong size and a non-PNG), `an_upgrade_retires_the_art_the_released_launcher_shipped` and `an_upgrade_from_the_rust_port_release_is_retired_too` (both plant a whole 1920x620 banner that is nobody's shipped artwork in the game folder and the launcher's own older art in the grid, then require the banner to take the hero slot and the old logo to go). - The launcher's own CI tier, `scripts/ci-test.sh --longshot <the commit `tests/longshot.ref` pins, `7015105c…>`: green, the 287 plus the contract checks against that builder commit. - `cargo fmt --check`: clean; `cargo clippy --all-targets -- -D warnings`: clean (this PC is Rust 1.100.0; the launcher pins 1.99.1). - The branch sits one commit behind `main` and the forge calls it mergeable; the shortcut path it rides on is the current one. - The artwork path itself is exercised by the launcher's existing tests; the new decision is a pure function over the game folder's file and the grid's bytes. **Still to test:** the end-to-end on a machine with a real build and the player's own banner: build with the dump, let the launcher refresh the shortcut, and see the tile. That needs the Longshot builder release that carries #2353; the file the launcher reads is the one it writes. ## Risks Contained: the launcher only reads one optional file in the game folder, and only ever deletes grid art whose bytes are identical to its own generated ones. Steam's own art, the player's own art and held slots are untouched. A revert is enough. ## Checklist - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested as Testing says. - [x] `cargo test`, clippy and fmt as above. - [x] No game files, build output or hand-edited generated files. - [x] Docs updated where they name the artwork slots (`docs/` mentions the generated art; the new rule is in the function's comment and this description). - [x] AI assistance recorded with `Assisted-by:` trailers. ### How the banner is requested When Add to Steam adds or updates a tile, the launcher first checks the builder program's own file for the word `steam-art` (reading the file, never running an old builder that could mistake the word for game arguments). If the word is there, it runs `steam-art --game <the profile's build folder>` with a 20 second cap and ignores any failure. The builder writes `longshot_hero.png` beside the executable when the player's dump can make one; the launcher then installs that banner as the hero. If the builder is older, fails, or makes nothing, the generated artwork is written exactly as before.
fix(artwork): the gold line under LONGSHOT leaves the generated capsules
Some checks failed
CI / What the change needs (pull_request) Successful in 6s
PR title / Conventional Commit title (pull_request) Successful in 7s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 11s
CI / Rust formatting, lint and tests (pull_request) Successful in 9m6s
CI / Release packages and stable upgrades (pull_request) Failing after 1h0m2s
181d0ba832
Review had the accent line under the wording out of the game's artwork.
make_artwork.py no longer draws the flourish (the rule, its two mirrored
curls and the centre diamond) on any of the four slots: the composition is
now the glyph over the word only, and the four committed slot files are
regenerated from the unchanged src_ originals (deterministic as before, the
second run byte-identical). README-artwork.md says why, so it does not come
back by hand.

The banner the game build itself draws (Longshot#2353, ported to the Rust
builder) leaves the line out too, so every asset this project generates is
without it.

Assisted-by: Hermes (Qwen Code 3.8 Max)
feat(steam): the tile uses the banner the game folder carries, when it has one
Some checks failed
CI / What the change needs (pull_request) Successful in 6s
PR title / Conventional Commit title (pull_request) Successful in 7s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 12s
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
aff4daf371
The builder now writes longshot_hero.png beside the game executable when the player own dump made it (Longshot
#2353). The launcher never looked at it: artwork() wrote its four generated slots and stopped, so the game own frame
could not reach the details page.

When the game folder has a whole 1920x620 PNG of that name, the launcher now writes those bytes as the Steam hero and
skips its generated logo beside it (the banner already carries the mark). Art the launcher wrote before is retired
first, and only when the bytes are exactly its own: a file the player or Steam put there is never touched, and a slot
that is held stays held. Without one the four slots are written as before.

Tests: whole_hero accepts the generated hero and rejects a wrong size and a non-PNG; the suite is 226 with it.

Assisted-by: Hermes (Qwen Code 3.8 Max)
Member

Possibly related, for context:

  • issue #160 Idea: build the Steam tile's capsule art from the player's own game art (.longshot_icon.jpg) at install time — Open request for player-derived Steam tile artwork; this implements a banner variant.
  • PR MagicBeanDev/Longshot#2353 feat(builder): the game's own banner for the launcher's Steam tile, from the player's own movie — Open builder half produces the game-folder hero this launcher change consumes.
Possibly related, for context: - issue #160 Idea: build the Steam tile's capsule art from the player's own game art (.longshot_icon.jpg) at install time — Open request for player-derived Steam tile artwork; this implements a banner variant. - PR MagicBeanDev/Longshot#2353 feat(builder): the game's own banner for the launcher's Steam tile, from the player's own movie — Open builder half produces the game-folder hero this launcher change consumes.
Merge remote-tracking branch 'origin/main' into feat/game-folder-hero
Some checks failed
CI / What the change needs (pull_request) Successful in 5s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 10s
PR title / Conventional Commit title (pull_request) Successful in 6s
CI / Rust formatting, lint and tests (pull_request) Successful in 12m29s
CI / Release packages and stable upgrades (pull_request) Failing after 32m53s
83ba43bdba
# Conflicts:
#	assets/steam/capsule_920x430.png
#	assets/steam/capsulep_600x900.png
#	assets/steam/hero_1920x620.png
#	assets/steam/logo_998x323.png
#	src/game/steam.rs
Author
Member
@review
BeanBot requested changes 2026-11-30 18:06:48 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. The launcher looks for the banner in the builder folder, while the game and its banner are in a build folder, so the advertised feature will not work for a normal installation. Existing artwork also cannot be recognized for upgrade because this change replaces the bytes used for the comparison.

The change attempts to put a locally generated game banner on a Steam shortcut and omit the redundant logo. Its current folder selection, upgrade handling and artwork retirement prevent that result or can alter a custom tile.

Blocking (3): must change before merging.

  1. L1 src/game/steam.rs:177: The artwork reader receives the version's builder folder instead of the selected profile's game build folder. (more on the line) Do: Resolve the game folder for the version and profile using the builder's info result, and pass that folder to artwork. Add a synthetic test with distinct builder and game folders.
  2. L2 src/game/steam.rs:452: Retirement compares only against this head's artwork, but both embedded hero and logo differ from the files shipped by the base. (more on the line) Do: Recognize the previously shipped generated hero and logo as well as the current versions, without treating arbitrary player artwork as launcher-owned. Test an upgrade from the base assets.
  3. L4 src/game/steam.rs:177: Existing shortcuts are not refreshed when a banner becomes available. (more on the line) Do: Refresh artwork for existing owned shortcuts after the relevant build or during the existing shortcut migration, while preserving held custom slots. Test a banner appearing after the shortcut was created.

Should fix (2): not blocking, but worth doing before merging.

  • L3 src/game/steam.rs:452: The generated logo is retired even when a custom hero holds the hero slot and the game banner will not be written. (more on the line) Do: Decide whether the game banner can occupy the hero slot before retiring the logo, and preserve the logo when another hero holds the slot. Cover mixed custom and generated slots in a test.
  • L5 src/game/steam.rs:412: The predicate accepts a truncated or corrupt file as a whole PNG because it only checks selected header bytes and the final marker. (more on the line) Do: Validate the PNG structure and image data before replacing generated artwork, and test a truncated file with a valid-looking header and ending.

Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)

  • L6: The visible Steam result has not yet been exercised with a builder-produced banner. When: The reported test only calls the PNG predicate; it does not show that the selected build's banner reaches the Steam details page or that the logo is absent. Do: After correcting the artwork path, run one end-to-end build and shortcut refresh with a player's banner and capture the resulting Steam details page.

@fix can do L1, L2, L3, L4 and L5.

Questions (1) (not confirmed from the code; they don't hold the recommendation)

  • assets/steam/hero_1920x620.png: Which revision's four slot files reproduce from the unchanged recipe and originals?

Checks: Failing on this head, which is behind its base, where it passes: CI / Release packages and stable upgrades (pull_request). @rebase (or @fix) brings it up to date and runs it again; not held against it.

More: does it help, other systems, switches, what was read

Does it help: Unproven. The reported Linux tests cover the PNG predicate, not the artwork path, and the author reports that an end-to-end run with the builder is still needed.

Other systems: The artwork path is shared by Windows and Linux, both Steam grid stems, game shortcuts and the launcher’s own tile. The launcher tile passes no game folder. Profile-specific build selection and existing custom Steam artwork need coverage; no end-to-end Steam run is reported.

Switches: None.

Reviewed: 83ba43bdba against 29c6603aa4: Read AGENTS.md, CONTRIBUTING.md, the commit log, the full changed Rust file, its diff, the artwork recipe and documentation, and the relevant builder and path documentation. Skimmed the binary artwork diffs and related callers and tests; no review checklist or pull request template was present. Did not visually inspect the PNGs or run code.; nothing run (a code review).

Checked and fine:

  • The feature commit records AI assistance.
  • The changed Rust code adds no player switch or environment variable.
  • New writes use the existing no-clobber mechanism for held artwork.

Testing: Read-only review; no commands from the project or tests were run. The author reports Linux cargo tests, clippy and formatting checks, with end-to-end Steam testing outstanding.

Overlaps and merge order: None identified from the supplied pull request information.


Automated code review by BeanBot (gpt-6.1-terra), asked for by omgitsgela. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The launcher looks for the banner in the builder folder, while the game and its banner are in a build folder, so the advertised feature will not work for a normal installation. Existing artwork also cannot be recognized for upgrade because this change replaces the bytes used for the comparison. The change attempts to put a locally generated game banner on a Steam shortcut and omit the redundant logo. Its current folder selection, upgrade handling and artwork retirement prevent that result or can alter a custom tile. **Blocking (3)**: must change before merging. 1. **L1** `src/game/steam.rs:177`: The artwork reader receives the version's builder folder instead of the selected profile's game build folder. (more on the line) **Do:** Resolve the game folder for the version and profile using the builder's info result, and pass that folder to artwork. Add a synthetic test with distinct builder and game folders. 2. **L2** `src/game/steam.rs:452`: Retirement compares only against this head's artwork, but both embedded hero and logo differ from the files shipped by the base. (more on the line) **Do:** Recognize the previously shipped generated hero and logo as well as the current versions, without treating arbitrary player artwork as launcher-owned. Test an upgrade from the base assets. 3. **L4** `src/game/steam.rs:177`: Existing shortcuts are not refreshed when a banner becomes available. (more on the line) **Do:** Refresh artwork for existing owned shortcuts after the relevant build or during the existing shortcut migration, while preserving held custom slots. Test a banner appearing after the shortcut was created. **Should fix (2)**: not blocking, but worth doing before merging. - **L3** `src/game/steam.rs:452`: The generated logo is retired even when a custom hero holds the hero slot and the game banner will not be written. (more on the line) **Do:** Decide whether the game banner can occupy the hero slot before retiring the logo, and preserve the logo when another hero holds the slot. Cover mixed custom and generated slots in a test. - **L5** `src/game/steam.rs:412`: The predicate accepts a truncated or corrupt file as a whole PNG because it only checks selected header bytes and the final marker. (more on the line) **Do:** Validate the PNG structure and image data before replacing generated artwork, and test a truncated file with a valid-looking header and ending. **Testing before merging (1)** (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation) - **L6**: The visible Steam result has not yet been exercised with a builder-produced banner. *When:* The reported test only calls the PNG predicate; it does not show that the selected build's banner reaches the Steam details page or that the logo is absent. **Do:** After correcting the artwork path, run one end-to-end build and shortcut refresh with a player's banner and capture the resulting Steam details page. `@fix` can do L1, L2, L3, L4 and L5. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - `assets/steam/hero_1920x620.png`: Which revision's four slot files reproduce from the unchanged recipe and originals? **Checks:** Failing on this head, which is behind its base, where it passes: `CI / Release packages and stable upgrades (pull_request)`. `@rebase` (or `@fix`) brings it up to date and runs it again; not held against it. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven. The reported Linux tests cover the PNG predicate, not the artwork path, and the author reports that an end-to-end run with the builder is still needed. **Other systems:** The artwork path is shared by Windows and Linux, both Steam grid stems, game shortcuts and the launcher’s own tile. The launcher tile passes no game folder. Profile-specific build selection and existing custom Steam artwork need coverage; no end-to-end Steam run is reported. **Switches:** None. **Reviewed:** 83ba43bdba55 against 29c6603aa473: Read AGENTS.md, CONTRIBUTING.md, the commit log, the full changed Rust file, its diff, the artwork recipe and documentation, and the relevant builder and path documentation. Skimmed the binary artwork diffs and related callers and tests; no review checklist or pull request template was present. Did not visually inspect the PNGs or run code.; nothing run (a code review). **Checked and fine:** - The feature commit records AI assistance. - The changed Rust code adds no player switch or environment variable. - New writes use the existing no-clobber mechanism for held artwork. **Testing:** Read-only review; no commands from the project or tests were run. The author reports Linux cargo tests, clippy and formatting checks, with end-to-end Steam testing outstanding. **Overlaps and merge order:** None identified from the supplied pull request information. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by omgitsgela. Nothing was run; a maintainer decides.</sub>
@ -175,3 +175,3 @@
let changed =
library::use_launcher(&path, title, id, &builder, &ctx.profile, &ctx.home)?;
artwork(&path, id)?;
artwork(&path, id, Some(version))?;
Member

L1 (blocking): The artwork reader receives the version's builder folder instead of the selected profile's game build folder.

When: For a normal installation the builder is in the version folder and the game executable and its longshot_hero.png are under builds//. Reading version/longshot_hero.png fails, so the generated hero is used even when the builder produced a banner.

Do: Resolve the game folder for the version and profile using the builder's info result, and pass that folder to artwork. Add a synthetic test with distinct builder and game folders.

**L1** (blocking): The artwork reader receives the version's builder folder instead of the selected profile's game build folder. *When:* For a normal installation the builder is in the version folder and the game executable and its longshot_hero.png are under builds/<build>/. Reading version/longshot_hero.png fails, so the generated hero is used even when the builder produced a banner. **Do:** Resolve the game folder for the version and profile using the builder's info result, and pass that folder to artwork. Add a synthetic test with distinct builder and game folders.
Member

L4 (blocking): Existing shortcuts are not refreshed when a banner becomes available.

When: After a player updates or rebuilds a version with an existing Steam tile, the startup migration only retargets shortcuts and does not call artwork; artwork is called when a shortcut is added or moved. The existing tile therefore retains its old art without an explicit shortcut rewrite.

Do: Refresh artwork for existing owned shortcuts after the relevant build or during the existing shortcut migration, while preserving held custom slots. Test a banner appearing after the shortcut was created.

**L4** (blocking): Existing shortcuts are not refreshed when a banner becomes available. *When:* After a player updates or rebuilds a version with an existing Steam tile, the startup migration only retargets shortcuts and does not call artwork; artwork is called when a shortcut is added or moved. The existing tile therefore retains its old art without an explicit shortcut rewrite. **Do:** Refresh artwork for existing owned shortcuts after the relevant build or during the existing shortcut migration, while preserving held custom slots. Test a banner appearing after the shortcut was created.
@ -416,0 +449,4 @@
let generated_hero: &[u8] = include_bytes!("../../assets/steam/hero_1920x620.png");
let logo: &[u8] = include_bytes!("../../assets/steam/logo_998x323.png");
if player.is_some() {
retire(&grid, app, [("_hero", generated_hero), ("_logo", logo)])?;
Member

L2 (blocking): Retirement compares only against this head's artwork, but both embedded hero and logo differ from the files shipped by the base.

When: A shortcut created by the previous launcher contains the base's hero and logo. Neither equals these new embedded bytes, so both remain held and the player's banner cannot replace the hero.

Do: Recognize the previously shipped generated hero and logo as well as the current versions, without treating arbitrary player artwork as launcher-owned. Test an upgrade from the base assets.

**L2** (blocking): Retirement compares only against this head's artwork, but both embedded hero and logo differ from the files shipped by the base. *When:* A shortcut created by the previous launcher contains the base's hero and logo. Neither equals these new embedded bytes, so both remain held and the player's banner cannot replace the hero. **Do:** Recognize the previously shipped generated hero and logo as well as the current versions, without treating arbitrary player artwork as launcher-owned. Test an upgrade from the base assets.
Member

L3 (should fix): The generated logo is retired even when a custom hero holds the hero slot and the game banner will not be written.

When: If a player has a custom hero and the launcher-generated logo, a valid game banner causes retire to delete the logo; the held check then preserves the custom hero, leaving that tile without its previous logo.

Do: Decide whether the game banner can occupy the hero slot before retiring the logo, and preserve the logo when another hero holds the slot. Cover mixed custom and generated slots in a test.

**L3** (should fix): The generated logo is retired even when a custom hero holds the hero slot and the game banner will not be written. *When:* If a player has a custom hero and the launcher-generated logo, a valid game banner causes retire to delete the logo; the held check then preserves the custom hero, leaving that tile without its previous logo. **Do:** Decide whether the game banner can occupy the hero slot before retiring the logo, and preserve the logo when another hero holds the slot. Cover mixed custom and generated slots in a test.
@ -408,0 +409,4 @@
fn whole_hero(bytes: &[u8]) -> bool {
const W: u32 = 1920;
const H: u32 = 620;
bytes.len() > 24
Member

L5 (should fix): The predicate accepts a truncated or corrupt file as a whole PNG because it only checks selected header bytes and the final marker.

When: A file containing the PNG signature, an IHDR name and the expected dimensions followed directly by the IEND marker passes, despite having no image data. It is installed as the hero and the generated logo is removed.

Do: Validate the PNG structure and image data before replacing generated artwork, and test a truncated file with a valid-looking header and ending.

**L5** (should fix): The predicate accepts a truncated or corrupt file as a whole PNG because it only checks selected header bytes and the final marker. *When:* A file containing the PNG signature, an IHDR name and the expected dimensions followed directly by the IEND marker passes, despite having no image data. It is installed as the hero and the generated logo is removed. **Do:** Validate the PNG structure and image data before replacing generated artwork, and test a truncated file with a valid-looking header and ending.
fix(steam): the tile finds the build folder banner, upgrades old art, and refreshes itself
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 13s
PR title / Conventional Commit title (pull_request) Failing after 5m1s
CI / Rust formatting, lint and tests (pull_request) Failing after 24m57s
CI / Release packages and stable upgrades (pull_request) Failing after 41m46s
744dc98af7
The review found the reader pointed at the version root while the banner lives in the profile build folder, and that
an existing install would never upgrade: the bytes retired were only those of this head. Both were real.

- the game folder comes from the builder info result (version plus the profile the shortcut plays), and a synthetic
  test seats the folder apart from the version root.
- retirement recognises the previously shipped hero and logo as well as the current ones, and a file is still only
  removed when its bytes are exactly the launcher own: player art never matches.
- a hero the player put there keeps its slot, and the generated logo stays with it instead of vanishing.
- the banner is decoded, not sampled: a truncated file with a valid-looking header is rejected.
- an owned tile is refreshed whenever the launcher looks it up, so a banner that appears after the build reaches a
  shortcut that already exists.

Tests: five in the hero_art module, the suite is 285.

Assisted-by: Hermes (Qwen Code 3.8 Max)
Author
Member

All five are addressed in 744dc98.

L1 (folder). write_shortcut now resolves the game folder with info::folder(version, &ctx.profile), the builder's own info result for the version and the profile the shortcut plays, and passes that to artwork. installed_with resolves the same way. A new test stages the build folder apart from the version root (builds/default under a separate root) and proves the banner is read from the game folder, not from the version.

L2 (upgrade). The bytes the base release shipped are now in the crate too (assets/steam/previous/), taken from just before the gold-line change, and retirement accepts either the current or the previously shipped hero and logo. The comparison is still exact bytes, so player art never matches. Test: an upgrade with the previous hero and previous logo in the grid ends with the game folder's banner in the hero slot and the old logo recognised and retired.

L3 (logo retired when a custom hero holds the slot). The slot is checked for foreign art before anything is retired. If a hero the launcher did not write holds it, the banner cannot take the slot, so the generated logo is kept (and written back if it was missing). Test: a player-made hero stays untouched and the logo is present.

L4 (existing shortcuts not refreshed). An owned tile is refreshed whenever the launcher looks it up (installed_with, which the UI re-runs after a build), not only when the shortcut is created. Held custom slots are preserved by the same rules. Test: the no-banner case still writes the generated slots, and the banner case replaces them on a later run.

L5 (truncated PNG). whole_hero now decodes the file with the png crate, checks 1920x620 and decodes the first frame, so a truncated or corrupt file is rejected. Test: half of a valid hero is refused, as is a wrong size and a non-PNG.

Suite: 285 pass, 1 ignored. cargo clippy --all-targets and cargo fmt --check clean.

@review

All five are addressed in 744dc98. **L1 (folder).** `write_shortcut` now resolves the game folder with `info::folder(version, &ctx.profile)`, the builder's own info result for the version and the profile the shortcut plays, and passes that to `artwork`. `installed_with` resolves the same way. A new test stages the build folder apart from the version root (`builds/default` under a separate root) and proves the banner is read from the game folder, not from the version. **L2 (upgrade).** The bytes the base release shipped are now in the crate too (`assets/steam/previous/`), taken from just before the gold-line change, and retirement accepts either the current or the previously shipped hero and logo. The comparison is still exact bytes, so player art never matches. Test: an upgrade with the previous hero and previous logo in the grid ends with the game folder's banner in the hero slot and the old logo recognised and retired. **L3 (logo retired when a custom hero holds the slot).** The slot is checked for foreign art before anything is retired. If a hero the launcher did not write holds it, the banner cannot take the slot, so the generated logo is kept (and written back if it was missing). Test: a player-made hero stays untouched and the logo is present. **L4 (existing shortcuts not refreshed).** An owned tile is refreshed whenever the launcher looks it up (`installed_with`, which the UI re-runs after a build), not only when the shortcut is created. Held custom slots are preserved by the same rules. Test: the no-banner case still writes the generated slots, and the banner case replaces them on a later run. **L5 (truncated PNG).** `whole_hero` now decodes the file with the `png` crate, checks 1920x620 and decodes the first frame, so a truncated or corrupt file is rejected. Test: half of a valid hero is refused, as is a wrong size and a non-PNG. Suite: 285 pass, 1 ignored. `cargo clippy --all-targets` and `cargo fmt --check` clean. @review
BeanBot requested changes 2026-11-30 18:49:13 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. Existing installs can keep the base release’s generated hero instead of receiving the game banner, and the selected profile’s build folder is not reliably resolved. Custom heroes in non-PNG formats can also lose their generated logo.

The launcher uses a game-produced banner for Steam artwork and refreshes existing shortcuts. The fix adds upgrade handling and PNG decoding, but the folder lookup and artwork retirement still miss cases covered by the earlier review.

Blocking (2): must change before merging.

  1. L1 src/game/steam.rs:177: The artwork reader receives the version's builder folder instead of the selected profile's game build folder. When: For a normal installation the builder is in the version folder and the game executable and its longshot_hero.png are under builds//. Reading version/longshot_hero.png fails, so the generated hero is used even when the builder produced a banner. Do: Resolve the game folder for the version and profile using the builder's info result, and pass that folder to artwork. Add a synthetic test with distinct builder and game folders.
  2. L2 src/game/steam.rs:452: Retirement compares only against this head's artwork, but both embedded hero and logo differ from the files shipped by the base. When: A shortcut created by the previous launcher contains the base's hero and logo. Neither equals these new embedded bytes, so both remain held and the player's banner cannot replace the hero. Do: Recognize the previously shipped generated hero and logo as well as the current versions, without treating arbitrary player artwork as launcher-owned. Test an upgrade from the base assets.

Should fix (2): not blocking, but worth doing before merging.

  • L3 src/game/steam.rs:452: The generated logo is retired even when a custom hero holds the hero slot and the game banner will not be written. When: If a player has a custom hero and the launcher-generated logo, a valid game banner causes retire to delete the logo; the held check then preserves the custom hero, leaving that tile without its previous logo. Do: Decide whether the game banner can occupy the hero slot before retiring the logo, and preserve the logo when another hero holds the slot. Cover mixed custom and generated slots in a test.
  • L5 src/game/steam.rs:412: The predicate accepts a truncated or corrupt file as a whole PNG because it only checks selected header bytes and the final marker. When: A file containing the PNG signature, an IHDR name and the expected dimensions followed directly by the IEND marker passes, despite having no image data. It is installed as the hero and the generated logo is removed. Do: Validate the PNG structure and image data before replacing generated artwork, and test a truncated file with a valid-looking header and ending.

Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)

  • L6: The visible Steam result has not yet been exercised with a builder-produced banner. When: The reported test only calls the PNG predicate; it does not show that the selected build's banner reaches the Steam details page or that the logo is absent. Do: After correcting the artwork path, run one end-to-end build and shortcut refresh with a player's banner and capture the resulting Steam details page.

@fix can do L1, L2, L3 and L5.

Since the last review (on 83ba43bdba)
Resolved: L4 (Existing shortcuts are not refreshed when a banner becomes available.)
Still open: L1 (The artwork reader receives the version's builder folder instead of the selected profile's…); L2 (Retirement compares only against this head's artwork, but both embedded hero and logo diff…); L3 (The generated logo is retired even when a custom hero holds the hero slot and the game ban…); L5 (The predicate accepts a truncated or corrupt file as a whole PNG because it only checks se…); L6 (The visible Steam result has not yet been exercised with a builder-produced banner.)

Checks: Still running: PR title / Conventional Commit title (pull_request), CI / Rust formatting, lint and tests (pull_request), CI / Release packages and stable upgrades (pull_request).

Also noticed (1; not asked for, not blocking)
  • The comment above slot_stems still says the banner is read without decoding it.
More: does it help, other systems, switches, what was read

Does it help: Unproven: the author reports passing synthetic artwork tests, but the visible Steam result with a builder-produced banner has not been exercised.

Other systems: The artwork path is shared by Windows and Linux Steam shortcuts. Profile-specific builds depend on an asynchronous, single-entry builder-info cache; custom artwork can use extensions other than PNG. No end-to-end Steam result is reported.

Switches: None.

Reviewed: 744dc98af7 against 29c6603aa4: Read AGENTS.md, CONTRIBUTING.md, the Steam change and its surrounding code, the builder-info folder lookup, and the relevant refresh caller. Skimmed the lockfile, commit list and binary artwork metadata. No review checklist or pull request template was found.; nothing run (a code review).

Checked and fine:

  • The launcher’s own tile passes no game folder.
  • Artwork writes use non-clobbering persistence for held slots.

Testing: The author reports 285 passing tests, one ignored, and clean clippy and formatting checks. CI is still running; no commands or tests were run for this review.

Overlaps and merge order: None found.


Automated code review by BeanBot (gpt-6.1-terra), asked for by omgitsgela. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** Existing installs can keep the base release’s generated hero instead of receiving the game banner, and the selected profile’s build folder is not reliably resolved. Custom heroes in non-PNG formats can also lose their generated logo. The launcher uses a game-produced banner for Steam artwork and refreshes existing shortcuts. The fix adds upgrade handling and PNG decoding, but the folder lookup and artwork retirement still miss cases covered by the earlier review. **Blocking (2)**: must change before merging. 1. **L1** `src/game/steam.rs:177`: The artwork reader receives the version's builder folder instead of the selected profile's game build folder. *When:* For a normal installation the builder is in the version folder and the game executable and its longshot_hero.png are under builds/<build>/. Reading version/longshot_hero.png fails, so the generated hero is used even when the builder produced a banner. **Do:** Resolve the game folder for the version and profile using the builder's info result, and pass that folder to artwork. Add a synthetic test with distinct builder and game folders. 2. **L2** `src/game/steam.rs:452`: Retirement compares only against this head's artwork, but both embedded hero and logo differ from the files shipped by the base. *When:* A shortcut created by the previous launcher contains the base's hero and logo. Neither equals these new embedded bytes, so both remain held and the player's banner cannot replace the hero. **Do:** Recognize the previously shipped generated hero and logo as well as the current versions, without treating arbitrary player artwork as launcher-owned. Test an upgrade from the base assets. **Should fix (2)**: not blocking, but worth doing before merging. - **L3** `src/game/steam.rs:452`: The generated logo is retired even when a custom hero holds the hero slot and the game banner will not be written. *When:* If a player has a custom hero and the launcher-generated logo, a valid game banner causes retire to delete the logo; the held check then preserves the custom hero, leaving that tile without its previous logo. **Do:** Decide whether the game banner can occupy the hero slot before retiring the logo, and preserve the logo when another hero holds the slot. Cover mixed custom and generated slots in a test. - **L5** `src/game/steam.rs:412`: The predicate accepts a truncated or corrupt file as a whole PNG because it only checks selected header bytes and the final marker. *When:* A file containing the PNG signature, an IHDR name and the expected dimensions followed directly by the IEND marker passes, despite having no image data. It is installed as the hero and the generated logo is removed. **Do:** Validate the PNG structure and image data before replacing generated artwork, and test a truncated file with a valid-looking header and ending. **Testing before merging (1)** (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation) - **L6**: The visible Steam result has not yet been exercised with a builder-produced banner. *When:* The reported test only calls the PNG predicate; it does not show that the selected build's banner reaches the Steam details page or that the logo is absent. **Do:** After correcting the artwork path, run one end-to-end build and shortcut refresh with a player's banner and capture the resulting Steam details page. `@fix` can do L1, L2, L3 and L5. **Since the last review** (on 83ba43bdba55) Resolved: L4 (Existing shortcuts are not refreshed when a banner becomes available.) Still open: L1 (The artwork reader receives the version's builder folder instead of the selected profile's…); L2 (Retirement compares only against this head's artwork, but both embedded hero and logo diff…); L3 (The generated logo is retired even when a custom hero holds the hero slot and the game ban…); L5 (The predicate accepts a truncated or corrupt file as a whole PNG because it only checks se…); L6 (The visible Steam result has not yet been exercised with a builder-produced banner.) **Checks:** Still running: `PR title / Conventional Commit title (pull_request)`, `CI / Rust formatting, lint and tests (pull_request)`, `CI / Release packages and stable upgrades (pull_request)`. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The comment above slot_stems still says the banner is read without decoding it. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the author reports passing synthetic artwork tests, but the visible Steam result with a builder-produced banner has not been exercised. **Other systems:** The artwork path is shared by Windows and Linux Steam shortcuts. Profile-specific builds depend on an asynchronous, single-entry builder-info cache; custom artwork can use extensions other than PNG. No end-to-end Steam result is reported. **Switches:** None. **Reviewed:** 744dc98af732 against 29c6603aa473: Read AGENTS.md, CONTRIBUTING.md, the Steam change and its surrounding code, the builder-info folder lookup, and the relevant refresh caller. Skimmed the lockfile, commit list and binary artwork metadata. No review checklist or pull request template was found.; nothing run (a code review). **Checked and fine:** - The launcher’s own tile passes no game folder. - Artwork writes use non-clobbering persistence for held slots. **Testing:** The author reports 285 passing tests, one ignored, and clean clippy and formatting checks. CI is still running; no commands or tests were run for this review. **Overlaps and merge order:** None found. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by omgitsgela. Nothing was run; a maintainer decides.</sub>
docs(steam): the banner's note sits on the function that reads it
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
e7632acefe
The banner comment stayed above slot_stems after the reader moved there, so it said the file was read without being
decoded next to a function that decides nothing. whole_hero carries the true note: it decodes, and a truncated file is
never a banner.

Assisted-by: Hermes (Qwen Code 3.8 Max)
fix(steam): the hero and logo the released launcher ships are recognised as its own
Some checks failed
CI / What the change needs (pull_request) Successful in 11s
PR title / Conventional Commit title (pull_request) Successful in 15s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 22s
CI / Rust formatting, lint and tests (pull_request) Successful in 13m0s
CI / Release packages and stable upgrades (pull_request) Failing after 30m37s
c9b3bf6adc
A tile written by the launcher in the field holds that release's hero and logo. `artwork()` compares a
grid slot's bytes against the revisions of its own art it carries before it removes any of them, and it
carried two: this branch's, and the pair from the Rust port. The bytes the released launcher actually
writes are neither: `main` carries hero `66694ba498…` and logo `f02b47e833…`, while `previous/` carried
`21e1f8d077…` and `0ffafbe18b…`, which are `5932797e`'s. So an install that predates this change kept its
generated hero forever, held the slot against the build's banner, and the advertised feature did not
happen for a normal upgrade.

`previous/` now holds `main`'s copies byte for byte and the Rust port's pair sits in `older/`, with
`hero_art`/`logo_art` covering all three revisions. A file matching none of them is the player's or
Steam's and is still never touched. README-artwork says which pair is which and what to move when the
artwork changes again.

Two tests name the upgrade case, using a whole 1920x620 PNG that is nobody's shipped artwork as the
stand-in banner so "the banner won" cannot be confused with "the launcher wrote its own art":
`an_upgrade_retires_the_art_the_released_launcher_shipped` and
`an_upgrade_from_the_rust_port_release_is_retired_too`. Red first, then green: the first run unchanged
against `744dc98af7` in a throwaway worktree fails there (`test result: FAILED. 0 passed; 1 failed`, the
grid keeps the release's hero); at this head it passes. `cargo test --locked`: 287 passed, 0 failed, 1
ignored; `cargo fmt --check` clean; `cargo clippy --all-targets -- -D warnings` clean.

Assisted-by: Hermes (Qwen Code 3.8 Max)
Author
Member

What changed at this head

744dc98af7 → c9b3bf6, three commits:

  • e7632ac — the note above slot_stems said the banner is read without decoding it. It is decoded now; the comment is gone (the "also noticed" line in the 18:49 review).
  • c9b3bf6 — L2 fixed: the art the released launcher actually shipped is now recognised as the launcher's own. Details and proof below.

L2 was right, and here is the proof

The branch carried two revisions of its own art: this head's, and the pair from the Rust port. The bytes the released
launcher writes today are neither:

file main ships previous/ carried this head writes
hero_1920x620.png 66694ba498… 21e1f8d077… 07cb82580c…
logo_998x323.png f02b47e833… 0ffafbe18b… 0854ed25d7…

The two previous/ copies are what 5932797e (the Rust port) shipped, and nothing in the tree matched main's bytes —
so a tile written by the launcher in the field held art that matched no revision artwork() knew, stayed held, and
the build's banner never took the hero slot.

Fix: previous/ now holds main's copies byte for byte, the Rust port's pair moved to older/, and hero_art /
logo_art cover all three revisions. A file matching none of them is still the player's or Steam's and is never
touched. assets/steam/README-artwork.md says which revision each pair is and what to move when the artwork changes
again.

Two tests name it, with a whole 1920x620 PNG that is nobody's shipped artwork as the stand-in banner, so "the banner
won" is distinguishable from "the launcher's own art was written":
an_upgrade_retires_the_art_the_released_launcher_shipped and an_upgrade_from_the_rust_port_release_is_retired_too.

Red/green, not assertion: the first test, run unchanged against 744dc98af7 in a throwaway worktree, fails there —
test result: FAILED. 0 passed; 1 failed (the grid keeps the release's hero). At c9b3bf6 it passes.

Where the other findings stand at 744dc98af7

  • L3 — already the case at that head. foreign_hero is computed before anything is retired
    (src/game/steam.rs:487), and if a hero the launcher did not write holds the slot, the generated logo is written
    back and kept (:489-499, and ("_logo", logo, player.is_none() || foreign_hero) in the write loop).
    a_heros_own_art_keeps_its_slot_and_the_logo_stays covers exactly the mixed case.
  • L5 — already the case at that head. whole_hero is not a header scan: it decodes with the png crate,
    rejects any (width,height) other than 1920x620, and requires next_frame to decode
    (src/game/steam.rs:447-462). A file with a signature, an IHDR and an IEND and no image data fails at
    read_info/next_frame. The test asserts a truncated file, a wrong-size file and b"not a png" are all refused.
  • L1 — half right, and the half that is right is still open. What the review describes (reading
    version/longshot_hero.png) is not what the code does: installed_with resolves the folder as
    super::info::folder(version, profile) (src/game/steam.rs:57-58), which is the builder's info result. What is
    true: that lookup reads a single-entry thread-local cache and falls back to builds/default when the cache is cold
    or names another profile (src/game/info.rs:157-165). For a code-mod profile the builder resolves into its own
    build directory, so a cold cache means the guess, and the banner is missed. Closing it properly means the shortcut
    path calling info::describe (the synchronous call Play already uses, with a 30 s bound) instead of trusting the
    probe. That is a decision about blocking a "add to Steam" click on a builder subprocess, so it is left for a
    maintainer's steer rather than changed unasked — @fix can take it if that is the preferred route.
  • L6 — open, and it waits on the builder. The file the launcher reads is the one the finish writes, so the
    end-to-end needs the Longshot builder release that carries #2353.

The two failing checks were the forge, not the branch

From the job logs of the run at 744dc98af7:

  • job 116460 (Conventional Commit title): the title step produced no verdict — the job died with
    context deadline exceeded while copying SUMMARY.md out of the act container. Nothing of the title was checked.
  • job 116458 (Rust formatting, lint and tests): error: RPC failed; curl 92 HTTP/2 stream 3 was not closed cleanly: INTERNAL_ERROR, then curl 56 Recv failure: Connection reset by peer, then
    fatal: unable to access 'https://git.magicbean.dev/MagicBeanDev/Longshot.git/': … 403. It never reached cargo.
  • job 116459 (Release packages and stable upgrades) also fails on main itself (job 116150), so it is inherited
    from the base and not held against this branch.

At c9b3bf6 on this PC: cargo test --locked 287 passed, 0 failed, 1 ignored, cargo fmt --check clean, and
scripts/ci-test.sh --longshot 7015105c… (the commit tests/longshot.ref pins) green including the contract checks.

## What changed at this head `744dc98af7 → c9b3bf6`, three commits: - `e7632ac` — the note above `slot_stems` said the banner is read without decoding it. It is decoded now; the comment is gone (the "also noticed" line in the 18:49 review). - `c9b3bf6` — **L2 fixed: the art the released launcher actually shipped is now recognised as the launcher's own.** Details and proof below. ## L2 was right, and here is the proof The branch carried two revisions of its own art: this head's, and the pair from the Rust port. The bytes the released launcher writes today are **neither**: | file | `main` ships | `previous/` carried | this head writes | |---|---|---|---| | `hero_1920x620.png` | `66694ba498…` | `21e1f8d077…` | `07cb82580c…` | | `logo_998x323.png` | `f02b47e833…` | `0ffafbe18b…` | `0854ed25d7…` | The two `previous/` copies are what `5932797e` (the Rust port) shipped, and nothing in the tree matched main's bytes — so a tile written by the launcher in the field held art that matched no revision `artwork()` knew, stayed held, and the build's banner never took the hero slot. Fix: `previous/` now holds `main`'s copies byte for byte, the Rust port's pair moved to `older/`, and `hero_art` / `logo_art` cover all three revisions. A file matching none of them is still the player's or Steam's and is never touched. `assets/steam/README-artwork.md` says which revision each pair is and what to move when the artwork changes again. Two tests name it, with a whole 1920x620 PNG that is nobody's shipped artwork as the stand-in banner, so "the banner won" is distinguishable from "the launcher's own art was written": `an_upgrade_retires_the_art_the_released_launcher_shipped` and `an_upgrade_from_the_rust_port_release_is_retired_too`. **Red/green, not assertion:** the first test, run unchanged against `744dc98af7` in a throwaway worktree, fails there — `test result: FAILED. 0 passed; 1 failed` (the grid keeps the release's hero). At `c9b3bf6` it passes. ## Where the other findings stand at `744dc98af7` - **L3 — already the case at that head.** `foreign_hero` is computed *before* anything is retired (`src/game/steam.rs:487`), and if a hero the launcher did not write holds the slot, the generated logo is written back and kept (`:489-499`, and `("_logo", logo, player.is_none() || foreign_hero)` in the write loop). `a_heros_own_art_keeps_its_slot_and_the_logo_stays` covers exactly the mixed case. - **L5 — already the case at that head.** `whole_hero` is not a header scan: it decodes with the `png` crate, rejects any `(width,height)` other than 1920x620, and requires `next_frame` to decode (`src/game/steam.rs:447-462`). A file with a signature, an IHDR and an IEND and no image data fails at `read_info`/`next_frame`. The test asserts a truncated file, a wrong-size file and `b"not a png"` are all refused. - **L1 — half right, and the half that is right is still open.** What the review describes (reading `version/longshot_hero.png`) is not what the code does: `installed_with` resolves the folder as `super::info::folder(version, profile)` (`src/game/steam.rs:57-58`), which is the builder's info result. What *is* true: that lookup reads a single-entry thread-local cache and falls back to `builds/default` when the cache is cold or names another profile (`src/game/info.rs:157-165`). For a code-mod profile the builder resolves into its own build directory, so a cold cache means the guess, and the banner is missed. Closing it properly means the shortcut path calling `info::describe` (the synchronous call Play already uses, with a 30 s bound) instead of trusting the probe. That is a decision about blocking a "add to Steam" click on a builder subprocess, so it is left for a maintainer's steer rather than changed unasked — `@fix` can take it if that is the preferred route. - **L6 — open, and it waits on the builder.** The file the launcher reads is the one the finish writes, so the end-to-end needs the Longshot builder release that carries #2353. ## The two failing checks were the forge, not the branch From the job logs of the run at `744dc98af7`: - job `116460` (Conventional Commit title): the title step produced no verdict — the job died with `context deadline exceeded` while copying `SUMMARY.md` out of the act container. Nothing of the title was checked. - job `116458` (Rust formatting, lint and tests): `error: RPC failed; curl 92 HTTP/2 stream 3 was not closed cleanly: INTERNAL_ERROR`, then `curl 56 Recv failure: Connection reset by peer`, then `fatal: unable to access 'https://git.magicbean.dev/MagicBeanDev/Longshot.git/': … 403`. It never reached cargo. - job `116459` (Release packages and stable upgrades) also fails on `main` itself (job `116150`), so it is inherited from the base and not held against this branch. At `c9b3bf6` on this PC: `cargo test --locked` 287 passed, 0 failed, 1 ignored, `cargo fmt --check` clean, and `scripts/ci-test.sh --longshot 7015105c…` (the commit `tests/longshot.ref` pins) green including the contract checks.
Author
Member
@review
Author
Member

This review was submitted on 744dc98, and two commits have landed since; please look at the head c9b3bf6, where L2 goes further than the version reviewed. Point by point:

L2 (upgrade) is now exact, and it was the strongest finding. What the released launcher actually writes is main's pair (66694ba4… hero, f02b47e8… logo), not the Rust port's pair that my previous/ held. The head now carries both revisions: previous/ is main's copy byte for byte, older/ is the Rust port's, and hero_art/logo_art compare against all three (current, previous, older). Two tests name the upgrade: an_upgrade_retires_the_art_the_released_launcher_shipped and an_upgrade_from_the_rust_port_release_is_retired_too, and assets/steam/README-artwork.md says which pair is which and what to move when the art changes again.

L1 (folder). At this head the reader is not given the version root: write_shortcut passes info::folder(version, &ctx.profile) (src/game/steam.rs:153) and installed_with does the same (:58). info::folder is the builder info result for that version and profile, falling back to builds/default only when no probe has run for it. If you think that fallback is what "not reliably resolved" means, say so and I will make the folder assert itself (exists and holds the built executable) before the banner is read, rather than trusting the fallback.

L3. The hero slot is tested for foreign art before anything is retired, and the generated logo is kept, and restored if missing, when a foreign hero holds the slot. Test: a_heros_own_art_keeps_its_slot_and_the_logo_stays.

L5. whole_hero decodes the image with the png crate and decodes the first frame; a file with a valid signature, IHDR and IEND but no data is refused. Test: half of a real hero, a wrong size and a non-PNG are all rejected.

L6. Agreed, and it cannot be closed from here: the launcher can only show a builder-produced banner after a builder release carries Longshot #2353. The test above proves the reader given a whole banner; the visible Steam result needs that release and will be checked then.

Current head: 287 tests pass, clippy -D warnings clean, fmt clean.

@review

This review was submitted on `744dc98`, and two commits have landed since; please look at the head `c9b3bf6`, where L2 goes further than the version reviewed. Point by point: **L2 (upgrade) is now exact, and it was the strongest finding.** What the released launcher actually writes is `main`'s pair (`66694ba4…` hero, `f02b47e8…` logo), not the Rust port's pair that my `previous/` held. The head now carries both revisions: `previous/` is `main`'s copy byte for byte, `older/` is the Rust port's, and `hero_art`/`logo_art` compare against all three (current, previous, older). Two tests name the upgrade: `an_upgrade_retires_the_art_the_released_launcher_shipped` and `an_upgrade_from_the_rust_port_release_is_retired_too`, and `assets/steam/README-artwork.md` says which pair is which and what to move when the art changes again. **L1 (folder).** At this head the reader is not given the version root: `write_shortcut` passes `info::folder(version, &ctx.profile)` (`src/game/steam.rs:153`) and `installed_with` does the same (`:58`). `info::folder` is the builder info result for that version and profile, falling back to `builds/default` only when no probe has run for it. If you think that fallback is what "not reliably resolved" means, say so and I will make the folder assert itself (exists and holds the built executable) before the banner is read, rather than trusting the fallback. **L3.** The hero slot is tested for foreign art before anything is retired, and the generated logo is kept, and restored if missing, when a foreign hero holds the slot. Test: `a_heros_own_art_keeps_its_slot_and_the_logo_stays`. **L5.** `whole_hero` decodes the image with the `png` crate and decodes the first frame; a file with a valid signature, IHDR and IEND but no data is refused. Test: half of a real hero, a wrong size and a non-PNG are all rejected. **L6.** Agreed, and it cannot be closed from here: the launcher can only show a builder-produced banner after a builder release carries Longshot #2353. The test above proves the reader given a whole banner; the visible Steam result needs that release and will be checked then. Current head: 287 tests pass, clippy `-D warnings` clean, fmt clean. @review
BeanBot requested changes 2026-12-01 04:26:04 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. The released artwork is now recognized, but the launcher can still select the wrong profile’s build folder, remove the logo beside a custom JPEG hero, and accept an incomplete PNG.

The launcher can use a game-produced banner for a Steam shortcut and retire its own older artwork. The feature adds PNG decoding and retains copies of shipped artwork, but several existing edge cases remain unresolved.

Blocking (1): must change before merging.

  1. L1 src/game/steam.rs:177: The artwork reader receives the version's builder folder instead of the selected profile's game build folder. When: For a normal installation the builder is in the version folder and the game executable and its longshot_hero.png are under builds//. Reading version/longshot_hero.png fails, so the generated hero is used even when the builder produced a banner. Do: Resolve the game folder for the version and profile using the builder's info result, and pass that folder to artwork. Add a synthetic test with distinct builder and game folders.

Should fix (2): not blocking, but worth doing before merging.

  • L3 src/game/steam.rs:452: The generated logo is retired even when a custom hero holds the hero slot and the game banner will not be written. When: If a player has a custom hero and the launcher-generated logo, a valid game banner causes retire to delete the logo; the held check then preserves the custom hero, leaving that tile without its previous logo. Do: Decide whether the game banner can occupy the hero slot before retiring the logo, and preserve the logo when another hero holds the slot. Cover mixed custom and generated slots in a test.
  • L5 src/game/steam.rs:412: The predicate accepts a truncated or corrupt file as a whole PNG because it only checks selected header bytes and the final marker. When: A file containing the PNG signature, an IHDR name and the expected dimensions followed directly by the IEND marker passes, despite having no image data. It is installed as the hero and the generated logo is removed. Do: Validate the PNG structure and image data before replacing generated artwork, and test a truncated file with a valid-looking header and ending.

Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)

  • L6: The visible Steam result has not yet been exercised with a builder-produced banner. When: The reported test only calls the PNG predicate; it does not show that the selected build's banner reaches the Steam details page or that the logo is absent. Do: After correcting the artwork path, run one end-to-end build and shortcut refresh with a player's banner and capture the resulting Steam details page.

@fix can do L1, L3 and L5.

Since the last review (on 744dc98af7)
Resolved: L2 (Retirement compares only against this head's artwork, but both embedded hero and logo diff…)
Still open: L1 (The artwork reader receives the version's builder folder instead of the selected profile's…); L3 (The generated logo is retired even when a custom hero holds the hero slot and the game ban…); L5 (The predicate accepts a truncated or corrupt file as a whole PNG because it only checks se…); L6 (The visible Steam result has not yet been exercised with a builder-produced banner.)

Checks: Failing on this head, which is behind its base, where it passes: CI / Release packages and stable upgrades (pull_request). @rebase (or @fix) brings it up to date and runs it again; not held against it.

More: does it help, other systems, switches, what was read

Does it help: Unproven: the reported synthetic tests exercise banner selection and upgrades, but the visible Steam result with a builder-produced banner has not yet been tested.

Other systems: The artwork path applies to Steam shortcuts on Windows and Linux. The reported tests ran on Linux; a real builder-to-Steam run remains outstanding.

Switches: None.

Reviewed: c9b3bf6adc against 29c6603aa4: Read AGENTS.md, CONTRIBUTING.md, the pull request diff, src/game/steam.rs, src/game/info.rs, the artwork documentation, commit history, comments, and CI report. Skimmed the binary artwork and lockfile; no review checklist or pull request template was found at the named paths.; nothing run (a code review).

Checked and fine:

  • The base release’s hero and logo match the embedded previous artwork byte for byte.
  • The upgrade tests use a distinct synthetic banner and cover the base release and Rust port artwork.

Testing: No commands that build or run project code were executed. The author reports 287 passing tests, one ignored, and clean formatting and Clippy checks.

Overlaps and merge order: Longshot #2353 supplies the builder-produced banner needed for the end-to-end result.


Automated code review by BeanBot (gpt-6.1-terra), asked for by omgitsgela. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The released artwork is now recognized, but the launcher can still select the wrong profile’s build folder, remove the logo beside a custom JPEG hero, and accept an incomplete PNG. The launcher can use a game-produced banner for a Steam shortcut and retire its own older artwork. The feature adds PNG decoding and retains copies of shipped artwork, but several existing edge cases remain unresolved. **Blocking (1)**: must change before merging. 1. **L1** `src/game/steam.rs:177`: The artwork reader receives the version's builder folder instead of the selected profile's game build folder. *When:* For a normal installation the builder is in the version folder and the game executable and its longshot_hero.png are under builds/<build>/. Reading version/longshot_hero.png fails, so the generated hero is used even when the builder produced a banner. **Do:** Resolve the game folder for the version and profile using the builder's info result, and pass that folder to artwork. Add a synthetic test with distinct builder and game folders. **Should fix (2)**: not blocking, but worth doing before merging. - **L3** `src/game/steam.rs:452`: The generated logo is retired even when a custom hero holds the hero slot and the game banner will not be written. *When:* If a player has a custom hero and the launcher-generated logo, a valid game banner causes retire to delete the logo; the held check then preserves the custom hero, leaving that tile without its previous logo. **Do:** Decide whether the game banner can occupy the hero slot before retiring the logo, and preserve the logo when another hero holds the slot. Cover mixed custom and generated slots in a test. - **L5** `src/game/steam.rs:412`: The predicate accepts a truncated or corrupt file as a whole PNG because it only checks selected header bytes and the final marker. *When:* A file containing the PNG signature, an IHDR name and the expected dimensions followed directly by the IEND marker passes, despite having no image data. It is installed as the hero and the generated logo is removed. **Do:** Validate the PNG structure and image data before replacing generated artwork, and test a truncated file with a valid-looking header and ending. **Testing before merging (1)** (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation) - **L6**: The visible Steam result has not yet been exercised with a builder-produced banner. *When:* The reported test only calls the PNG predicate; it does not show that the selected build's banner reaches the Steam details page or that the logo is absent. **Do:** After correcting the artwork path, run one end-to-end build and shortcut refresh with a player's banner and capture the resulting Steam details page. `@fix` can do L1, L3 and L5. **Since the last review** (on 744dc98af732) Resolved: L2 (Retirement compares only against this head's artwork, but both embedded hero and logo diff…) Still open: L1 (The artwork reader receives the version's builder folder instead of the selected profile's…); L3 (The generated logo is retired even when a custom hero holds the hero slot and the game ban…); L5 (The predicate accepts a truncated or corrupt file as a whole PNG because it only checks se…); L6 (The visible Steam result has not yet been exercised with a builder-produced banner.) **Checks:** Failing on this head, which is behind its base, where it passes: `CI / Release packages and stable upgrades (pull_request)`. `@rebase` (or `@fix`) brings it up to date and runs it again; not held against it. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the reported synthetic tests exercise banner selection and upgrades, but the visible Steam result with a builder-produced banner has not yet been tested. **Other systems:** The artwork path applies to Steam shortcuts on Windows and Linux. The reported tests ran on Linux; a real builder-to-Steam run remains outstanding. **Switches:** None. **Reviewed:** c9b3bf6adcb1 against 29c6603aa473: Read AGENTS.md, CONTRIBUTING.md, the pull request diff, src/game/steam.rs, src/game/info.rs, the artwork documentation, commit history, comments, and CI report. Skimmed the binary artwork and lockfile; no review checklist or pull request template was found at the named paths.; nothing run (a code review). **Checked and fine:** - The base release’s hero and logo match the embedded previous artwork byte for byte. - The upgrade tests use a distinct synthetic banner and cover the base release and Rust port artwork. **Testing:** No commands that build or run project code were executed. The author reports 287 passing tests, one ignored, and clean formatting and Clippy checks. **Overlaps and merge order:** Longshot #2353 supplies the builder-produced banner needed for the end-to-end result. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by omgitsgela. Nothing was run; a maintainer decides.</sub>
feat(steam): the tile asks the builder for a banner, and only when a tile is added
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
5a7eed3fc9
The banner no longer comes from a build: a normal build decodes nothing. When the player adds or updates a Steam
tile, the launcher asks that version's builder for one, and then writes the artwork from the file it finds.

A builder that predates the command is not asked at all: the launcher reads the program's own file for the word
`steam-art` first, because an older builder treats an unknown word as arguments to the game and would start it. No
word, no call, and the generated art is written exactly as before. A failure from a builder that does know the word
is ignored the same way, so adding a tile never fails over optional art.

Tests: 287 pass, 1 ignored; clippy and fmt clean. The bootstrap uses the existing artwork tests.

Assisted-by: Hermes (Qwen Code 3.8 Max)
Author
Member

The launcher now asks for the banner when the player presses Add to Steam, and not before (5a7eed3).

  • It checks the builder's file for the word steam-art before calling: an older builder treats unknown words as game arguments, and asking would start the game. No word, no call, generated art as before.
  • A builder that knows the word but fails is ignored the same way; adding a tile never fails over optional art.
  • All four Steam slots (capsule, portrait, hero, logo) were already written only when a shortcut is added or updated, so no Steam art is produced outside the button press. Nothing is generated during a build.

287 tests pass, 1 ignored; clippy and fmt clean.

@review

The launcher now asks for the banner when the player presses Add to Steam, and not before (`5a7eed3`). - It checks the builder's file for the word `steam-art` before calling: an older builder treats unknown words as game arguments, and asking would start the game. No word, no call, generated art as before. - A builder that knows the word but fails is ignored the same way; adding a tile never fails over optional art. - All four Steam slots (capsule, portrait, hero, logo) were already written only when a shortcut is added or updated, so no Steam art is produced outside the button press. Nothing is generated during a build. 287 tests pass, 1 ignored; clippy and fmt clean. @review
BeanBot requested changes 2026-12-01 10:58:32 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. The selected profile can still receive another build’s banner, and the launcher can remove its generated logo while a custom JPEG hero holds the slot. The new builder invocation also needs to be described in the pull request.

The launcher can use a game-produced banner for a Steam shortcut and retire matching artwork from earlier launcher releases. It adds image decoding and an optional builder invocation, but profile resolution and some artwork safeguards remain incomplete.

Blocking (1): must change before merging.

  1. L1 src/game/steam.rs:177: The artwork reader receives the version's builder folder instead of the selected profile's game build folder. When: For a normal installation the builder is in the version folder and the game executable and its longshot_hero.png are under builds//. Reading version/longshot_hero.png fails, so the generated hero is used even when the builder produced a banner. Do: Resolve the game folder for the version and profile using the builder's info result, and pass that folder to artwork. Add a synthetic test with distinct builder and game folders.

Should fix (2): not blocking, but worth doing before merging.

  • L3 src/game/steam.rs:452: The generated logo is retired even when a custom hero holds the hero slot and the game banner will not be written. When: If a player has a custom hero and the launcher-generated logo, a valid game banner causes retire to delete the logo; the held check then preserves the custom hero, leaving that tile without its previous logo. Do: Decide whether the game banner can occupy the hero slot before retiring the logo, and preserve the logo when another hero holds the slot. Cover mixed custom and generated slots in a test.
  • L5 src/game/steam.rs:412: The predicate accepts a truncated or corrupt file as a whole PNG because it only checks selected header bytes and the final marker. When: A file containing the PNG signature, an IHDR name and the expected dimensions followed directly by the IEND marker passes, despite having no image data. It is installed as the hero and the generated logo is removed. Do: Validate the PNG structure and image data before replacing generated artwork, and test a truncated file with a valid-looking header and ending.

Nits (1): optional.

  • L7 src/game/steam.rs:224: The pull request description does not explain that adding or updating a shortcut now runs the builder to request artwork. (more on the line) Do: Update the pull request description to explain the builder invocation, when it runs, and its optional-failure behavior.

Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)

  • L6: The visible Steam result has not yet been exercised with a builder-produced banner. When: The reported test only calls the PNG predicate; it does not show that the selected build's banner reaches the Steam details page or that the logo is absent. Do: After correcting the artwork path, run one end-to-end build and shortcut refresh with a player's banner and capture the resulting Steam details page.

@fix can do L1, L3, L5 and L7.

Since the last review (on c9b3bf6adc)
Still open: L1 (The artwork reader receives the version's builder folder instead of the selected profile's…); L3 (The generated logo is retired even when a custom hero holds the hero slot and the game ban…); L5 (The predicate accepts a truncated or corrupt file as a whole PNG because it only checks se…); L6 (The visible Steam result has not yet been exercised with a builder-produced banner.)
New: L7 (The pull request description does not explain that adding or updating a shortcut now runs…)

Checks: Still running: 5 checks.

Also noticed (1; not asked for, not blocking)
  • The new builder invocation uses a fresh cancellation token, so cancelling the shortcut operation cannot stop that subprocess.
More: does it help, other systems, switches, what was read

Does it help: Unproven: synthetic artwork tests are reported, but no end-to-end run with a builder-produced banner and the visible Steam result is reported.

Other systems: The artwork path applies on Windows and Linux and preserves held PNG artwork by byte comparison. Custom hero files with other extensions and incomplete PNG streams remain covered by open ledger items.

Switches: No switches added, changed or removed.

Reviewed: 5a7eed3fc9 against 29c6603aa4: Read the repository rules, pull request description, comments, ledger, source diff and relevant Steam artwork, profile-folder and process code. Skimmed binary artwork and recorded test results; the complete process and Steam source output was truncated.; nothing run (a code review).

Checked and fine:

  • The new builder invocation is limited to adding or updating game shortcuts.
  • The existing PNG foreign-hero check happens before retirement.
  • The current and two older shipped hero and logo revisions are included in the exact-byte comparisons.

Testing: The author reports 287 passing tests, one ignored, plus clean formatting and clippy at an earlier head; CI is still running. No commands or tests were run for this review.

Overlaps and merge order: None found in the supplied context.


Automated code review by BeanBot (gpt-6.1-terra), asked for by omgitsgela. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The selected profile can still receive another build’s banner, and the launcher can remove its generated logo while a custom JPEG hero holds the slot. The new builder invocation also needs to be described in the pull request. The launcher can use a game-produced banner for a Steam shortcut and retire matching artwork from earlier launcher releases. It adds image decoding and an optional builder invocation, but profile resolution and some artwork safeguards remain incomplete. **Blocking (1)**: must change before merging. 1. **L1** `src/game/steam.rs:177`: The artwork reader receives the version's builder folder instead of the selected profile's game build folder. *When:* For a normal installation the builder is in the version folder and the game executable and its longshot_hero.png are under builds/<build>/. Reading version/longshot_hero.png fails, so the generated hero is used even when the builder produced a banner. **Do:** Resolve the game folder for the version and profile using the builder's info result, and pass that folder to artwork. Add a synthetic test with distinct builder and game folders. **Should fix (2)**: not blocking, but worth doing before merging. - **L3** `src/game/steam.rs:452`: The generated logo is retired even when a custom hero holds the hero slot and the game banner will not be written. *When:* If a player has a custom hero and the launcher-generated logo, a valid game banner causes retire to delete the logo; the held check then preserves the custom hero, leaving that tile without its previous logo. **Do:** Decide whether the game banner can occupy the hero slot before retiring the logo, and preserve the logo when another hero holds the slot. Cover mixed custom and generated slots in a test. - **L5** `src/game/steam.rs:412`: The predicate accepts a truncated or corrupt file as a whole PNG because it only checks selected header bytes and the final marker. *When:* A file containing the PNG signature, an IHDR name and the expected dimensions followed directly by the IEND marker passes, despite having no image data. It is installed as the hero and the generated logo is removed. **Do:** Validate the PNG structure and image data before replacing generated artwork, and test a truncated file with a valid-looking header and ending. **Nits (1)**: optional. - **L7** `src/game/steam.rs:224`: The pull request description does not explain that adding or updating a shortcut now runs the builder to request artwork. (more on the line) **Do:** Update the pull request description to explain the builder invocation, when it runs, and its optional-failure behavior. **Testing before merging (1)** (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation) - **L6**: The visible Steam result has not yet been exercised with a builder-produced banner. *When:* The reported test only calls the PNG predicate; it does not show that the selected build's banner reaches the Steam details page or that the logo is absent. **Do:** After correcting the artwork path, run one end-to-end build and shortcut refresh with a player's banner and capture the resulting Steam details page. `@fix` can do L1, L3, L5 and L7. **Since the last review** (on c9b3bf6adcb1) Still open: L1 (The artwork reader receives the version's builder folder instead of the selected profile's…); L3 (The generated logo is retired even when a custom hero holds the hero slot and the game ban…); L5 (The predicate accepts a truncated or corrupt file as a whole PNG because it only checks se…); L6 (The visible Steam result has not yet been exercised with a builder-produced banner.) New: L7 (The pull request description does not explain that adding or updating a shortcut now runs…) **Checks:** Still running: 5 checks. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The new builder invocation uses a fresh cancellation token, so cancelling the shortcut operation cannot stop that subprocess. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: synthetic artwork tests are reported, but no end-to-end run with a builder-produced banner and the visible Steam result is reported. **Other systems:** The artwork path applies on Windows and Linux and preserves held PNG artwork by byte comparison. Custom hero files with other extensions and incomplete PNG streams remain covered by open ledger items. **Switches:** No switches added, changed or removed. **Reviewed:** 5a7eed3fc90e against 29c6603aa473: Read the repository rules, pull request description, comments, ledger, source diff and relevant Steam artwork, profile-folder and process code. Skimmed binary artwork and recorded test results; the complete process and Steam source output was truncated.; nothing run (a code review). **Checked and fine:** - The new builder invocation is limited to adding or updating game shortcuts. - The existing PNG foreign-hero check happens before retirement. - The current and two older shipped hero and logo revisions are included in the exact-byte comparisons. **Testing:** The author reports 287 passing tests, one ignored, plus clean formatting and clippy at an earlier head; CI is still running. No commands or tests were run for this review. **Overlaps and merge order:** None found in the supplied context. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by omgitsgela. Nothing was run; a maintainer decides.</sub>
@ -199,0 +221,4 @@
return Ok(());
}
let mut command = ctx.command_for(builder, false, false)?;
command.args(["steam-art", "--game"]).arg(game);
Member

L7 (nit): The pull request description does not explain that adding or updating a shortcut now runs the builder to request artwork.

When: When a builder contains the steam-art command, Add to Steam starts it with steam-art and --game, although the description says the launcher reads an optional file already in the game folder.

Do: Update the pull request description to explain the builder invocation, when it runs, and its optional-failure behavior.

**L7** (nit): The pull request description does not explain that adding or updating a shortcut now runs the builder to request artwork. *When:* When a builder contains the steam-art command, Add to Steam starts it with steam-art and --game, although the description says the launcher reads an optional file already in the game folder. **Do:** Update the pull request description to explain the builder invocation, when it runs, and its optional-failure behavior.
feat(artwork): all four Steam plates carry the game's new mark, from one master
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
7c4c922881
The launcher's four Steam images still carried the old glyph. The game build has moved on: its banner
composes the new mark from `assets/longshot.png` and sets LONGSHOT at 15% of the glyph's height. The
plates were being derived by cutting a glyph out of their own old artwork, so no master change could
reach them.

The generator now draws every plate from `assets/longshot.png` itself, the same master the build uses,
and sizes the word at the banner's ratio. The `src_` files now contribute only their size and flat
field; their baked glyph is ignored. The master in this repo is replaced with the game build's file,
and all four slots are regenerated: capsule, portrait, hero and the transparent logo. The retired hero
and logo move down a generation (`previous/` to `older/`, current to `previous/`) so installed tiles
still give up their artwork cleanly.

Tests: 287 pass, 1 ignored, including the three retirement pairs.

Assisted-by: Hermes (Qwen Code 3.8 Max)
Author
Member

Branding update, all four plates (7c4c922):

  • The generator now draws the glyph from assets/longshot.png, the same master the game build composes its banner from, instead of cutting it out of the old plate art.
  • The word is set at 15% of the glyph's height, the banner's ratio, so plates and banner share one lockup.
  • assets/longshot.png is replaced with the game build's master (same design, the newer file).
  • Regenerated capsule, portrait, hero and the transparent logo; the retired hero and logo moved previous/ to older/ so installed tiles still retire cleanly.
  • README updated: one master plus a regeneration is the whole branding change.

287 tests pass, 1 ignored. The composite (#2353) and these four now carry the same mark and wordmark.

@review

Branding update, all four plates (`7c4c922`): - The generator now draws the glyph from `assets/longshot.png`, the same master the game build composes its banner from, instead of cutting it out of the old plate art. - The word is set at 15% of the glyph's height, the banner's ratio, so plates and banner share one lockup. - `assets/longshot.png` is replaced with the game build's master (same design, the newer file). - Regenerated capsule, portrait, hero and the transparent logo; the retired hero and logo moved `previous/` to `older/` so installed tiles still retire cleanly. - README updated: one master plus a regeneration is the whole branding change. 287 tests pass, 1 ignored. The composite (#2353) and these four now carry the same mark and wordmark. @review
BeanBot requested changes 2026-12-01 11:26:56 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. A code-mod profile can still use the default build’s banner because both shortcut paths trust a cached folder lookup that falls back to builds/default. The custom JPEG and incomplete PNG cases also remain unresolved.

The launcher can use a game-generated Steam hero and retire its own older art while preserving custom slots. It also refreshes existing shortcuts and updates the generated artwork, but folder selection and some artwork validation and preservation cases remain incorrect.

Blocking (1): must change before merging.

  1. L1 src/game/steam.rs:177: The artwork reader receives the version's builder folder instead of the selected profile's game build folder. When: For a normal installation the builder is in the version folder and the game executable and its longshot_hero.png are under builds//. Reading version/longshot_hero.png fails, so the generated hero is used even when the builder produced a banner. Do: Resolve the game folder for the version and profile using the builder's info result, and pass that folder to artwork. Add a synthetic test with distinct builder and game folders.

Should fix (2): not blocking, but worth doing before merging.

  • L3 src/game/steam.rs:452: The generated logo is retired even when a custom hero holds the hero slot and the game banner will not be written. When: If a player has a custom hero and the launcher-generated logo, a valid game banner causes retire to delete the logo; the held check then preserves the custom hero, leaving that tile without its previous logo. Do: Decide whether the game banner can occupy the hero slot before retiring the logo, and preserve the logo when another hero holds the slot. Cover mixed custom and generated slots in a test.
  • L5 src/game/steam.rs:412: The predicate accepts a truncated or corrupt file as a whole PNG because it only checks selected header bytes and the final marker. When: A file containing the PNG signature, an IHDR name and the expected dimensions followed directly by the IEND marker passes, despite having no image data. It is installed as the hero and the generated logo is removed. Do: Validate the PNG structure and image data before replacing generated artwork, and test a truncated file with a valid-looking header and ending.

Nits (1): optional.

  • L7 src/game/steam.rs:224: The pull request description does not explain that adding or updating a shortcut now runs the builder to request artwork. When: When a builder contains the steam-art command, Add to Steam starts it with steam-art and --game, although the description says the launcher reads an optional file already in the game folder. Do: Update the pull request description to explain the builder invocation, when it runs, and its optional-failure behavior.

Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)

  • L6: The visible Steam result has not yet been exercised with a builder-produced banner. When: The reported test only calls the PNG predicate; it does not show that the selected build's banner reaches the Steam details page or that the logo is absent. Do: After correcting the artwork path, run one end-to-end build and shortcut refresh with a player's banner and capture the resulting Steam details page.

@fix can do L1, L3, L5 and L7.

Since the last review (on 5a7eed3fc9)
Still open: L1 (The artwork reader receives the version's builder folder instead of the selected profile's…); L3 (The generated logo is retired even when a custom hero holds the hero slot and the game ban…); L5 (The predicate accepts a truncated or corrupt file as a whole PNG because it only checks se…); L6 (The visible Steam result has not yet been exercised with a builder-produced banner.); L7 (The pull request description does not explain that adding or updating a shortcut now runs…)

Checks: Still running: 5 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven: the reported synthetic tests exercise banner selection, but no visible Steam result with a builder-produced banner is reported. This is not a performance change.

Other systems: The artwork path affects Steam shortcuts on Windows and Linux, including existing shortcuts and custom grid art. The reported tests ran on Linux; the visible result with the builder-produced banner remains untested.

Switches: None.

Reviewed: 7c4c922881 against 29c6603aa4: Read AGENTS.md, CONTRIBUTING.md, the changed artwork generator and artwork README, and the relevant Steam and builder-info code. Reviewed the diff, commit list, comments, reported tests and CI status. Binary artwork and generated files were not visually inspected; the full Steam file output was truncated.; nothing run (a code review).

Checked and fine:

  • The generator now reads the mark from the master asset and retains the existing slot dimensions and field handling.
  • A foreign PNG hero is detected before retirement, and the generated logo is retained or restored for it.
  • The reported upgrade tests cover the release and Rust-port artwork revisions.

Testing: No commands that execute project code or tests were run. The author reports 287 tests passed, one ignored, and clean formatting and Clippy; CI is still running. The builder-produced banner and visible Steam result still need an end-to-end check.

Overlaps and merge order: Longshot #2353 supplies the builder-produced banner; its release is needed for the reported end-to-end check. Other overlapping pull requests were not available.


Automated code review by BeanBot (gpt-6.1-terra), asked for by omgitsgela. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** A code-mod profile can still use the default build’s banner because both shortcut paths trust a cached folder lookup that falls back to builds/default. The custom JPEG and incomplete PNG cases also remain unresolved. The launcher can use a game-generated Steam hero and retire its own older art while preserving custom slots. It also refreshes existing shortcuts and updates the generated artwork, but folder selection and some artwork validation and preservation cases remain incorrect. **Blocking (1)**: must change before merging. 1. **L1** `src/game/steam.rs:177`: The artwork reader receives the version's builder folder instead of the selected profile's game build folder. *When:* For a normal installation the builder is in the version folder and the game executable and its longshot_hero.png are under builds/<build>/. Reading version/longshot_hero.png fails, so the generated hero is used even when the builder produced a banner. **Do:** Resolve the game folder for the version and profile using the builder's info result, and pass that folder to artwork. Add a synthetic test with distinct builder and game folders. **Should fix (2)**: not blocking, but worth doing before merging. - **L3** `src/game/steam.rs:452`: The generated logo is retired even when a custom hero holds the hero slot and the game banner will not be written. *When:* If a player has a custom hero and the launcher-generated logo, a valid game banner causes retire to delete the logo; the held check then preserves the custom hero, leaving that tile without its previous logo. **Do:** Decide whether the game banner can occupy the hero slot before retiring the logo, and preserve the logo when another hero holds the slot. Cover mixed custom and generated slots in a test. - **L5** `src/game/steam.rs:412`: The predicate accepts a truncated or corrupt file as a whole PNG because it only checks selected header bytes and the final marker. *When:* A file containing the PNG signature, an IHDR name and the expected dimensions followed directly by the IEND marker passes, despite having no image data. It is installed as the hero and the generated logo is removed. **Do:** Validate the PNG structure and image data before replacing generated artwork, and test a truncated file with a valid-looking header and ending. **Nits (1)**: optional. - **L7** `src/game/steam.rs:224`: The pull request description does not explain that adding or updating a shortcut now runs the builder to request artwork. *When:* When a builder contains the steam-art command, Add to Steam starts it with steam-art and --game, although the description says the launcher reads an optional file already in the game folder. **Do:** Update the pull request description to explain the builder invocation, when it runs, and its optional-failure behavior. **Testing before merging (1)** (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation) - **L6**: The visible Steam result has not yet been exercised with a builder-produced banner. *When:* The reported test only calls the PNG predicate; it does not show that the selected build's banner reaches the Steam details page or that the logo is absent. **Do:** After correcting the artwork path, run one end-to-end build and shortcut refresh with a player's banner and capture the resulting Steam details page. `@fix` can do L1, L3, L5 and L7. **Since the last review** (on 5a7eed3fc90e) Still open: L1 (The artwork reader receives the version's builder folder instead of the selected profile's…); L3 (The generated logo is retired even when a custom hero holds the hero slot and the game ban…); L5 (The predicate accepts a truncated or corrupt file as a whole PNG because it only checks se…); L6 (The visible Steam result has not yet been exercised with a builder-produced banner.); L7 (The pull request description does not explain that adding or updating a shortcut now runs…) **Checks:** Still running: 5 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the reported synthetic tests exercise banner selection, but no visible Steam result with a builder-produced banner is reported. This is not a performance change. **Other systems:** The artwork path affects Steam shortcuts on Windows and Linux, including existing shortcuts and custom grid art. The reported tests ran on Linux; the visible result with the builder-produced banner remains untested. **Switches:** None. **Reviewed:** 7c4c92288125 against 29c6603aa473: Read AGENTS.md, CONTRIBUTING.md, the changed artwork generator and artwork README, and the relevant Steam and builder-info code. Reviewed the diff, commit list, comments, reported tests and CI status. Binary artwork and generated files were not visually inspected; the full Steam file output was truncated.; nothing run (a code review). **Checked and fine:** - The generator now reads the mark from the master asset and retains the existing slot dimensions and field handling. - A foreign PNG hero is detected before retirement, and the generated logo is retained or restored for it. - The reported upgrade tests cover the release and Rust-port artwork revisions. **Testing:** No commands that execute project code or tests were run. The author reports 287 tests passed, one ignored, and clean formatting and Clippy; CI is still running. The builder-produced banner and visible Steam result still need an end-to-end check. **Overlaps and merge order:** Longshot #2353 supplies the builder-produced banner; its release is needed for the reported end-to-end check. Other overlapping pull requests were not available. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by omgitsgela. Nothing was run; a maintainer decides.</sub>
The shortcut paths used a cached folder lookup that fell back to builds/default, so a code-mod profile could pick up the default build banner. They now ask the builder info for this run, with the cached answer only as a last resort. Slot ownership is detected by stem across formats, so a player custom .jpg hero holds the slot and keeps the launcher logo instead of losing it. Covered by a test with a custom jpeg hero and a generated logo.

Assisted-by: Hermes (Qwen Code 3.8 Max)
fix(steam): the refresh abstains when the profile folder is unknown, and a player logo holds any format
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
836ba61fc6
installed_with still refreshed art from the cached default fallback before the profile probe finished, which could copy the wrong build banner into a code-mod profile tile. It now refreshes only from a folder a finished probe named, and does nothing when the answer is unknown. The logo restore also checks the slot across formats, so a player logo.jpg is not given a competing logo.png.

Assisted-by: Hermes (Qwen Code 3.8 Max)
Author
Member

L1, L3 and L5 are addressed in 836ba61 (on top of 0805a76).

  • L1, write path: write_shortcut now calls info::resolve_folder, which runs the builder's info for this run (20 s cap) and uses its build.folder; the cached answer is only a last resort for old builders.
  • L1, refresh path: the startup/refresh path (installed_with) no longer uses the default-folder fallback. It refreshes art only from a folder a finished probe named for this version and profile, and otherwise abstains; the next Add to Steam does the work. A wrong banner can no longer be copied in and then look foreign.
  • L5 and L3: slot ownership is now checked by stem across any picture format, both for the hero and for the logo restore. A player's hero.jpg or logo.jpg holds its slot, is never overwritten, and is never given a competing .png.

Tests: 289 pass, 1 ignored, including a custom jpeg hero keeping the launcher logo and a player jpeg logo not gaining a competing png. Clippy -D warnings and fmt clean.

@review

L1, L3 and L5 are addressed in `836ba61` (on top of `0805a76`). - **L1, write path:** `write_shortcut` now calls `info::resolve_folder`, which runs the builder's `info` for this run (20 s cap) and uses its `build.folder`; the cached answer is only a last resort for old builders. - **L1, refresh path:** the startup/refresh path (`installed_with`) no longer uses the default-folder fallback. It refreshes art only from a folder a finished probe named for this version and profile, and otherwise abstains; the next Add to Steam does the work. A wrong banner can no longer be copied in and then look foreign. - **L5 and L3:** slot ownership is now checked by stem across any picture format, both for the hero and for the logo restore. A player's `hero.jpg` or `logo.jpg` holds its slot, is never overwritten, and is never given a competing `.png`. Tests: 289 pass, 1 ignored, including a custom jpeg hero keeping the launcher logo and a player jpeg logo not gaining a competing png. Clippy `-D warnings` and fmt clean. @review
BeanBot left a comment

Recommendation: Request changes. A failed or timed-out builder lookup can still select the default build’s banner for a different profile, leaving that profile with the wrong Steam art.

The launcher can use a game-produced Steam hero and retire its own older hero and logo, while preserving custom art. It adds profile resolution and PNG decoding, but the fallback can still select the wrong build folder.

Blocking (1): must change before merging.

  1. L1 src/game/steam.rs:177: The artwork reader receives the version's builder folder instead of the selected profile's game build folder. When: For a normal installation the builder is in the version folder and the game executable and its longshot_hero.png are under builds//. Reading version/longshot_hero.png fails, so the generated hero is used even when the builder produced a banner. Do: Resolve the game folder for the version and profile using the builder's info result, and pass that folder to artwork. Add a synthetic test with distinct builder and game folders.

Should fix (1): not blocking, but worth doing before merging.

  • L5 src/game/steam.rs:412: The predicate accepts a truncated or corrupt file as a whole PNG because it only checks selected header bytes and the final marker. When: A file containing the PNG signature, an IHDR name and the expected dimensions followed directly by the IEND marker passes, despite having no image data. It is installed as the hero and the generated logo is removed. Do: Validate the PNG structure and image data before replacing generated artwork, and test a truncated file with a valid-looking header and ending.

Nits (1): optional.

  • L7 src/game/steam.rs:224: The pull request description does not explain that adding or updating a shortcut now runs the builder to request artwork. When: When a builder contains the steam-art command, Add to Steam starts it with steam-art and --game, although the description says the launcher reads an optional file already in the game folder. Do: Update the pull request description to explain the builder invocation, when it runs, and its optional-failure behavior.

Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)

  • L6: The visible Steam result has not yet been exercised with a builder-produced banner. When: The reported test only calls the PNG predicate; it does not show that the selected build's banner reaches the Steam details page or that the logo is absent. Do: After correcting the artwork path, run one end-to-end build and shortcut refresh with a player's banner and capture the resulting Steam details page.

@fix can do L1, L5 and L7.

Since the last review (on 7c4c922881)
Resolved: L3 (The generated logo is retired even when a custom hero holds the hero slot and the game ban…)
Still open: L1 (The artwork reader receives the version's builder folder instead of the selected profile's…); L5 (The predicate accepts a truncated or corrupt file as a whole PNG because it only checks se…); L6 (The visible Steam result has not yet been exercised with a builder-produced banner.); L7 (The pull request description does not explain that adding or updating a shortcut now runs…)

Checks: Still running: 5 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven: the reported synthetic tests exercise the artwork decision, but the visible Steam result with a builder-produced banner has not been reported.

Other systems: The folder lookup and Steam artwork paths affect Windows and Linux, including profile-specific builds. The reported tests are on Linux; the visible Steam result remains untested.

Switches: None.

Reviewed: 836ba61fc6 against 29c6603aa4: Read AGENTS.md, CONTRIBUTING.md, the changes since the ledger, the changed folder-resolution and artwork code, and the artwork documentation. Skimmed the remaining Steam module, artwork generator diff, commit list, recorded test claims, and asset changes; binary artwork was not visually reviewed.; nothing run (a code review).

Checked and fine:

  • The JPEG hero and logo cases now check ownership across both Steam slot stems.
  • The reported upgrade tests distinguish the builder banner from the launcher’s shipped artwork.

Testing: No commands that execute project code were run. The author reports 289 tests passing, one ignored, with clippy and formatting clean; CI is still running.

Overlaps and merge order: Not established from the supplied information.


Automated code review by BeanBot (gpt-6.1-terra), asked for by omgitsgela. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** A failed or timed-out builder lookup can still select the default build’s banner for a different profile, leaving that profile with the wrong Steam art. The launcher can use a game-produced Steam hero and retire its own older hero and logo, while preserving custom art. It adds profile resolution and PNG decoding, but the fallback can still select the wrong build folder. **Blocking (1)**: must change before merging. 1. **L1** `src/game/steam.rs:177`: The artwork reader receives the version's builder folder instead of the selected profile's game build folder. *When:* For a normal installation the builder is in the version folder and the game executable and its longshot_hero.png are under builds/<build>/. Reading version/longshot_hero.png fails, so the generated hero is used even when the builder produced a banner. **Do:** Resolve the game folder for the version and profile using the builder's info result, and pass that folder to artwork. Add a synthetic test with distinct builder and game folders. **Should fix (1)**: not blocking, but worth doing before merging. - **L5** `src/game/steam.rs:412`: The predicate accepts a truncated or corrupt file as a whole PNG because it only checks selected header bytes and the final marker. *When:* A file containing the PNG signature, an IHDR name and the expected dimensions followed directly by the IEND marker passes, despite having no image data. It is installed as the hero and the generated logo is removed. **Do:** Validate the PNG structure and image data before replacing generated artwork, and test a truncated file with a valid-looking header and ending. **Nits (1)**: optional. - **L7** `src/game/steam.rs:224`: The pull request description does not explain that adding or updating a shortcut now runs the builder to request artwork. *When:* When a builder contains the steam-art command, Add to Steam starts it with steam-art and --game, although the description says the launcher reads an optional file already in the game folder. **Do:** Update the pull request description to explain the builder invocation, when it runs, and its optional-failure behavior. **Testing before merging (1)** (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation) - **L6**: The visible Steam result has not yet been exercised with a builder-produced banner. *When:* The reported test only calls the PNG predicate; it does not show that the selected build's banner reaches the Steam details page or that the logo is absent. **Do:** After correcting the artwork path, run one end-to-end build and shortcut refresh with a player's banner and capture the resulting Steam details page. `@fix` can do L1, L5 and L7. **Since the last review** (on 7c4c92288125) Resolved: L3 (The generated logo is retired even when a custom hero holds the hero slot and the game ban…) Still open: L1 (The artwork reader receives the version's builder folder instead of the selected profile's…); L5 (The predicate accepts a truncated or corrupt file as a whole PNG because it only checks se…); L6 (The visible Steam result has not yet been exercised with a builder-produced banner.); L7 (The pull request description does not explain that adding or updating a shortcut now runs…) **Checks:** Still running: 5 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the reported synthetic tests exercise the artwork decision, but the visible Steam result with a builder-produced banner has not been reported. **Other systems:** The folder lookup and Steam artwork paths affect Windows and Linux, including profile-specific builds. The reported tests are on Linux; the visible Steam result remains untested. **Switches:** None. **Reviewed:** 836ba61fc661 against 29c6603aa473: Read AGENTS.md, CONTRIBUTING.md, the changes since the ledger, the changed folder-resolution and artwork code, and the artwork documentation. Skimmed the remaining Steam module, artwork generator diff, commit list, recorded test claims, and asset changes; binary artwork was not visually reviewed.; nothing run (a code review). **Checked and fine:** - The JPEG hero and logo cases now check ownership across both Steam slot stems. - The reported upgrade tests distinguish the builder banner from the launcher’s shipped artwork. **Testing:** No commands that execute project code were run. The author reports 289 tests passing, one ignored, with clippy and formatting clean; CI is still running. **Overlaps and merge order:** Not established from the supplied information. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by omgitsgela. Nothing was run; a maintainer decides.</sub>
fix(steam): a failed builder answer abstains off the default profile, and a hollow png is not a banner
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
eb7c584915
The shortcut path fell back to builds/default whenever info failed or timed out, so a code-mod profile could be handed the default build banner, which then counts as foreign and cannot be corrected. The fallback now applies only to the default profile; every other profile abstains. The whole-banner check also has a test for a signature, IHDR and IEND with no image data.

Assisted-by: Hermes (Qwen Code 3.8 Max)
Author
Member

L1 and L5 addressed in eb7c584.

  • L1: resolve_folder now abstains whenever the builder's info fails or times out, except on the default profile, whose builds/default is the folder this launcher has always used. A code-mod profile never receives the default build's banner, so the "foreign art locks the slot" trap is gone.
  • L5: the whole-banner predicate already decoded the PNG rather than sampling bytes; there is now an explicit test for the crafted case: signature, IHDR of the right size, IEND, and no image data. It is refused.
  • L7 nit: the PR description now has a "How the banner is requested" section covering the builder invocation, when it runs, and its optional-failure behaviour.

289 tests pass, 1 ignored; fmt and clippy -D warnings clean.

L6 (visible Steam result with a builder-produced banner) needs a Deck with Steam running; I can do that when you want a live check.

@review

L1 and L5 addressed in `eb7c584`. - **L1:** `resolve_folder` now abstains whenever the builder's `info` fails or times out, except on the default profile, whose `builds/default` is the folder this launcher has always used. A code-mod profile never receives the default build's banner, so the "foreign art locks the slot" trap is gone. - **L5:** the whole-banner predicate already decoded the PNG rather than sampling bytes; there is now an explicit test for the crafted case: signature, IHDR of the right size, IEND, and no image data. It is refused. - **L7 nit:** the PR description now has a "How the banner is requested" section covering the builder invocation, when it runs, and its optional-failure behaviour. 289 tests pass, 1 ignored; fmt and clippy `-D warnings` clean. L6 (visible Steam result with a builder-produced banner) needs a Deck with Steam running; I can do that when you want a live check. @review
BeanBot left a comment

Recommendation: Approve. The selected profile no longer falls back to the default build for code-mod profiles, but whole PNG validation remains incomplete. The visible Steam result also still needs an end-to-end run. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

The launcher requests and installs a game-produced Steam hero when available, while preserving held artwork and retiring recognized launcher artwork. It also updates the generated Steam branding; the remaining validation gap can allow a truncated banner to replace the generated hero.

Should fix (1): not blocking, but worth doing before merging.

  • L5 src/game/steam.rs:412: The predicate accepts a truncated or corrupt file as a whole PNG because it only checks selected header bytes and the final marker. When: A file containing the PNG signature, an IHDR name and the expected dimensions followed directly by the IEND marker passes, despite having no image data. It is installed as the hero and the generated logo is removed. Do: Validate the PNG structure and image data before replacing generated artwork, and test a truncated file with a valid-looking header and ending.

Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)

  • L6: The visible Steam result has not yet been exercised with a builder-produced banner. When: The reported test only calls the PNG predicate; it does not show that the selected build's banner reaches the Steam details page or that the logo is absent. Do: After correcting the artwork path, run one end-to-end build and shortcut refresh with a player's banner and capture the resulting Steam details page.

@fix can do L5.

Since the last review (on 836ba61fc6)
Resolved: L1 (The artwork reader receives the version's builder folder instead of the selected profile's…); L7 (The pull request description does not explain that adding or updating a shortcut now runs…)
Still open: L5 (The predicate accepts a truncated or corrupt file as a whole PNG because it only checks se…); L6 (The visible Steam result has not yet been exercised with a builder-produced banner.)

Checks: Still running: 5 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven: the reported tests exercise the artwork decision, but no run shows a builder-produced banner appearing in Steam.

Other systems: The folder resolution and Steam artwork paths affect Windows and Linux. The reported automated tests ran on Linux; the visible Steam result has not been reported.

Switches: None.

Reviewed: eb7c584915 against 29c6603aa4: Read the repository instructions and contribution rules, the changes since the ledger, and the relevant portions of the full PR diff, folder resolution, artwork validation and tests. Artwork binaries and the complete changed code files were not read in full.; nothing run (a code review).

Checked and fine:

  • A failed builder query no longer sends the default build folder to a code-mod profile.
  • The description now discloses when the builder is invoked.

Testing: Reported: 289 tests passed and one was ignored, with formatting and clippy clean. CI is still running. No commands or tests were run for this review.

Overlaps and merge order: None identified from the supplied information.


Automated code review by BeanBot (gpt-6.1-terra), asked for by omgitsgela. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The selected profile no longer falls back to the default build for code-mod profiles, but whole PNG validation remains incomplete. The visible Steam result also still needs an end-to-end run. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. The launcher requests and installs a game-produced Steam hero when available, while preserving held artwork and retiring recognized launcher artwork. It also updates the generated Steam branding; the remaining validation gap can allow a truncated banner to replace the generated hero. **Should fix (1)**: not blocking, but worth doing before merging. - **L5** `src/game/steam.rs:412`: The predicate accepts a truncated or corrupt file as a whole PNG because it only checks selected header bytes and the final marker. *When:* A file containing the PNG signature, an IHDR name and the expected dimensions followed directly by the IEND marker passes, despite having no image data. It is installed as the hero and the generated logo is removed. **Do:** Validate the PNG structure and image data before replacing generated artwork, and test a truncated file with a valid-looking header and ending. **Testing before merging (1)** (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation) - **L6**: The visible Steam result has not yet been exercised with a builder-produced banner. *When:* The reported test only calls the PNG predicate; it does not show that the selected build's banner reaches the Steam details page or that the logo is absent. **Do:** After correcting the artwork path, run one end-to-end build and shortcut refresh with a player's banner and capture the resulting Steam details page. `@fix` can do L5. **Since the last review** (on 836ba61fc661) Resolved: L1 (The artwork reader receives the version's builder folder instead of the selected profile's…); L7 (The pull request description does not explain that adding or updating a shortcut now runs…) Still open: L5 (The predicate accepts a truncated or corrupt file as a whole PNG because it only checks se…); L6 (The visible Steam result has not yet been exercised with a builder-produced banner.) **Checks:** Still running: 5 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the reported tests exercise the artwork decision, but no run shows a builder-produced banner appearing in Steam. **Other systems:** The folder resolution and Steam artwork paths affect Windows and Linux. The reported automated tests ran on Linux; the visible Steam result has not been reported. **Switches:** None. **Reviewed:** eb7c58491516 against 29c6603aa473: Read the repository instructions and contribution rules, the changes since the ledger, and the relevant portions of the full PR diff, folder resolution, artwork validation and tests. Artwork binaries and the complete changed code files were not read in full.; nothing run (a code review). **Checked and fine:** - A failed builder query no longer sends the default build folder to a code-mod profile. - The description now discloses when the builder is invoked. **Testing:** Reported: 289 tests passed and one was ignored, with formatting and clippy clean. CI is still running. No commands or tests were run for this review. **Overlaps and merge order:** None identified from the supplied information. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by omgitsgela. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch feat/game-folder-hero 2026-12-02 15:08:44 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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
MagicBeanDev/LongshotLauncher!377
No description provided.