GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id(web): world presenter widens every U+FE0F cluster to 2 — a letter+VS16 cell (a️) is Rust-valid at columns 1 but renderWorldSurface refuses the whole screen · Issue #3265 · developing-today/code

id(web): world presenter widens every U+FE0F cluster to 2 — a letter+VS16 cell (a️) is Rust-valid at columns 1 but renderWorldSurface refuses the whole screen #3265

New issue
Copy link
New issue
Copy link
Closed
#4355
Closed
id(web): world presenter widens every U+FE0F cluster to 2 — a letter+VS16 cell (a️) is Rust-valid at columns 1 but renderWorldSurface refuses the whole screen#3265
#4355
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Nov 1, 2026
Issue body actions

Summary

id(web): the TS world presenter's graphemeWidth (pkgs/id/web/src/world-surface.ts:321) returns width 2 for every grapheme cluster that contains U+FE0F (variation selector 16):

if (codePoints.includes(0xfe0f)) return 2;

Rust's unicode-width 0.2.2 — the validator the server side uses (pkgs/id/src/world_presentation.rs, parse_surface assigns each cell's columns from UnicodeWidthStr::width(grapheme)) — widens a base+FE0F cluster to 2 only for its emoji-presentable bases (digits, #, *, ©, ®, ™, suits, ▶/◀, ↔/↩/⤴, 〰/〽/㊗/㊙, actual emoji, …). For ordinary bases the cluster stays width 1, and a lone U+FE0F is width 0.

So a Rust-valid screen whose row contains e.g. a️ (U+0061 U+FE0F) is built by parse_surface with columns: 1 — and the web presenter then computes TS width 2 ≠ 1 and renderWorldSurface returns false for the whole screen, which falls back to raw text. This is exactly the #1581/#761 failure mode (one mis-measured cell rejects the entire frame), in a class those fixes and the #2962 differential never scoped: #2962 covers single code points alone and +U+FE0E; it never tested multi-codepoint clusters ending in U+FE0F.

Evidence (main c0fb853a; both files sha256-identical in the sandbox and laptop clones)

TS side — verbatim extraction of WIDE_RANGES/codePointWidth/graphemeWidth from world-surface.ts (sha256 5e04c698…), run under bun on the laptop; Rust side — standalone probe pinned to unicode-width = "=0.2.2" (the crate/version world_presentation.rs uses), same inputs. Probe: ~/git/fleet/probe-2026-10-31-laneA-vs16/ (laptop).

cluster Rust 0.2.2 TS graphemeWidth
a + FE0F 1 2
x / Z / é / Ω + FE0F 1 2
→ (U+2192) + FE0F 1 2
! / ? / % / space + FE0F 1 2
lone FE0F 0 2
1 / # / * / 0 + FE0F 2 2 (agree)
© / ® / ™ + FE0F 2 2 (agree)
♠ / ♥ / ♦ / ▶ / ◀ / ↔ / ↩ / ⤴ / 〰 / 〽 / ㊗ / ㊙ + FE0F 2 2 (agree)
⚠ (U+26A0) + FE0F, ☝ + FE0F, ❤ + FE0F, 😀 + FE0F 2 2 (agree)
ZWJ alone (U+200D) 0 1 (same function, minor: Rust rejects width-0 cells, TS would admit one at columns: 1)

Existing tests only cover the agreeing cases: world-surface.test.ts:271-272 exercises U+26A0+FE0F (⚠️) among its wide glyphs; no test pairs FE0F with a non-emoji-presentable base.

Why it matters

The two validators are a matched pair by design — the TS file's own comments insist "The two validators must not disagree" (world-surface.ts, on the symbol-cap removal). Any world program that emits a letter, digit-free symbol, or arrow followed by VS16 (copy-pasted text and styled labels do this in the wild) produces a screen the server accepts and the browser refuses wholesale, degrading the world view to raw text with no error pointing at the cell. The fix is small and well-scoped: gate the FE0F shortcut on the same emoji-presentable base set unicode-width uses (the file already maintains exactly such a table for the FE0E narrowing case, TEXT_PRESENTATION_RANGES, plus the extra VS16-only bases like digits/#/* — the Rust probe above enumerates the agreeing set to seed it).

Acceptance criteria

  • graphemeWidth widens a cluster containing U+FE0F to 2 only when the base is one unicode-width 0.2.2 widens (its VS16/emoji-presentation set); a cluster of a letter/punctuation/arrow/space + FE0F measures 1, and a lone FE0F measures 0.
  • The ZWJ-alone case (Rust 0 vs TS 1) is dispositioned in the same pass — fixed or explicitly documented as unreachable, with the reasoning recorded.
  • Parity tests in world-surface.test.ts: Rust-valid cells a+FE0F, →+FE0F, !+FE0F at columns: 1 render; the agreeing wide cases (⚠️, ☝️, keycap 9+FE0F+U+20E3, ©️) still render at columns: 2.
  • Re-verified by a differential probe (real TS graphemeWidth vs unicode-width = "=0.2.2") over base+FE0F clusters for a representative base set spanning both classes — zero mismatches.
  • Distinct from, and does not reopen: id(web): world presenter still mis-measures ⬛/⭕, narrow-base skin tones, composed Hangul jamo and long graphemes — #1431's folded-in classes survived its fix, and the 16-unit symbol cap has no Rust twin #1581 (closed; ZWJ/modifier/FE0E classes), id(web): world presenter residual width divergences vs unicode-width 0.2.2 — 2529 code points in classes #1581 never scoped (trigrams, CJK radicals, format chars) #2962 (open; single-code-point alone/+FE0E residual tables — this issue is the multi-codepoint FE0F cluster path only).

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    on Nov 1, 2026
  2. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (new-issue-creator-code-a)
    • Session / ID: cron new-issue-creator-code-a run 2026-10-31T19:05:00-05:00 (Sat 2026-10-31 19:05 CDT)
    • Found via: filed this run
    • Task: Filed this issue — TS world presenter widens every U+FE0F cluster to 2, disagreeing with Rust unicode-width 0.2.2 for non-emoji bases; verified with a laptop differential probe (real TS graphemeWidth extraction vs unicode-width =0.2.2) on sha-matched files at main c0fb853.
    • Expectation: effort/s — triage confirms the VS16-eligible base gating, then a fix + parity tests in world-surface.test.ts.
    • Links: probe ~/git/fleet/probe-2026-10-31-laneA-vs16/ (laptop); queue packet packet-3265-triage.json
  3. github-actions
    assigned
    dezren39
    on Nov 1, 2026
  4. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 1, 2026
  5. 37 remaining items

  6. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 2, 2026
  7. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane F shift
    • Session / ID: task 5693
    • Found via: queue claim (resume of parked task 5693)
    • Task: Resuming task 5693 for issue id(web): world presenter widens every U+FE0F cluster to 2 — a letter+VS16 cell (a️) is Rust-valid at columns 1 but renderWorldSurface refuses the whole screen #3265 — PR fix(id): widen base+U+FE0F only for emoji-presentable bases (#3265) #4355 (branch queue/5693-3265-fe0f-width, this task's own fleet branch) is the canonical fix PR. The prior Drew-owned park rested on the dezren39 author login alone; that is the shared account every fleet PR uses, and there are no held / user/owned / do-not-merge / do-not-auto-edit labels on issue id(web): world presenter widens every U+FE0F cluster to 2 — a letter+VS16 cell (a️) is Rust-valid at columns 1 but renderWorldSurface refuses the whole screen #3265 or PR fix(id): widen base+U+FE0F only for emoji-presentable bases (#3265) #4355, so the hard stop does not apply. Revalidating PR fix(id): widen base+U+FE0F only for emoji-presentable bases (#3265) #4355 checks + Codex findings fresh, then merging when the standing criteria are met.
    • Expectation: effort s; done = PR fix(id): widen base+U+FE0F only for emoji-presentable bases (#3265) #4355 merged and task 5693 completed as fixed_merged, or parked with a named resume condition.
    • Links: PR fix(id): widen base+U+FE0F only for emoji-presentable bases (#3265) #4355 fix(id): widen base+U+FE0F only for emoji-presentable bases (#3265) #4355 · task 5693
  8. dezren39
    added a commit that references this issue on Nov 2, 2026

    Merge pull request #4355 from developing-today/queue/5693-3265-fe0f-w…

    30ce6be
  9. dezren39
    closed this as completedin #4355on Nov 2, 2026
  10. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 2, 2026
  11. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane F shift
    • Session / ID: task 5693
    • Found via: queue claim (resume)
    • Task: PR fix(id): widen base+U+FE0F only for emoji-presentable bases (#3265) #4355 merged (merge commit 30ce6be) — graphemeWidth now widens base+U+FE0F only for emoji-presentable bases per unicode-width 0.2.2; issue id(web): world presenter widens every U+FE0F cluster to 2 — a letter+VS16 cell (a️) is Rust-valid at columns 1 but renderWorldSurface refuses the whole screen #3265 closed by the merge. The earlier Drew-owned park was the dezren39 shared-account false positive: PR fix(id): widen base+U+FE0F only for emoji-presentable bases (#3265) #4355 is on this task's own fleet branch queue/5693-3265-fe0f-width and neither item carries a hard-stop label. Codex review completed clean on head 382eb52; vitest 11/11 incl. new parity tests documented on PR fix(id): widen base+U+FE0F only for emoji-presentable bases (#3265) #4355; the two queued PR checks (guard, world snapshot determinism) are the fleet-wide CI runner backlog and PRs do not wait for CI under the standing merge authority.
    • Expectation: met — task 5693 completed as fixed_merged.
    • Links: PR fix(id): widen base+U+FE0F only for emoji-presentable bases (#3265) #4355 fix(id): widen base+U+FE0F only for emoji-presentable bases (#3265) #4355 · task 5693
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.