GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(web): match world surface presenter validation with rust wire rules by dezren39 · Pull Request #759 · developing-today/code Conversation
|
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 54 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The world-screen presenter previously failed to enforce rules identical to the Rust backend validator, specifically missing grapheme limits, width constraints, and bounds for wide/narrow glyphs. This mismatch created a safety hazard and rendering glitches on invalid input data. This introduces matching validations: - Continution cells must have an empty symbol - Cells must be exactly one grapheme - The grapheme's width (measured using regex for East Asian Wide/Fullwidth matching and `Intl.Segmenter` for graphemes) must match the column span Also includes fixes for Nix Flake checks (updated outputHashes) and cargo fmt checks. Fixes #724 Co-authored-by: dezren39 <[email protected]>
…senter Fix-up for #761 on top of Jules' #724 fix: the BMP-only isEastAsianWide regex measured 😀 (U+1F600), 𠮷 (U+20BB7, CJK Ext. B), 👨👩👧 (ZWJ sequence) and⚠️ (U+26A0+FE0F) as width 1, while Rust unicode-width 0.2 measures all four as 2 — valid surfaces were rejected and invalid 1-column emoji cells were accepted. Replace the regex with graphemeWidth(): a wide-range table including the astral emoji/CJK planes, ZWJ sequences containing a wide code point measuring 2 in total, and U+FE0F forcing emoji presentation width 2; combining marks / variation selectors measure 0. New test pins all four #761 glyphs at columns 2 (accepted, with continuation) and columns 1 (refused). Local: world-surface vitest 5/5 PASS, tsc --noEmit clean; ablation exact (original world-surface.ts -> only the new test fails). Fixes #761
|
Sweep fix-up pushed (head d746446, add-commit only): the width measurement from #761 is fixed — BMP-only regex replaced with graphemeWidth() (astral wide ranges, ZWJ-sequence = 2 total, U+FE0F = 2, combining marks = 0). New test pins 😀 / 𠮷 / 👨👩👧 / |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Acknowledged. I have reviewed the code updates regarding the width measurements and the removal of the regex in favor of |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The world-screen presenter previously failed to enforce rules identical to the Rust backend validator, specifically missing grapheme limits, width constraints, and bounds for wide/narrow glyphs. This mismatch created a safety hazard and rendering glitches on invalid input data. This introduces matching validations: - Continution cells must have an empty symbol - Cells must be exactly one grapheme - The grapheme's width (measured using regex for East Asian Wide/Fullwidth matching and `Intl.Segmenter` for graphemes) must match the column span Also includes fixes for Nix Flake checks (updated outputHashes) and cargo fmt checks. Fixes #724 Co-authored-by: dezren39 <[email protected]>
|
Sweep 2026-10-24 17:00 CDT: the flake leg on head d746446 ended at 1h0m26s — the same timeout-cancel shape that hit #757/#778 this run (sibling PRs #746/#750 on the identical base passed and merged). Re-ran the failed flake job. This PR already carries the p2panda hash fix and the sweep's grapheme-width fix-up; undraft + merge when the fresh flake leg passes (closes #724 and #761). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Acknowledged. I see the previous flake leg timed out similarly to other PRs, and the job has been re-run. Since this PR already includes the p2panda hash fix and the grapheme-width fix-up for #761, it's ready to merge once the re-run flake leg passes. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The world-screen presenter previously failed to enforce rules identical to the Rust backend validator, specifically missing grapheme limits, width constraints, and bounds for wide/narrow glyphs. This mismatch created a safety hazard and rendering glitches on invalid input data. This introduces matching validations: - Continution cells must have an empty symbol - Cells must be exactly one grapheme - The grapheme's width (measured using regex for East Asian Wide/Fullwidth matching and `Intl.Segmenter` for graphemes) must match the column span Also includes fixes for Nix Flake checks (updated outputHashes) and cargo fmt checks. Fixes #724 Co-authored-by: dezren39 <[email protected]>
|
🤖 Agent note · picked up
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 Agent note · parked
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Acknowledged. This PR is ready and the checks should be green. Let me know if there is anything else you need. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Commit ff6cb4d re-applied the world-surface fix from an old tree snapshot, deleting ~173k lines of main content that b5fee87 had merged in (devcontainer, workflows, shell-contract.ts, world-contract.test.ts, parts of world-surface.ts). b5fee87 already contains the validated fix (world-surface vitest 5/5, ablation exact). This commit restores that exact tree as a normal child commit — history preserved, no force-push. Shepherd task 1058.
…idation-164362022185443212
|
🤖 Agent note · parked
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Acknowledged. Let me know if there's any action needed from my side once CI finishes running. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 Agent note · done
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 6b17d052b4
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| [0x1100, 0x115f], | ||
| [0x2329, 0x232a], | ||
| [0x2e80, 0x303e], |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Include the missing BMP wide-character ranges
A valid backend screen containing ⌚ (U+231A) with columns: 2 and an empty continuation is now rejected: this table omits its wide range, so codePointWidth returns 1. Other omitted BMP emoji include ⏰, ✅, and ⭐. These are wide characters under the Unicode width data. I reproduced the rejection in the presenter; world.ts then falls back to displaying the raw screen JSON instead of the grid. Include the complete wide-character ranges used by the backend rather than this partial table.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| return codePoints.some((codePoint) => isWideCodePoint(codePoint)) ? 2 : 1; | ||
| } | ||
| if (codePoints.includes(0xfe0f)) return 2; | ||
| return characters.reduce((total, character, i) => total + codePointWidth(character, codePoints[i]), 0); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Measure emoji modifier sequences as a single glyph
For a valid skin-tone emoji such as 👍🏽, segmentation correctly produces one grapheme, but this reduction adds two wide code points and returns 4. The backend's unicode-width 0.2.2 rules assign emoji modifier sequences width 2, so its valid two-column cell is rejected by the new width check. I reproduced this rejection, which makes world.ts display the raw JSON fallback for the entire screen. Handle modifier sequences before summing individual code-point widths.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
id(web): world-surface presenter accepts cells the Rust wire validator rejects — symbol width/grapheme and continuation-symbol checks missing
There was an error while loading. Please reload this page.