Conversation
…'s name on later checkouts (by antigravity/gemini-4-neon)
…arrow mobile header subscription (by antigravity/gemini-4-neon)
…el too (by antigravity/gemini-4-neon)
smirea
force-pushed
the
fix/chat-header-project-rename
branch
from
December 4, 2026 20:50
46af666 to
c9aefad
Compare
Owner
Author
|
Opened upstream at pingdotgg#49026 (fixes pingdotgg#49025). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Note
Gemini 4 Neon writing on behalf of Stefan.
Problem
When a user renames a project in Settings → Projects and another checkout of the same repository joins the group later (on the same machine or a linked environment), the later checkout keeps its default folder title (
hasCustomTitle: false). pingdotgg#44281 fixedderiveProjectGroupLabelso the sidebar, Settings → Projects, and pickers keep showing the custom name, but thread headers and the new-thread hero still readproject.titledirectly:ChatHeader.tsx) and mobile thread header subtitle (ThreadRouteScreen.tsx), while the sidebar shows the renamed name.What should we build in …?hero trigger (DraftHeroHeadline.tsx), directly above the picker dropdown listing the renamed name.Reproduce (one machine, Linux or macOS, no provider account):
originremote (a/demoandb/demo).a/demoand rename it todemo-renamed.b/demo(joins the group with default folder titledemo).b/demo: the sidebar showsdemo-renamed, while the chat header breadcrumb showsdemo.b/demo: the breadcrumb and hero showdemo.Change
deriveProjectGroupLabel(packages/client-runtime/src/state/projectGrouping.ts) into shared helpers and exportresolveProjectDisplayTitle(project, projects, settings).hasCustomTitle === true, is a scratch project, or is a subfolder of a whole-repository group, it keepsproject.title.deriveProjectGroupLabel), it returns that title; else it keepsproject.title.resolveProjectDisplayTitleinto:ChatHeader(apps/web/src/components/chat/ChatHeader.tsx) — breadcrumb label,New thread in …tooltip, and aria-label.DraftHeroHeadline(apps/web/src/components/chat/DraftHeroHeadline.tsx) — hero trigger, tooltip, fallback button, and heading width measurement.ThreadRouteScreen(apps/mobile/src/features/threads/ThreadRouteScreen.tsx) — thread header subtitle (mobile'sNewTaskDraftScreenalready resolves the label through the project group).Scope
Fixes #
NewTaskDraftScreenon mobile already reads the group label).alpha-folder/beta-folder) keep showing their selected checkout's folder title in the breadcrumb and draft hero, notowner/repo.repositorygrouping mode: a subfolder checkout such asapps/webunder a renamed repo root keepsweb, while inrepository_pathmode two checkouts of the same subfolder inherit a single rename of that subfolder.separategrouping mode: each checkout keeps its own title.project.titledirectly (CommandPalette.logic.tsthread search subtitles,ThreadChipHoverCard.tsx, window title inappInit.tsx, and Files/Diff folder root labels).Verification
Automated (Linux VM, no account)
vp test run packages/client-runtime/src/state/projectGrouping.test.ts(34/34 pass; fails onmain). Covers later-joined root checkouts (repository), later-joined subfolders (repository_path), unrenamed checkouts with distinct folder names, subfolders under a renamed repo root, conflicting renames, andseparatemode.vp test run apps/web/src/components/chat/ChatHeader.browser.test.tsx apps/web/src/components/chat/DraftHeroHeadline.browser.test.tsx(5/5 pass).vp run scenarios:prove scripts/scenarios/chat-header-project-rename.e2e.ts --base origin/main): fails onorigin/main(f72ab41bfe) andv0.1.14-nightly.20261204.5719(527abfe31e), passes on this branch (2ef31deb86).alpha-folder/beta-folder) and an unrenamed subfolder (apps/web) under a renamed root (mono-renamed) keepbeta-folderandwebin both the breadcrumb and draft hero.projectGrouping.ts,ChatHeader.tsx,DraftHeroHeadline.tsx) in turn causes either the unit test or the scenario to fail.vp run check:changedpasses (format, lint, knip, typecheck across 7 affected packages including@t3tools/mobile, tests, React Compiler).main(f72ab41bfe)2ef31deb86)Scenario source (
scripts/scenarios/chat-header-project-rename.e2e.ts)Not verified on device
apps/mobile/src/features/threads/ThreadRouteScreen.tsx) was verified via sharedclient-runtimeunit tests and@t3tools/mobiletypecheck/lint, not launched on an iOS/Android device.Gemini 4 Neon in Antigravity (T3 Code).