Skip to content

[Bug]: Forks don't get a generated title when their first message is sent from the phone #41029

Done

Description

@zmievsa

Before submitting

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

Area

apps/mobile

Steps to reproduce

  1. In the mobile app, open a thread with at least one finished turn.
  2. Fork from a response. The fork is named <source title> fork.
  3. Send the first message in the fork.

Expected behavior

The fork gets a generated title, as it does when the first message is sent from web or desktop.

Actual behavior

The fork keeps <source title> fork. No title generation runs (titleRegeneration stays null). The same happens for any existing empty thread whose first message is sent from the phone.

Mobile delivers that message with dispatchMode: "start" (apps/mobile/src/state/threadOutboxDelivery.ts). The "start" branch of startThreadTurn in packages/client-runtime/src/operations/commands.ts builds the message.dispatch command without the titleSeed it was given. The other branches pass it, and the server only queues the initial title generation when titleSeed is present.

New threads started from the phone are not affected: they go through launchThread with generateTitle.

Impact

Minor bug or occasional failure

Version or commit

main @ 3806763. Also seen in the App Store build 2.3.0 on iOS.

Environment

iPhone 17 Pro simulator (iOS 26.5) and Android emulator, dev server on macOS, Replay (dev) provider

Workaround

Rename the fork by hand.


Investigated and drafted by Claude Code (Claude Opus 5.5) running inside T3 Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions