Skip to content

fix(quick-restart): handle quick restart in long tests (@Leonabcd123)#8060

Open
Leonabcd123 wants to merge 38 commits into
monkeytypegame:masterfrom
Leonabcd123:fix/quick-restart-long-test
Open

fix(quick-restart): handle quick restart in long tests (@Leonabcd123)#8060
Leonabcd123 wants to merge 38 commits into
monkeytypegame:masterfrom
Leonabcd123:fix/quick-restart-long-test

Conversation

@Leonabcd123
Copy link
Copy Markdown
Contributor

@Leonabcd123 Leonabcd123 commented Jun 4, 2026

Fixes #8059

  • Added a new util function called createHotkeys that functions as a wrapper around @tanstack/hotkeys's createHotkeys.
  • Rerun both quick restart hotkeys only when hotkeys.quickRestart changes. All other reactive value changes are ignored.
  • Created the quick restart hotkeys via createHotkeys, and change their creation order, such that primary quick restart hotkey is created last. This is so the secondary hotkey won't override the primary hotkey when test isn't long.

@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Jun 4, 2026
@Leonabcd123 Leonabcd123 marked this pull request as ready for review June 4, 2026 18:15
@github-actions github-actions Bot added the waiting for review Pull requests that require a review before continuing label Jun 4, 2026
@fehmer
Copy link
Copy Markdown
Member

fehmer commented Jun 4, 2026

We recently updated tanstack/hotkeys. Could you verify the issue already existed with the old version? Thanks

@Leonabcd123
Copy link
Copy Markdown
Contributor Author

We recently updated tanstack/hotkeys. Could you verify the issue already existed with the old version? Thanks

Tested on 4a1e6f7 (one commit before the @tanstack/* bumps), bug still occurs.

@Leonabcd123 Leonabcd123 marked this pull request as draft June 5, 2026 11:34
@github-actions github-actions Bot removed the waiting for review Pull requests that require a review before continuing label Jun 5, 2026
@Leonabcd123 Leonabcd123 marked this pull request as ready for review June 5, 2026 15:48
@github-actions github-actions Bot added the waiting for review Pull requests that require a review before continuing label Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff waiting for review Pull requests that require a review before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quick restart isn't respected after switching to long test

3 participants