fix(window): the "operation in progress" notice goes once nothing runs #398

Merged
HumanBean merged 1 commit from Jiro113/LongshotLauncher:busy-notice into main 2026-12-04 03:49:55 +00:00
Member

Closing the launcher during an operation (a cleanup, a mod install, a folder change…) shows "An operation is in progress. Let it finish or cancel it before closing the launcher." at the top of the window. That notice stayed after the operation had ended, until Ignore was pressed.

What

  • busy_notice (src/main.rs) sets the notice and remembers it in a new busy-notice property of the window. It is used for the two notices about a running operation: "An operation is in progress…" when closing, and "Use Cancel on the build screen…" when going back during a build step.
  • When navigation-locked turns false (ui/main.slint), the window clears the notice if it is still that one; a notice set since (an error, for example) stays.

Rebased on main 3898cb1. #292 had meanwhile translated both notices (i18n::now and the catalogs), so the translation this PR first carried is gone from it, and main's formatting of src/storage/reclaim.rs made its formatting commit unneeded. What is left is the clearing.

Screenshots (French, 1280×800, drawn by the software renderer in a test, taken before the rebase): in the comment below. The clearing is unchanged by the rebase.

Tests

  • New: navigation_tests::the_busy_notice_goes_when_the_operation_ends_and_a_later_notice_stays builds the window, starts a cleanup, sets the notice, ends the cleanup: the notice is gone; with an error set after the busy notice, the error stays. It fails when the clearing line is undone, and when the notice == busy-notice check is dropped. It calls busy_notice directly: the close handler and the Escape path on the build screen are not covered by a test.
  • cargo fmt --check and cargo clippy --locked --workspace --all-targets -- -D warnings pass on Windows. cargo test on Windows: 334 pass, 1 fails (update::releases::tests::release_py_fixture_verifies_exact_bytes_only, which fails on main on this PC too). scripts/translations.py: 15 catalogs valid. Tooling's test_release.py passes.
  • Seen while reviewing, unchanged here: closing the window on the build page with only the folders dialog open also says an operation is in progress (navigation-locked includes folders-open); the notice now goes when the dialog closes.
  • Not tested: on Linux (CI will), and closing the real window during a real operation.

🤖 Generated with Claude Code

Closing the launcher during an operation (a cleanup, a mod install, a folder change…) shows "An operation is in progress. Let it finish or cancel it before closing the launcher." at the top of the window. That notice stayed after the operation had ended, until Ignore was pressed. ## What - `busy_notice` (src/main.rs) sets the notice and remembers it in a new `busy-notice` property of the window. It is used for the two notices about a running operation: "An operation is in progress…" when closing, and "Use Cancel on the build screen…" when going back during a build step. - When `navigation-locked` turns false (ui/main.slint), the window clears the notice if it is still that one; a notice set since (an error, for example) stays. Rebased on main 3898cb1. #292 had meanwhile translated both notices (`i18n::now` and the catalogs), so the translation this PR first carried is gone from it, and main's formatting of src/storage/reclaim.rs made its formatting commit unneeded. What is left is the clearing. Screenshots (French, 1280×800, drawn by the software renderer in a test, taken before the rebase): in the comment below. The clearing is unchanged by the rebase. ## Tests - New: `navigation_tests::the_busy_notice_goes_when_the_operation_ends_and_a_later_notice_stays` builds the window, starts a cleanup, sets the notice, ends the cleanup: the notice is gone; with an error set after the busy notice, the error stays. It fails when the clearing line is undone, and when the `notice == busy-notice` check is dropped. It calls `busy_notice` directly: the close handler and the Escape path on the build screen are not covered by a test. - `cargo fmt --check` and `cargo clippy --locked --workspace --all-targets -- -D warnings` pass on Windows. `cargo test` on Windows: 334 pass, 1 fails (`update::releases::tests::release_py_fixture_verifies_exact_bytes_only`, which fails on main on this PC too). `scripts/translations.py`: 15 catalogs valid. Tooling's `test_release.py` passes. - Seen while reviewing, unchanged here: closing the window on the build page with only the folders dialog open also says an operation is in progress (`navigation-locked` includes `folders-open`); the notice now goes when the dialog closes. - Not tested: on Linux (CI will), and closing the real window during a real operation. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Closing the window during an operation (a cleanup, a mod install...)
shows a notice that stayed after the operation ended until Ignore was
pressed, and it was always in English.

The window now clears that notice when navigation-locked turns false,
unless another notice replaced it since. Both busy notices are catalog
keys, shown through Locale.t, with translations in the 12 full
catalogs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
cargo fmt --check fails on main since #396 (43bd13b).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(window): the test sees the lock again before checking a later notice stays
Some checks failed
PR title / Conventional Commit title (pull_request) Has been cancelled
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
c41dbd1ee9
Without a turn of the event loop between the two cleaning changes,
Slint's change tracker never saw true, so the second half passed even
without the notice == busy-notice check. Also drop a redundant
condition and write the Japanese button name in 「」 like the rest of
that catalog.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Screenshots (French, 1280×800, software renderer in a test, not committed): the notice while a cleanup runs, then the same window once the cleanup has ended.

During the cleanup

After the cleanup

Screenshots (French, 1280×800, software renderer in a test, not committed): the notice while a cleanup runs, then the same window once the cleanup has ended. ![During the cleanup](https://git.magicbean.dev/attachments/164b78d2-6bbf-4196-a262-5e3c4b9d7afc) ![After the cleanup](https://git.magicbean.dev/attachments/643db72b-e3d0-4812-8feb-7c1db44e770e)
Member

Possibly related, for context:

  • PR #324 fix(launcher): return Home to active launches and stop preparation on exit — Prior window-close handling during launch preparation
Possibly related, for context: - PR #324 fix(launcher): return Home to active launches and stop preparation on exit — Prior window-close handling during launch preparation
Member
@review
BeanBot requested changes 2026-12-03 06:01:54 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (L2) The new test and screenshots support the notice-clearing behavior, but the actual close and back actions have not been exercised during an operation. The pull request is also still marked WIP.

The launcher clears a busy notice when navigation unlocks, preserves a later notice, and translates the two busy messages. The storage change only formats existing Windows code.

Blocking (1): must change before merging.

  1. L2: It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (for the author)

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)

  • L1 src/main.rs:327: The real window-close and build-screen back paths have not been exercised during an operation. (more on the line) Do: Run the launcher once with a non-English language, attempt to close during a real operation, and verify the notice appears and clears; also exercise back during a non-building busy build step.

Checks: Still running: 5 checks.

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

Does it help: Unproven end to end: the author reports a passing software-window test and French screenshots, but no run through the real close or build-screen back action during an operation. This is not a performance change.

Other systems: The notice and lock are shared across launcher operations on Windows and Linux; the clearing logic is UI-level and does not change the operations themselves. Regional French and Spanish catalogs fall back to their parent catalogs. Linux CI is still running.

Switches: None.

Reviewed: c41dbd1ee9 against f41fd1dca6: Read AGENTS.md, CONTRIBUTING.md, the commit log and diffs, src/main.rs, ui/main.slint, src/storage/reclaim.rs, and the relevant locale and operation-completion code. Skimmed the changed translation entries and the reported runs. No review checklist or pull request template was present.; nothing run (a code review).

Checked and fine:

  • The test checks both clearing the busy notice and preserving a different later notice.
  • All three commits include AI-assistance trailers.
  • The changed files contain no game-derived outputs.
  • The Windows storage edit preserves the existing operations.

Testing: No code or tests were run during this review. The author reports 278 passing Windows tests, existing failures, one failure attributed to a running game, passing formatting and Clippy, and valid translation catalogs; CI is still running.

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


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

**Recommendation: Request changes.** It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). (L2) The new test and screenshots support the notice-clearing behavior, but the actual close and back actions have not been exercised during an operation. The pull request is also still marked WIP. The launcher clears a busy notice when navigation unlocks, preserves a later notice, and translates the two busy messages. The storage change only formats existing Windows code. **Blocking (1)**: must change before merging. 1. **L2**: It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). *(for the author)* **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) - **L1** `src/main.rs:327`: The real window-close and build-screen back paths have not been exercised during an operation. (more on the line) **Do:** Run the launcher once with a non-English language, attempt to close during a real operation, and verify the notice appears and clears; also exercise back during a non-building busy build step. **Checks:** Still running: 5 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven end to end: the author reports a passing software-window test and French screenshots, but no run through the real close or build-screen back action during an operation. This is not a performance change. **Other systems:** The notice and lock are shared across launcher operations on Windows and Linux; the clearing logic is UI-level and does not change the operations themselves. Regional French and Spanish catalogs fall back to their parent catalogs. Linux CI is still running. **Switches:** None. **Reviewed:** c41dbd1ee966 against f41fd1dca635: Read AGENTS.md, CONTRIBUTING.md, the commit log and diffs, src/main.rs, ui/main.slint, src/storage/reclaim.rs, and the relevant locale and operation-completion code. Skimmed the changed translation entries and the reported runs. No review checklist or pull request template was present.; nothing run (a code review). **Checked and fine:** - The test checks both clearing the busy notice and preserving a different later notice. - All three commits include AI-assistance trailers. - The changed files contain no game-derived outputs. - The Windows storage edit preserves the existing operations. **Testing:** No code or tests were run during this review. The author reports 278 passing Windows tests, existing failures, one failure attributed to a running game, passing formatting and Clippy, and valid translation catalogs; CI is still running. **Overlaps and merge order:** None identified from the supplied information. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -309,3 +325,3 @@
ui.set_notice("An operation is in progress. Let it finish or cancel it before closing the launcher.".into());
busy_notice(&ui, STILL_RUNNING);
}
CloseRequestResponse::KeepWindowShown
Member

L1 (should fix): The real window-close and build-screen back paths have not been exercised during an operation.

When: The new test calls busy_notice directly, so it does not check that the actual actions show the translated notice and that it clears after the operation ends.

Do: Run the launcher once with a non-English language, attempt to close during a real operation, and verify the notice appears and clears; also exercise back during a non-building busy build step.

**L1** (should fix): The real window-close and build-screen back paths have not been exercised during an operation. *When:* The new test calls busy_notice directly, so it does not check that the actual actions show the translated notice and that it clears after the operation ends. **Do:** Run the launcher once with a non-English language, attempt to close during a real operation, and verify the notice appears and clears; also exercise back during a non-building busy build step.
Jiro113 changed title from WIP: fix(window): the "operation in progress" notice goes once nothing runs, and is translated to fix(window): the "operation in progress" notice goes once nothing runs, and is translated 2026-12-03 11:26:19 +00:00
Author
Member
@review
BeanBot requested changes 2026-12-03 11:26:45 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (L2) The notice-clearing logic is covered by a focused test, but the real close and build-screen back paths still need an end-to-end run. The pull request also conflicts with its base and cannot merge as reported.

The launcher clears an operation notice when navigation unlocks while preserving a later notice, and translates the two operation messages. The change adds a small amount of UI state and a focused test.

Blocking (1): must change before merging.

  1. L2: It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (for the author)

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)

  • L1 src/main.rs:327: The real window-close and build-screen back paths have not been exercised during an operation. When: The new test calls busy_notice directly, so it does not check that the actual actions show the translated notice and that it clears after the operation ends. Do: Run the launcher once with a non-English language, attempt to close during a real operation, and verify the notice appears and clears; also exercise back during a non-building busy build step.

Since the last review (on c41dbd1ee9)
Still open: L1 (The real window-close and build-screen back paths have not been exercised during an operat…); L2 (It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first).)

Checks: Still running: 5 checks.

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

Does it help: Unproven: the reported test exercises the clearing logic directly, and French screenshots show the notice during and after a simulated cleanup; the real close and back paths have not been exercised.

Other systems: The notice and navigation lock are shared across launcher operations and both Windows and Linux. The reported test used a software-rendered window; a real operation has not been checked.

Switches: None.

Reviewed: c41dbd1ee9 against f41fd1dca6: Read repository rules, commit log, code diff and ledger-related close, back and navigation-lock paths. Skimmed translation diffs and the changed files; full-file command output was truncated, so not all of their contents were read.; nothing run (a code review).

Checked and fine:

  • The clearing condition preserves a different notice set after the busy notice.
  • The description reports the test limitations and includes screenshots.

Testing: Reported Windows formatting and Clippy checks passed; the reported test run had failures also seen on main and one attributed to a running game. Linux CI is still running. No commands or tests from the project were run for this review.

Overlaps and merge order: None found.


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

**Recommendation: Request changes.** It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). (L2) The notice-clearing logic is covered by a focused test, but the real close and build-screen back paths still need an end-to-end run. The pull request also conflicts with its base and cannot merge as reported. The launcher clears an operation notice when navigation unlocks while preserving a later notice, and translates the two operation messages. The change adds a small amount of UI state and a focused test. **Blocking (1)**: must change before merging. 1. **L2**: It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). *(for the author)* **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) - **L1** `src/main.rs:327`: The real window-close and build-screen back paths have not been exercised during an operation. *When:* The new test calls busy_notice directly, so it does not check that the actual actions show the translated notice and that it clears after the operation ends. **Do:** Run the launcher once with a non-English language, attempt to close during a real operation, and verify the notice appears and clears; also exercise back during a non-building busy build step. **Since the last review** (on c41dbd1ee966) Still open: L1 (The real window-close and build-screen back paths have not been exercised during an operat…); L2 (It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first).) **Checks:** Still running: 5 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the reported test exercises the clearing logic directly, and French screenshots show the notice during and after a simulated cleanup; the real close and back paths have not been exercised. **Other systems:** The notice and navigation lock are shared across launcher operations and both Windows and Linux. The reported test used a software-rendered window; a real operation has not been checked. **Switches:** None. **Reviewed:** c41dbd1ee966 against f41fd1dca635: Read repository rules, commit log, code diff and ledger-related close, back and navigation-lock paths. Skimmed translation diffs and the changed files; full-file command output was truncated, so not all of their contents were read.; nothing run (a code review). **Checked and fine:** - The clearing condition preserves a different notice set after the busy notice. - The description reports the test limitations and includes screenshots. **Testing:** Reported Windows formatting and Clippy checks passed; the reported test run had failures also seen on main and one attributed to a running game. Linux CI is still running. No commands or tests from the project 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 Jiro113. Nothing was run; a maintainer decides.</sub>
BeanBot left a comment

Recommendation: Request changes. It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (L2) The notice-clearing behavior has a focused test, but the real close and back paths still need an end-to-end run. The pull request also conflicts with its base and cannot be merged as reported.

The launcher clears an operation notice when navigation unlocks, preserves a later notice, and translates the two operation messages. The change adds a small amount of UI state and a focused test.

Blocking (1): must change before merging.

  1. L2: It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (for the author)

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)

  • L1 src/main.rs:327: The real window-close and build-screen back paths have not been exercised during an operation. When: The new test calls busy_notice directly, so it does not check that the actual actions show the translated notice and that it clears after the operation ends. Do: Run the launcher once with a non-English language, attempt to close during a real operation, and verify the notice appears and clears; also exercise back during a non-building busy build step.

Since the last review (on c41dbd1ee9)
Still open: L1 (The real window-close and build-screen back paths have not been exercised during an operat…); L2 (It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first).)

Checks: Still running: 5 checks.

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

Does it help: Unproven for the real window paths: the reported test exercises the clearing logic directly, and the French screenshots show the notice during and after a cleanup. The close and build-screen back actions during real operations have not been exercised.

Other systems: The notice and navigation-lock logic is shared across launcher operations and platforms. Windows test results and software-rendered French screenshots are reported; Linux and real-operation UI runs are not reported.

Switches: None.

Reviewed: c41dbd1ee9 against f41fd1dca6: Read AGENTS.md and CONTRIBUTING.md, the commit list, the code diff, and the changed translation entries. Inspected the affected close, back, notice and navigation-lock references; the complete changed code files and their callers were not read in full. No review checklist or pull request template was found.; nothing run (a code review).

Checked and fine:

  • The unlock handler clears the notice only when it still equals the remembered busy notice.
  • The description explains the separate formatting change and includes screenshots.

Testing: No commands that execute project code or tests were run. The author reports Windows formatting and Clippy passes, translation validation, and test failures also seen on main except for one test affected by an open game process; CI is still running.

Overlaps and merge order: None identified.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as Jiro113 took it out of WIP. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). (L2) The notice-clearing behavior has a focused test, but the real close and back paths still need an end-to-end run. The pull request also conflicts with its base and cannot be merged as reported. The launcher clears an operation notice when navigation unlocks, preserves a later notice, and translates the two operation messages. The change adds a small amount of UI state and a focused test. **Blocking (1)**: must change before merging. 1. **L2**: It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). *(for the author)* **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) - **L1** `src/main.rs:327`: The real window-close and build-screen back paths have not been exercised during an operation. *When:* The new test calls busy_notice directly, so it does not check that the actual actions show the translated notice and that it clears after the operation ends. **Do:** Run the launcher once with a non-English language, attempt to close during a real operation, and verify the notice appears and clears; also exercise back during a non-building busy build step. **Since the last review** (on c41dbd1ee966) Still open: L1 (The real window-close and build-screen back paths have not been exercised during an operat…); L2 (It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first).) **Checks:** Still running: 5 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven for the real window paths: the reported test exercises the clearing logic directly, and the French screenshots show the notice during and after a cleanup. The close and build-screen back actions during real operations have not been exercised. **Other systems:** The notice and navigation-lock logic is shared across launcher operations and platforms. Windows test results and software-rendered French screenshots are reported; Linux and real-operation UI runs are not reported. **Switches:** None. **Reviewed:** c41dbd1ee966 against f41fd1dca635: Read AGENTS.md and CONTRIBUTING.md, the commit list, the code diff, and the changed translation entries. Inspected the affected close, back, notice and navigation-lock references; the complete changed code files and their callers were not read in full. No review checklist or pull request template was found.; nothing run (a code review). **Checked and fine:** - The unlock handler clears the notice only when it still equals the remembered busy notice. - The description explains the separate formatting change and includes screenshots. **Testing:** No commands that execute project code or tests were run. The author reports Windows formatting and Clippy passes, translation validation, and test failures also seen on main except for one test affected by an open game process; CI is still running. **Overlaps and merge order:** None identified. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as Jiro113 took it out of WIP. Nothing was run; a maintainer decides.</sub>
Jiro113 changed title from fix(window): the "operation in progress" notice goes once nothing runs, and is translated to fix(window): the "operation in progress" notice goes once nothing runs 2026-12-03 11:37:27 +00:00
Jiro113 force-pushed busy-notice from c41dbd1ee9
Some checks failed
PR title / Conventional Commit title (pull_request) Has been cancelled
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
to 60585ec0de
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
2026-12-03 11:37:27 +00:00
Compare
Author
Member

Rebased on main 3898cb1 (backup of the old head: c41dbd1), for L2.

#292 already translates both notices, so this PR now only clears the busy notice once nothing runs: one commit, src/main.rs and ui/main.slint. The catalogs, Locale.t in the banner and the reclaim.rs formatting commit are gone. Same test, still failing without the clearing or without the notice == busy-notice check.

L1 (the real close and back actions during an operation, in another language): not run yet; I will post it here once done.

Rebased on main 3898cb1 (backup of the old head: c41dbd1), for L2. #292 already translates both notices, so this PR now only clears the busy notice once nothing runs: one commit, src/main.rs and ui/main.slint. The catalogs, `Locale.t` in the banner and the reclaim.rs formatting commit are gone. Same test, still failing without the clearing or without the `notice == busy-notice` check. L1 (the real close and back actions during an operation, in another language): not run yet; I will post it here once done.
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left (a run of the change itself). The notice-clearing logic and its focused test cover the intended state change, and the rebase resolves the conflict. The real close and build-screen back paths still need the requested UI run. Recommend approval; not approved on the forge.

The launcher clears an operation notice when navigation unlocks while retaining a different later notice. The change is small and keeps the existing translated messages.

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)

  • L1 src/main.rs:327: The real window-close and build-screen back paths have not been exercised during an operation. When: The new test calls busy_notice directly, so it does not check that the actual actions show the translated notice and that it clears after the operation ends. Do: Run the launcher once with a non-English language, attempt to close during a real operation, and verify the notice appears and clears; also exercise back during a non-building busy build step.

Since the last review (on c41dbd1ee9)
Resolved: L2 (It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first).)
Still open: L1 (The real window-close and build-screen back paths have not been exercised during an operat…)

Checks: Still running: 5 checks.

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

Does it help: Unproven: the reported test exercises the clearing and preservation logic directly, but the real close and back actions during an operation have not been run.

Other systems: The same navigation lock covers cleanup, folder changes, mods, builds and updates on Windows and Linux. The clearing logic is shared UI code; the reported test uses a software-rendered window on Windows.

Switches: None.

Reviewed: 60585ec0de against 3898cb1bb0: Read AGENTS.md and CONTRIBUTING.md, the current diff and commit, and the relevant notice, navigation and close-handler code. Skimmed the remaining portions of src/main.rs and ui/main.slint and the earlier diff; no review checklist or pull request template was found.; nothing run (a code review).

Checked and fine:

  • Both notice callers retain the existing i18n::now translations.
  • The unlock handler preserves a later notice with different text.
  • The focused test checks both clearing and preservation.

Testing: No commands or tests were run during review. The author reports Windows formatting, Clippy and UI test results; CI is still running.

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


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

**Recommendation: Approve.** The code is ready: only testing is left (a run of the change itself). The notice-clearing logic and its focused test cover the intended state change, and the rebase resolves the conflict. The real close and build-screen back paths still need the requested UI run. Recommend approval; not approved on the forge. The launcher clears an operation notice when navigation unlocks while retaining a different later notice. The change is small and keeps the existing translated messages. **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) - **L1** `src/main.rs:327`: The real window-close and build-screen back paths have not been exercised during an operation. *When:* The new test calls busy_notice directly, so it does not check that the actual actions show the translated notice and that it clears after the operation ends. **Do:** Run the launcher once with a non-English language, attempt to close during a real operation, and verify the notice appears and clears; also exercise back during a non-building busy build step. **Since the last review** (on c41dbd1ee966) Resolved: L2 (It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first).) Still open: L1 (The real window-close and build-screen back paths have not been exercised during an operat…) **Checks:** Still running: 5 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the reported test exercises the clearing and preservation logic directly, but the real close and back actions during an operation have not been run. **Other systems:** The same navigation lock covers cleanup, folder changes, mods, builds and updates on Windows and Linux. The clearing logic is shared UI code; the reported test uses a software-rendered window on Windows. **Switches:** None. **Reviewed:** 60585ec0de3a against 3898cb1bb057: Read AGENTS.md and CONTRIBUTING.md, the current diff and commit, and the relevant notice, navigation and close-handler code. Skimmed the remaining portions of src/main.rs and ui/main.slint and the earlier diff; no review checklist or pull request template was found.; nothing run (a code review). **Checked and fine:** - Both notice callers retain the existing i18n::now translations. - The unlock handler preserves a later notice with different text. - The focused test checks both clearing and preservation. **Testing:** No commands or tests were run during review. The author reports Windows formatting, Clippy and UI test results; CI is still running. **Overlaps and merge order:** None found in the supplied information. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by Jiro113. Nothing was run; a maintainer decides.</sub>
Author
Member

L1, run on Windows 11 with the debug build of 60585ec, French (the system language), a temporary launcher home (LONGSHOT_LAUNCHER_HOME) holding a synthetic previous-launcher RomFS extraction of 50,000 small files:

  1. Settings › Storage › Previous launcher › Extracted RomFS › Clean up, then Clean up in the review dialog.
  2. While the files were being removed, the window got a real close request (WM_CLOSE posted to it, the message the title bar and Alt+F4 send). The launcher stayed open and showed the notice, in French.
  3. When the removal ended, the notice went away on its own, with nothing clicked. Closing the window again then closed the launcher (exit code 0).

During the cleanup, after the close request

After the cleanup

Not run: going back on the build screen during a busy step other than Building ("Use Cancel on the build screen…"). Reaching that step needs a real game copy, which this PC's test home doesn't have. That path calls the same busy_notice and is cleared by the same handler.

L1, run on Windows 11 with the debug build of 60585ec, French (the system language), a temporary launcher home (`LONGSHOT_LAUNCHER_HOME`) holding a synthetic previous-launcher RomFS extraction of 50,000 small files: 1. Settings › Storage › Previous launcher › Extracted RomFS › Clean up, then Clean up in the review dialog. 2. While the files were being removed, the window got a real close request (`WM_CLOSE` posted to it, the message the title bar and Alt+F4 send). The launcher stayed open and showed the notice, in French. 3. When the removal ended, the notice went away on its own, with nothing clicked. Closing the window again then closed the launcher (exit code 0). ![During the cleanup, after the close request](https://git.magicbean.dev/attachments/db3be109-915a-4577-b348-5e5ed3293ebe) ![After the cleanup](https://git.magicbean.dev/attachments/25c77630-849a-4c93-b1a3-2ae033f546e8) Not run: going back on the build screen during a busy step other than Building ("Use Cancel on the build screen…"). Reaching that step needs a real game copy, which this PC's test home doesn't have. That path calls the same `busy_notice` and is cleared by the same handler.
Jiro113 force-pushed busy-notice from 60585ec0de
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
to 593a4125b2
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Blocked by required conditions
CI / Rust formatting, lint and tests (pull_request) Blocked by required conditions
CI / Release packages and stable upgrades (pull_request) Blocked by required conditions
PR title / Conventional Commit title (pull_request) Blocked by required conditions
2026-12-03 15:30:41 +00:00
Compare
HumanBean deleted branch busy-notice 2026-12-04 03:49:55 +00:00
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Blocked by required conditions
CI / Rust formatting, lint and tests (pull_request) Blocked by required conditions
CI / Release packages and stable upgrades (pull_request) Blocked by required conditions
PR title / Conventional Commit title (pull_request) Blocked by required conditions
Some workflows are waiting to be reviewed.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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!398
No description provided.