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 — fix(server): keep discovered workspace folder labels valid when an emoji crosses the name limit by only21mil · Pull Request #42133 · pingdotgg/t3code

Conversation

@only21mil

@only21mil only21mil commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Problem

When a project folder holds a repository named 127 ASCII as followed by 🚀 (a valid 131-byte Linux name), its saved label ends in a lone \ud83d instead of stopping before the emoji. The 128-UTF-16-unit label cut in WorkspaceFolders.ts splits the emoji's surrogate pair.

Change

The cut (also used for .code-workspace folder names) stops one unit earlier when it would split a surrogate pair, using the shared splitsSurrogatePair helper. Leading whitespace is trimmed first, so the step back can't blank a label. Names that fit are unchanged.

Scope

Bug fix for wrong stored data in discovered folder labels. The steps below reproduce it, so it needs no issue. Folders named with t3 project add --track use a separate limit, fixed in #42083.

Verification

Setup: Ubuntu 26.04.1, Node 26.13.1, git 2.53.0, fresh scratch folders, T3CODE_LOG_LEVEL=Warn, server named "Test machine". t3 is node <checkout>/apps/server/src/bin.ts. Before mounts base's WorkspaceFolders.ts over head. Screens, light theme: web (vp run dev, T3's Browser panel, 1280×800), desktop (vp run dev:desktop, driven over its debug port), Android 17 Pixel 10 emulator (SwiftShader) and iOS 27.2 iPhone 18 Pro simulator.

Steps: these commands on both revisions; the last prints the stored label's tail, length, isWellFormed(), discovered. For the screens, app also holds repositories named 127 spaces + 🚀 and web, and --base-dir matches vp run dev --home-dir; then (phones paired) Settings → Projects → app → Repositories.

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)'
26f4c7550e7a 3dbeb77c7192
Web: the padded repository shows �
Web: the padded repository shows �
Web: the padded repository shows 🚀
Web: the padded repository shows 🚀
Desktop: the padded repository shows �
Desktop: the padded repository shows �
Desktop: the padded repository shows 🚀
Desktop: the padded repository shows 🚀
Android: the padded repository shows �
Android: the padded repository shows �
Android: the padded repository shows 🚀
Android: the padded repository shows 🚀
iOS: the padded repository shows �
iOS: the padded repository shows �
iOS: the padded repository shows 🚀
iOS: the padded repository shows 🚀

Before, 26f4c7550e7a, last two lines:

exit 0
"aa\ud83d" 128 false true

After, 3dbeb77c7192:

exit 0
"aaa" 127 true true

On newest green main b6a04be41c51 they print the Before line; merged cleanly with 3dbeb77c7192, the After line.

An AI agent found this reading the cut against the 128-unit limit, and ran each check:

  • The scan test now also finds repositories named 127 letters + 🚀 (labelled as the letters), 126 letters + 🚀 (kept) and 127 spaces + 🚀 (labelled 🚀). It fails on 26f4c7550e7a, and on 3dbeb77c7192 without the surrogate check or the leading trim.
  • WorkspaceFolders.test.ts passes 3 of 3 serial runs on 3dbeb77c7192 and passes on the merge; vp run check:changed passes.

Links: the commits above, the test rows and the proof scripts.

Not shown:

  • Windows and macOS servers; no platform-specific code.

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
@only21mil
fix(server): keep discovered workspace folder labels valid when an em…
3dbeb77
…oji crosses the name limit
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: f692811
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: eafd15a6-2353-43b0-ba89-a4be1832ef03
Commits

Reviewing files that changed from the base of the PR and between 3dbeb77 and 5f63769.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

Workspace folder names are trimmed and capped at 128 UTF-16 code units. Truncation avoids splitting surrogate pairs. The scan tests cover whitespace-padded names and labels at the truncation boundary.

Changes: Workspace folder name bounds

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

Merge Risk: Minimal · previous review 3dbeb

Discovered 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.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed 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.t…
Description check Passed 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 …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

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.

Full details: Description check

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.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 43a0e74
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5fbc2ca3-a9b5-43f3-81fb-2d2b01013fb7
Commits

Reviewing files that changed from the base of the PR and between 43a0e74 and 3dbeb77.

Files selected for processing: 2

  • apps/server/src/workspace/WorkspaceFolders.test.ts
  • apps/server/src/workspace/WorkspaceFolders.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 24, 2026
@juliusmarminge
Merge remote-tracking branch 'origin/main' into fix/server-workspace-…
5f63769
…folders-surrogate-name
@juliusmarminge

juliusmarminge commented Nov 24, 2026

Copy link
Copy Markdown
Member

Evidence

Created 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. scenarios:prove exited 0.

Environment: Chromium, 1920×1000, light theme, Noto Color Emoji; local path descriptions hidden for privacy. Details below are crops of the inspected app captures.

Before After
f692811b95 5f637697c2
Before: malformed space-padded label After: intact rocket label

Full before capture · Full after capture · Scenario source

Not shown:

  • .code-workspace labels were not exercised.
  • The long a/b label endings overflow the app row and are not visible in the captures; their exact rendered DOM text was checked by the scenario.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 24, 2026
@juliusmarminge
juliusmarminge merged commit 354d9f1 into pingdotgg:main Nov 24, 2026
55 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 24, 2026
@jadelike-wine jadelike-wine mentioned this pull request Nov 24, 2026
fix(web): keep emoji intact in manually added folder names #42244
Merged
@patroza patroza mentioned this pull request Nov 25, 2026
Merge upstream main through feecca53e4dc patroza/t3code#675
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@only21mil @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.