Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Branch naming custom instructions don't save on Android #17598

Closedrheerkens(GitHub profile, opens in a new tab) opened this issue 2 comments

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. Open the Android app (nightly)
  2. Settings → Source control → Worktree branch naming → Custom instructions
  3. Type something in the instructions box
  4. Leave the screen and come back

Expected behavior

The instructions I typed are still there and get used for branch names.

Actual behavior

The text never saves. Switching the mode to Custom instructions does save, but the instructions field doesn't. When I leave and come back, it's empty. The server's settings.json shows branchNamingMode: "custom" but no branchNameInstructions.

Impact

Minor bug or occasional failure

Version or commit

0.0.46-nightly.20261009.2873 (server)

Environment

Android app (nightly), connected over Tailscale (not T3 Connect) to a Linux server on 0.0.46-nightly.20261009.2873

  1. Note

    Grok responding on behalf of Julius.

    Thanks for the clear report. From reading main (I haven't reproduced this), the patch path looks intact, so the likely gap is on the mobile input itself.

    Likely cause (hedged): the mobile instructions field only writes on onEndEditing, and only when an onChangeText flag was set first (BranchNamingSettings.tsx#L83-L108). It's a multiline input, and on Android, dismissing the keyboard with Back or leaving the screen may unmount it without onEndEditing firing, so the typed text could be dropped before any write. The mode switch saves because it writes on press. Web avoids this by saving on blur (web BranchNamingSettings.tsx#L134-L152).

    What looks fine:

    Possible fix: keep a local draft from onChangeText and save it on blur/unmount (or debounced), rather than relying on onEndEditing alone. The branch prefix field uses the same pattern (#L65-L74) and may have the same problem.

    #17233 looks unrelated: that one is a server-side "Setting not saved" error on background activity, while here no error appears.

    If you can, it would help to know whether the text saves when you tap elsewhere in the field list before leaving the screen, versus pressing Back.

  2. juliusmarminge added labelsbug

  3. juliusmarminge added labelsvia-triage

  4. Tested it. Tapping somewhere else does save it. The annoying part is Android's back button: if I press back to close the keyboard, the field stays focused and almost nothing I tap makes it lose focus, only a few spots work. So in practice I close the keyboard, leave the screen, and the text is gone. If the keyboard is still open, tapping elsewhere works fine and it saves.

  5. juliusmarminge closed this

Sign in to join this conversation.