monkeytypegame / monkeytypegame/monkeytype

Switching between test modes doesn't always restart the test with the new mode

Open
#8,333 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
20.7k
Forks
3.3k
PR merge metrics
No merged PRs in 30d

Description

Did you clear cache before opening an issue?
  • I have cleared my cache
Is there an existing issue for this?
  • I have searched the existing open and closed issues
Does the issue happen when logged in?

Yes

Does the issue happen when logged out?

Yes

Does the issue happen in incognito mode when logged in?

Yes

Does the issue happen in incognito mode when logged out?

Yes

Account name

No response

Account config

No response

Current Behavior

If you quickly change your test mode twice (e.g., start at time, change to words and then to quote), the test can still be a words test instead of a quotes test.

Expected Behavior

Test should contain a quote, rather than the random words generated in the words mode.

Steps To Reproduce
  1. Change your mode to time
  2. Using the test config bar, change your mode to words
  3. Quickly, change your mode to quote
  4. Notice how you still have the words from the words mode, rather than a quote
Environment
  • OS: Arch Linux
  • Browser: Firefox
  • Browser Version: 153.0.3
Anything else?

https://github.com/user-attachments/assets/5cc502d1-2031-4d09-925c-e48b50193473

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the rapid time → words → quote sequence using the test config bar, then trace the mode-change and test-restart flow from that UI entry point. Confirm the final test uses quote content rather than the earlier words content, including when changes happen quickly.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.