Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: #7510

Closedmax-midved(GitHub profile, opens in a new tab) opened this issue 1 comment

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

Disclaimer. The below is generated by Fable5, the error is real, the cause in by Fable5. I've read it, but cannot verify against the whole code base. Max.

Steps to reproduce

  1. Add the same git repo as a project in two environments — e.g. your local machine and a paired remote environment. Default grouping (group by repository) merges them into one sidebar group with two checkouts.
  2. Confirm the group's sidebar label is the repository name.
  3. Open Project settings → Project → Name, type a new name, press Enter.
  4. Navigate away, then back.

Expected behavior

The new name persists on every checkout in the group and appears in the sidebar — or I get an error telling me why it didn't.


Actual behavior

Renaming a multi-checkout project group silently does nothing. No error, no toast, and the write never reaches the server.

What you see

StepResult
Type a new name, press EnterField accepts it. No error.
Navigate away and backOld name is back.
Check the server event storeNo project.meta-updated event was ever emitted.

It is indistinguishable from a rename that was never attempted.

Why — two independent causes

1. renameGroup compares user input against a derived label, not a stored title

https://github.com/pingdotgg/t3code/blob/8bbbab50514910040d2a4fa2be5021c83134afcf/apps/web/src/components/settings/ProjectSettingsPanel.tsx#L398-L410

if (title === group.displayName) return;                                    // ← line 405
if (group.memberProjects.every((member) => member.title === title)) return; // ← line 406, correct check
await updateAllMembers({ title }, "Failed to rename project");

group.displayName is not a stored title. It comes from deriveProjectGroupLabel:

https://github.com/pingdotgg/t3code/blob/8bbbab50514910040d2a4fa2be5021c83134afcf/packages/client-runtime/src/state/projectGrouping.ts#L168-L196

Group shapedisplayName resolves to
Single memberthe stored title — fine
Multi-member, titles agree, ≠ repo namethe shared title — fine
Multi-member, titles disagreethe repository name — wrong comparand

Line 406 already performs the correct idempotency check against stored titles, so 405 is redundant in every case except the one where it silently blocks the write.

2. updateAllMembers aborts mid-fan-out, and the fallback hides the damage

It writes member-by-member and returns on the first failure. Its own comment acknowledges this:

// A partial fan-out is possible: earlier members already took the write.

When it half-applies, member titles disagree — which triggers the repo-name fallback above:

StepCheckout A titleCheckout B titleDistinct titlesSidebar label
Startmy-repomy-repo1my-repo
Rename to new-name, fan-out writes A then abortsnew-namemy-repo2my-repo ← falls back to repo name
Reopen settingsfield re-seeded from label

The input is uncontrolled, seeded via defaultValue={group.displayName} and committed onBlur:

https://github.com/pingdotgg/t3code/blob/8bbbab50514910040d2a4fa2be5021c83134afcf/apps/web/src/components/settings/ProjectSettingsPanel.tsx#L763-L781

So a half-applied rename renders exactly like one that never happened.

Why there is no error toast

reportFailure returns early for interrupted commands, so an interrupted rename produces no feedback at all:

if (result._tag !== "Failure" || isAtomCommandInterrupted(result)) return;

Suggested fix —which shape do you want?

  • (a) Delete line 405. One line. Caveat: it is the only edit-check, so an unedited focus-then-blur on an already-divergent group would then perform a write (converging titles to the label already displayed).
  • (b) Replace the label comparison with real edit-tracking (dirty flag or useRef of the seeded value). No behavior change, slightly larger.

#4880 is the sibling symptom (grouped label ignores custom titles). Same deriveProjectGroupLabel fallback, different consequence. Not proposing to change that function here.


Impact

Major degradation or frequent failure


Version or commit

0.0.33 server / desktop app <fill in from Help → About>


Environment

Windows desktop app → paired remote environment, Ubuntu 24.04 noble amd64, t3 server 0.0.33


Workaround

Reduce the group to a single checkout — Project settings → Checkout → Remove checkout — or set Project grouping → Keep separate. A single-member group's label is the stored title, so renaming works.

Server-side, t3 project rename <path> "<name>" dispatches the command correctly.

Expected behavior

The new name persists on every checkout in the group and appears in the sidebar — or I get an error telling me why it didn't.

Actual behavior

Renaming a multi-checkout project group silently does nothing. No error, no toast, and the write never reaches the server.

Impact

Minor bug or occasional failure

Version or commit

0.0.33

Environment

Windows desktop app

Logs or stack traces

## Logs or stack traces

Server-side event store for the affected project — every event ever recorded on that stream:


(1533, 'project.created', '2026-08-19T05:47:44.707Z')


That is the complete list. Two rename attempts through the UI produced no `project.meta-updated` event, confirming the command never reached the backend.

For contrast, renaming the same project via the CLI works and emits the event correctly:


t3 project rename <workspace-root> "<new title>"
→ project.meta-updated


So the server-side command path (`project.meta.update`) is fine; the bug is entirely client-side.

Screenshots, recordings, or supporting files

No response

Workaround

Reduce the group to a single checkout — Project settings → Checkout → Remove checkout — or set Project grouping → Keep separate. A single-member group's label is the stored title, so renaming works.

Server-side, t3 project rename <path> "<name>" dispatches the command correctly.

  1. max-midved(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. Confirmed on current main. group.displayName is derived from repository metadata when member titles differ, so it is not a valid no-op check for a stored-title update. I am removing that comparison, keeping the stored member-title check, and adding focused coverage for divergent grouped projects. The server persistence path does not need changes.

Sign in to join this conversation.