Skip to content

fix(web,mobile): forks from a response get a title in the app's language - #46840

Merged
juliusmarminge merged 1 commit into
pingdotgg:mainfrom
saphid:hunter/c-6f7a95b8cf
Dec 1, 2026
Merged

juliusmarminge merged 1 commit into
pingdotgg:mainfrom
saphid:hunter/c-6f7a95b8cf

Conversation

@saphid

@saphid saphid commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Problem

Forking from a response always titles the new thread <source title> fork, so a German user forking Notizen gets Notizen fork in the header and sidebar. The web hook (useTimelineRewind.ts) and the mobile feed (ThreadFeed.tsx) build that title with an untranslated template literal, and ThreadForkService persists the supplied title unchanged.

Deterministic repro on origin/main (89ba000739860234ab35d78ea70b9084c81d23c7): vp run scenarios:prove scripts/scenarios/fork-title-follows-language.e2e.ts --base 89ba000739860234ab35d78ea70b9084c81d23c7 (Replay (dev), WEB). It seeds project demo with thread Notizen and one completed response, sets the language to Deutsch, clicks the first "Ab dieser Antwort forken", and checks the new thread before any further turn.

  • Observed: the new thread is titled Notizen fork.
  • Expected: Fork von Notizen. Existing titles and later renames don't change when the language changes.

Change

Both clients now resolve one interpolated message, {title} fork, in the active language when they create the fork (m(msg(...)) on web, gt(...) on mobile), and send it as the title. English output is unchanged, and the server, the RPC and storage are untouched. The new key is added to the web and mobile catalogs with translations for every locale.

Scope

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

Verification

Base (Notizen fork) Head (Fork von Notizen)
before after

Not shown: the mobile fork action wasn't run on a device (iOS scenarios need a Simlock lease). It's the same one-line change through gt, and the catalog key passes i18n:check. The desktop shell is also not shown separately because it renders the same web hook.

Authored by Claude Opus 5.5 (Model Hub); reviewed by GPT-6.2 Sol (Codex).

Not shown

  • Draft PR body (Verification) — The supplied summary reports check:changed passing, but the linked transcript only records scenarios:prove; attach the check:changed output tied to e8b378e4b0 if available.

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Dec 1, 2026
@macroscopeapp

macroscopeapp Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs Human Approval

Macroscope's review found this PR requires human approval — New response forks receive localized initial titles on web and mobile instead of an English suffix. Human review is needed for this change to the default naming behavior; existing thread titles are unaffected.

You can add or adjust custom eligibility rules. Learn more.

@coderabbitai

coderabbitai Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Mobile and web fork titles now use localized messages instead of literal English templates. Translation entries were added across the listed locales. An end-to-end scenario switches the app to German and checks that the fork action uses the German label.

Changes: Fork title localization

Layer / File(s) Summary
Mobile fork title localization
apps/mobile/src/features/threads/ThreadFeed.tsx, apps/mobile/src/i18n/translations/*.json
The mobile fork button formats its title with a localized message. Mobile translations define the {title} placeholder across the listed locales.
Web fork title localization
apps/web/src/components/chat/useTimelineRewind.ts, apps/web/src/i18n/translations/*.json, scripts/scenarios/fork-title-follows-language.e2e.ts
The web fork title uses the localized message system. Web translations define the {title} placeholder. The end-to-end scenario switches the app language to German and checks that the German fork action is visible.

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

Change: Bug fix

Suggested reviewers: juliusmarminge, only21mil, yash-singh1

Merge Risk: Minimal · up to e8b37

Fork titles are now localized on web and mobile, and English output is unchanged. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(web,mobile): forks from a response get a title in the app's language" matches the main change. Both the web hook and the mobile feed now build the fork title with a localized message, s…
Description check Passed The description follows the template well. It has Problem, Change, Scope, and Verification sections. The problem is stated with a reproduction path and the expected behavior. The change explains the w…
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 "fix(web,mobile): forks from a response get a title in the app's language" matches the main change. Both the web hook and the mobile feed now build the fork title with a localized message, so the title follows the active language. The title is concise, uses a conventional commit prefix, and names the scope and the behavior.

Full details: Description check

Explanation

The description follows the template well. It has Problem, Change, Scope, and Verification sections. The problem is stated with a reproduction path and the expected behavior. The change explains the web and mobile edits and that the server is unchanged. Scope says it is a small bug fix and why no issue is needed. Verification lists the scenario test results on base and head, the checks run, and screenshots. It also states what was not verified (mobile device run). The model and harness attribution is present. One gap: the description itself notes that the transcript for check:changed is not linked, so that claim is only partly evidenced. The description is largely complete and this is a minor gap.

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

Commits

Reviewing files that changed from the base of the PR and between 89ba000 and e8b378e.

Files selected for processing: 25

  • apps/mobile/src/features/threads/ThreadFeed.tsx
  • apps/mobile/src/i18n/translations/de.json
  • apps/mobile/src/i18n/translations/en.json
  • apps/mobile/src/i18n/translations/es.json
  • apps/mobile/src/i18n/translations/fr.json
  • apps/mobile/src/i18n/translations/ja.json
  • apps/mobile/src/i18n/translations/ko.json
  • apps/mobile/src/i18n/translations/pl.json
  • apps/mobile/src/i18n/translations/pt-BR.json
  • apps/mobile/src/i18n/translations/ru.json
  • apps/mobile/src/i18n/translations/sv.json
  • apps/mobile/src/i18n/translations/zh.json
  • apps/web/src/components/chat/useTimelineRewind.ts
  • apps/web/src/i18n/translations/de.json
  • apps/web/src/i18n/translations/en.json
  • apps/web/src/i18n/translations/es.json
  • apps/web/src/i18n/translations/fr.json
  • apps/web/src/i18n/translations/ja.json
  • apps/web/src/i18n/translations/ko.json
  • apps/web/src/i18n/translations/pl.json
  • apps/web/src/i18n/translations/pt-BR.json
  • apps/web/src/i18n/translations/ru.json
  • apps/web/src/i18n/translations/sv.json
  • apps/web/src/i18n/translations/zh.json
  • scripts/scenarios/fork-title-follows-language.e2e.ts

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

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Dec 1, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

On both commits, create synthetic project demo and thread Notizen with a completed Replay (dev) response; select Deutsch in Settings → General → Language; open Notizen and tap Ab dieser Antwort forken; observe the initial fork title before sending anything else. Web uses the multi-turn recording and exact committed title assertion; iOS uses the repository showcase recording. Return to the iOS thread list to show the full title and unchanged source title.

Web: Chromium, 1280×800, light theme, isolated fresh database per commit. iOS: pooled iPhone 17 Pro simulator, iOS 27.2, 402×874 screenshots, light theme; each commit's own backend and Metro bundle, same cached native dev client fingerprint.

Surface Before — 89ba000739 After — e8b378e4b0
Web Before: Notizen fork After: Fork von Notizen
iOS full title Before: Notizen fork in German thread list After: Fork von Notizen in German thread list
Web interaction Before recording After recording
iOS interaction Before recording After recording

Base displays Notizen fork; head displays Fork von Notizen. The source remains Notizen. No further turn was sent. Mobile still pairs had zero differing pixels when captured more than 500 ms apart. The longer iOS title is ellipsized in the narrow conversation header; the supplemental list captures show it in full. Head's supplemental list has environment badges because the previous base connection is saved but disabled. The English web timestamp and existing English mobile lineage label are outside this change.

The unchanged committed scenario also failed on base at its exact title assertion and passed on head: scenario source, verdict and steps. Its helper needed a bounded retry while the real replay model catalogue was loading: harness-only patch.

The displayed web stills use this capture scenario, which adds replay initialization, waits for fork navigation and settles hover opacity without changing the title assertion. Mobile seed script.

Not exercised: Android, Electron shell, and languages other than German.

Not shown:

  • Android was not run; the mobile path was demonstrated on iOS.
  • Electron shell was not launched; web captures demonstrate the shared web client only.
  • Languages other than German and the wording of the other catalog translations were not visually judged.

@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 Dec 1, 2026
@juliusmarminge
juliusmarminge merged commit dbe124d into pingdotgg:main Dec 1, 2026
74 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Dec 1, 2026
imetn added a commit to imetn/t4code that referenced this pull request Dec 2, 2026
Ported 13 cross-layer upstream commits: pingdotgg#45961, pingdotgg#46662, pingdotgg#46705, pingdotgg#46756, pingdotgg#46750, pingdotgg#46778, pingdotgg#46840, pingdotgg#46844, pingdotgg#46891, pingdotgg#46932, pingdotgg#47015, pingdotgg#47089, pingdotgg#44864. (pingdotgg#46704 confirmed already solved with superior T4 implementation in 0a32ef3.) Preserved all locked T4 customizations including Lock pingdotgg#18 mentionMenu gating, Lock pingdotgg#21 Tiptap editor, and Task Board /board split-view fork guard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants