Before submitting#
Area#
apps/mobile
Steps to reproduce#
- Open the Android app (nightly)
- Settings → Source control → Worktree branch naming → Custom instructions
- Type something in the instructions box
- 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
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 anonChangeTextflag was set first (BranchNamingSettings.tsx#L83-L108). It's amultilineinput, and on Android, dismissing the keyboard with Back or leaving the screen may unmount it withoutonEndEditingfiring, 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:
branchNameInstructionsis in the server settings patch schema (settings.ts#L1469), the project override schema and project-scoped key list (settings.ts#L977, #L1008).writestraight through (SettingsServerControlsRouteScreen.tsx#L59, #L357).Possible fix: keep a local draft from
onChangeTextand save it on blur/unmount (or debounced), rather than relying ononEndEditingalone. 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.