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(server): keep discovered workspace folder labels valid when an emoji crosses the name limit by only21mil · Pull Request #42133 · pingdotgg/t3code Conversation
Contributor
ProblemWhen a project folder holds a repository named 127 ASCII ChangeThe cut (also used for ScopeBug fix for wrong stored data in discovered folder labels. The steps below reproduce it, so it needs no issue. Folders named with VerificationSetup: Ubuntu 26.04.1, Node 26.13.1, git 2.53.0, fresh scratch folders, Steps: these commands on both revisions; the last prints the stored label's tail, length, name="$(printf 'a%.0s' {1..127})🚀" git init -q "app/$name" t3 project add app --base-dir state; echo "exit $?" node -e 'const db = new (require("node:sqlite").DatabaseSync)("state/userdata/statev2.sqlite"); const [f] = JSON.parse(db.prepare("SELECT tracked_folders_json FROM projection_projects").get().tracked_folders_json); console.log(JSON.stringify(f.name.slice(-3)), f.name.length, f.name.isWellFormed(), f.discovered)'
Before, After, On newest green main An AI agent found this reading the cut against the 128-unit limit, and ran each check:
Links: the commits above, the test rows and the proof scripts. Not shown:
Generated with Claude Opus 5.5 in T3 Code Nightly
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…oji crosses the name limit
|
There was an error while loading. Please reload this page.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Bound and validate folder names apps/server/src/workspace/WorkspaceFolders.ts, apps/server/src/workspace/WorkspaceFolders.test.ts |
boundedName trims leading whitespace, avoids splitting surrogate pairs when it truncates names to 128 UTF-16 code units, and trims trailing whitespace. Scan tests cover padded names and emoji at the boundary. |
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge, macroscopeapp
3dbebDiscovered workspace folder labels that fall on the 128-character limit no longer end in a broken half-emoji. Names that already fit are unchanged. The change is small and covered by new boundary tests, and no merge-blocking risk was found.
Explanation
The title names the main change: discovered workspace folder labels are kept valid when an emoji crosses the 128-unit name limit. It follows conventional commit form and matches the WorkspaceFolders.ts change, the surrogate-pair check, and the test additions.
Explanation
The description follows the template. It covers Problem (a 127-ASCII-letter plus rocket-emoji repository stores a lone surrogate), Change (cut steps back on a split surrogate pair, leading whitespace trimmed first), Scope (bug fix with reproduction steps, separate --track limit referenced to #42083), and Verification (detailed setup, before/after outputs, test results, and screenshots). It does not state the agent model in the template's requested form, but it does name Claude Opus 5.5 at the end. Overall it is mostly complete and specific.
5fbc2ca3-a9b5-43f3-81fb-2d2b01013fb7apps/server/src/workspace/WorkspaceFolders.test.tsapps/server/src/workspace/WorkspaceFolders.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…folders-surrogate-name
EvidenceCreated the three boundary-case repositories, added their parent through the project CLI, and opened Settings → Projects → emoji-labels → Repositories on fresh state for each commit. The space-padded label visibly changes from a replacement character to 🚀. The scenario also checks the exact rendered names for all three cases and Unicode validity. Environment: Chromium, 1920×1000, light theme, Noto Color Emoji; local path descriptions hidden for privacy. Details below are crops of the inspected app captures.
Full before capture · Full after capture · Scenario source Not shown:
|
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.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.