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(client-runtime): scheduled task worktree base refs keep Unicode whitespace in branch names by saphid · Pull Request #44562 · pingdotgg/t3code

Conversation

@saphid

@saphid saphid commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Problem

Selecting a Git branch with leading or trailing Unicode whitespace as a scheduled task's worktree base can send Git a different, possibly nonexistent ref. When the branch name consists only of Unicode whitespace, the editors also treat it as an automatic base and the mobile picker highlights the default branch.

Deterministic repro on origin/main (84f4fad02b24e56902348f0b3cae296cc748c1d4)

Run from the repository root with Node 24. The fixture simulates a selected branch ending in a literal non-breaking space (U+00A0), with main as the default:

node --input-type=module -e 'import { scheduledTaskWorktreeBaseRef } from "./packages/client-runtime/src/scheduledTaskWorktree.ts"; const base = "feat\u00a0"; console.log(scheduledTaskWorktreeBaseRef(base, [{ name: "main", isDefault: true }]) === base);'
  • Observed: Prints false: the helper returns "feat", which Git rejects if only "feat\u00a0" exists.
  • Expected: Prints true: the helper preserves "feat\u00a0" exactly. ASCII-whitespace-only input still selects the default branch.

Change

Use the existing contracts helper trimAsciiWhitespace in the shared resolver and in the web and mobile editors' automatic-base checks and mobile picker's selected-branch check. Desktop inherits the web fix; no UI copy, wire, or provider changes are needed.

Scope

Small fix for an obvious bug; no issue needed under CONTRIBUTING.md.

Verification

  • The regression failed on the pinned base: expected "feat\u00a0", received "feat". The updated test file covers both trailing U+00A0 and a branch named only U+00A0; it passed three consecutive times (2 tests per run).
  • Git and GitRefName accept the U+00A0-only name. With that fixture, evaluating the exact editor and picker expressions in Node showed that both automatic-base checks changed from true to false and the mobile picker changed from main to the selected ref.
  • vp run check:changed exited 0: format, lint, Knip, typecheck across seven packages, affected tests, and React Compiler coverage passed.
  • Before/after Node and Git transcript: on base Git rejected the truncated ref; after the fix Git created the worktree at the selected branch's tip. ASCII-only input resolved to main on both versions.
  • Not shown: Interactive web, desktop, or mobile UI runs; a full scheduled execution against a live provider.

Authored by GPT-6.2 Sol (Codex); reviewed by Gemini 4 Neon (Antigravity).

Sorry, something went wrong.

Uh oh!

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

All reactions
@saphid
fix(client-runtime): scheduled task worktree base refs keep Unicode w…
9dcdb2b
…hitespace in branch names
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 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: c2257b9
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 97284c1a-7554-448f-bfa7-08a91042030d
Commits

Reviewing files that changed from the base of the PR and between 9dcdb2b and 8b41072.

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

Scheduled-task base-reference checks now use ASCII whitespace trimming instead of JavaScript’s broader trim() behavior. The runtime helper and mobile and web settings screens apply this check. Tests verify that non-breaking spaces remain in the selected base reference.

Changes: Base-reference whitespace handling

Layer / File(s) Summary
Runtime base-reference normalization
packages/client-runtime/src/scheduledTaskWorktree.ts, packages/client-runtime/src/scheduledTaskWorktree.test.ts
The base-reference helper uses trimAsciiWhitespace. Tests verify that trailing and whitespace-only non-breaking spaces are preserved.
Settings automatic-base checks
apps/mobile/src/features/settings/ScheduledTaskPickerScreens.tsx, apps/mobile/src/features/settings/SettingsScheduledTasksRouteScreen.tsx, apps/web/src/components/settings/ScheduledTasksSettings.tsx
The mobile and web screens use trimAsciiWhitespace when checking whether a base reference is empty. The picker’s existing query and branch-data conditions remain unchanged.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • pingdotgg/t3code#32841: Defines an empty scheduled-task base branch as automatic in the web and mobile editors, which is the behavior affected by these whitespace checks.

Suggested labels: bugfix

Suggested reviewers: binjamshid, only21mil, macroscopeapp

Merge Risk: Minimal · previous review 9dcdb

Scheduled-task worktree base refs with leading or trailing Unicode whitespace are now preserved exactly, while ASCII-whitespace-only input still selects the default branch. No concrete merge-blocking risk was found, and the regression tests cover the changed behavior.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: scheduled task worktree base refs now keep Unicode whitespace in branch names. It matches the changeset, which swaps String.trim() for trimAsciiWhitespace in the shared res…
Description check Passed The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section gives a reproduction, expected and observed behavior, and the affected components. T…
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 change: scheduled task worktree base refs now keep Unicode whitespace in branch names. It matches the changeset, which swaps String.trim() for trimAsciiWhitespace in the shared resolver and in the web and mobile editor checks. The title uses a conventional commit format and a specific scope.

Full details: Description check

Explanation

The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section gives a reproduction, expected and observed behavior, and the affected components. The Change section explains the helper swap across the resolver, the web and mobile editors, and the mobile picker. The Scope section states that the fix is small and needs no issue. The Verification section lists the regression test, the check run, and a before/after transcript. It also says which UI runs were not shown. The description does not include before/after screenshots, but this change has no UI copy changes, so the template does not require them. The description also names the authoring model, as the template asks.

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: 1f6fe0a
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c7f90663-6e70-483e-a66e-af9153636ba9
Commits

Reviewing files that changed from the base of the PR and between 1f6fe0a and 9dcdb2b.

Files selected for processing: 5

  • apps/mobile/src/features/settings/ScheduledTaskPickerScreens.tsx
  • apps/mobile/src/features/settings/SettingsScheduledTasksRouteScreen.tsx
  • apps/web/src/components/settings/ScheduledTasksSettings.tsx
  • packages/client-runtime/src/scheduledTaskWorktree.test.ts
  • packages/client-runtime/src/scheduledTaskWorktree.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 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 28, 2026
@juliusmarminge @claude
Merge origin/main into hunter/c-6404347acf
8b41072
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge

juliusmarminge commented Nov 28, 2026

Copy link
Copy Markdown
Member

Evidence

Real web app, Chromium, 1280×800, light theme; fresh synthetic state on each commit. Select feat\u00a0, create a disabled interval task, reopen Edit; then select \u00a0, save, and reopen Edit again. Exact label checks require U+00A0 to survive both saves.

Proven: the scenario fails on base and passes on head. Base shows From feat and From main (remote); head preserves both Unicode branch names.

Selection Before: c2257b919c After: 8b4107256b
Saved feat+U+00A0 Before: saved feat branch After: saved feat branch
Saved U+00A0-only Before: selection becomes main After: explicit Unicode selection survives
Recording Before interaction After interaction

Scenario source

Not shown:

  • Mobile picker highlighting was not exercised; this proof covers the web scheduled-task editor.
  • Actual scheduled execution was not exercised; tasks remained disabled.
  • Leading Unicode whitespace and ASCII-whitespace-only automatic input were not separately exercised; the reproduction used trailing U+00A0 and U+00A0-only branches.
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 28, 2026
@juliusmarminge
juliusmarminge merged commit aa63fa7 into pingdotgg:main Nov 28, 2026
62 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 28, 2026
This was referenced Nov 28, 2026
fix(web): Diff panel keeps Unicode whitespace in a base branch name #44746
Merged
fix(server): storage cleanup keeps Unicode whitespace in branch names #44791
Merged
fix(source-control-github): PR branch names keep Unicode whitespace #44802
Closed
@omegent-app omegent-app Bot mentioned this pull request Nov 28, 2026
Merge upstream main through 0f78747290a1 patroza/t3code#688
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:S 10-29 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or 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

@saphid @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.