Whole file
jiujiu532/grok2api
The author described this change as “fix: 调整 statsig 动态前缀为 x1”. It counts as a record because the check below fails on the code as it stood at 1eed9e366 and passes on 4ac369f40, with nothing else changed between the two runs.
Projectjiujiu532/grok2api
Fix saved2026-06-03
Sharing licenceMIT · LICENSE
Change size+2 −2
What the code was meant to do, written into the code itself as a save note
fix: 调整 statsig 动态前缀为 x1
The change
| 69 | 69 | if cfg.get_bool("features.dynamic_statsig", False): | |
| 70 | 70 | if random.choice((True, False)): | |
| 71 | 71 | rand = "".join(random.choices(string.ascii_lowercase + string.digits, k=5)) | |
| 72 | - | msg = f"e:TypeError: Cannot read properties of null (reading 'children['{rand}']')" | |
| 72 | + | msg = f"x1:TypeError: Cannot read properties of null (reading 'children['{rand}']')" | |
| 73 | 73 | else: | |
| 74 | 74 | rand = "".join(random.choices(string.ascii_lowercase, k=10)) | |
| 75 | - | msg = f"e:TypeError: Cannot read properties of undefined (reading '{rand}')" | |
| 75 | + | msg = f"x1:TypeError: Cannot read properties of undefined (reading '{rand}')" | |
| 76 | 76 | return base64.b64encode(msg.encode()).decode() | |
| 77 | 77 | return ( | |
| 78 | 78 | "ZTpUeXBlRXJyb3I6IENhbm5vdCByZWFkIHByb3BlcnRpZXMgb2YgdW5kZWZpbmVkIChyZWFkaW5nICdjaGls" |
The check that tells the two apart
fail→pass·tests/test_statsig_id.py::StatsigIdTests::test_dynamic_statsig_uses_x1_prefix
Check file tests/test_statsig_id.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it1eed9e366df543b47f1efc13bf592127fc8e838b
Broken version dated2026-05-29
Moduleapp.dataplane.proxy.adapters.headers
Units changed_statsig_id
Fingerprint12fd53eef46146d2
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.