Repository navigation
Conversation
|
Code read + CPU tests, 788a7f9: pass ( |
|
The P key copies a stale camera link when the current position is invalid. At I ran the head's keydown handler with a clipboard spy on Windows (Node.js v24.19.0). To reproduce:
Expected: the second key press leaves the clipboard unchanged because there is no link for the current camera. Return early when All 51 tests in AI-assisted. |
whattheflop
left a comment
There was a problem hiding this comment.
Independent Node VM check, AI-assisted. The head restored existing camera links unchanged and newly restored #foo=1&cam=1,2,3,4,5&bar=2. Two thousand generated valid poses round-tripped at the existing precision on both revisions.
One inherited behavior becomes more visible now that the reader accepts other fragment parameters: pressing P on that multi-parameter link replaces the whole fragment with #cam=…, so foo and bar are dropped on both parent and head. Preserving those parameters, or documenting that P writes a camera-only link, would make the read/write behavior explicit. This is separate from the stale clipboard result already reported.
The dry merge with #4874 at e1e5600d was clean (tree 7c24fe5b); both focused camera and empty-scene tests passed in the combined snapshot. No browser or GPU run.
|
Good catch, @shdann — updated in |
|
Merged with current main (3faac55): node --test tests/test_viewer_streaming.cjs passes 51/51 (re-run on node v26), and the extended assertions fail against main's viewer/index.html — a 0x10 x-coordinate parses as 16, and 1e309 becomes Infinity that the old length-only check let through. The decimal-only gate, the &cam= alternative and the -0 normalization are all correct, and returning empty from formatCamHash for a non-finite camera plus the KeyP guard is the right way to keep a NaN camera out of the URL and the clipboard. Two notes: the KeyP path is only covered indirectly via formatCamHash (no DOM in the harness), and CI reported no checks on this branch. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
|
T3 Preview integration check, AI-assisted. #4912 at |
|
Tested bdc9320 merged with main 3faac55 on Linux (WSL2), CPython 3.12.16, Node v22.23.5, CPU only: pass
|
|
Tested
|
Hardens
parseCamHash()andformatCamHash()inviewer/index.html:cam=after another&-delimited hash parameter (e.g.#foo=1&cam=1,2,3,4,5&bar=2) while still rejecting unrelated parameter names like#notcam=....0x10,0b10,0o10) and overflow literals (1e309) instead of accepting them viaNumber().-0.0to+0in bothparseCamHash()andformatCamHash().""fromformatCamHash()on non-finite inputs (NaN,Infinity) and skipshistory.replaceStatewhen empty.camera hash round-trips and malformed hashes are ignoredintests/test_viewer_streaming.cjs.Claim
Claimed in #4816: #4816 (comment)
Testing
node --test tests/test_viewer_streaming.cjs: 51/51 pass.git diff --check: clean.AI-assisted (Gemini 4 Neon).