Repository navigation
find_hash_lookup: hash a name as the pinned latin-1 joaat does; the streaming sandbox gets AbortController - #7820
Closed
Friendships6666 wants to merge 1 commit into
Conversation
Friendships6666
force-pushed
the
joaat-latin-1-and-viewer-abortcontroller
branch
from
November 23, 2026 17:43
f6551ea to
b857374
Compare
Author
This was referenced Nov 23, 2026
|
Tested
#4753, #6254 and #4882 make the same encoding change and also turn this file green. Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting; claimed in #8047. |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two unrelated reds, easy to split if you want them apart.
find_hash_lookup.joaaton UTF-8. Every other copy intools/hashestext.lower().encode("latin-1", "replace")—hashdict.joaat,audio_config.joaat32,world_names.hash_name— because that is the name hash the records and banks carry (docs/audio_config.md:245).find_hash_lookupwas the last one left on UTF-8, as its own docstring said ("over the lower-cased name"). Any name with an accented character hashes to a different 32 bits, so the lookup can never resolve it.test_joaat_agreementnames six. Measured:joaat('Radio_LosSantos_Café')is 974630864 againsthashdict's 811395798.Not covered by #6254, which fixed the same rule in
audio_configandworld_names; it does not touch this file.test_viewer_streaming.cjson Node 26. The viewer'sloadWorldusesAbortController, which Node 26 has as a global butvm.runInNewContextonly copies when the sandbox names it, so one of the 57 tests died withReferenceErrorwhile 56 passed. Node 22 and 24 expose it in the new context and were green either way. The sandbox now namesAbortController, andsetTimeout/clearTimeoutwith it sinceloadWorldalso uses those.Test
python -I tests/test_joaat_agreement.pyis green (red before, onmain, with the six names).node --test tests/test_viewer_streaming.cjsis 57/57,fail 0(red before with theReferenceError).python -m compileall -q make_game.py tools testsis clean. Measured over the suite: 14 red standalone files before, 11 after, nothing green turned red.Linux, Python 3.14.8, Node 26.11.1, no GPU, no game files.