From 6c87e905e0a6fc61b70fec1900ef82f7ba423cf5 Mon Sep 17 00:00:00 2001 From: Jackson Miller Date: Sun, 8 Nov 2026 23:02:54 -0500 Subject: [PATCH 1/4] fix(mobile): persona Instructions use sentence case, and Save sits above the keyboard without dead space Instructions turned off auto-capitalization. The form stacked a KeyboardAvoidingView's padding on top of its bottom inset; it now uses upstream's automaticallyAdjustKeyboardInsets, as GitCommitSheet does. Co-Authored-By: Claude Opus 5.5 --- .../src/j5/agents/AgentCreateScreen.tsx | 2 +- .../src/j5/agents/AgentEditorScreen.tsx | 2 +- .../src/j5/agents/SettingsFormScreen.tsx | 24 ++++++++----------- 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/apps/mobile/src/j5/agents/AgentCreateScreen.tsx b/apps/mobile/src/j5/agents/AgentCreateScreen.tsx index 63bfa611b1135..4f7ec55219a28 100644 --- a/apps/mobile/src/j5/agents/AgentCreateScreen.tsx +++ b/apps/mobile/src/j5/agents/AgentCreateScreen.tsx @@ -164,7 +164,7 @@ export function AgentCreateScreen() { ) : null} - - - {props.children} - - + {props.children} + ); } From b3b12d01e4c9aee5e18b6717bfbe450e2002417e Mon Sep 17 00:00:00 2001 From: Jackson Miller Date: Sun, 8 Nov 2026 23:08:47 -0500 Subject: [PATCH 2/4] fix(mobile): the persona model menu lists providers as sections on iOS The submenu's native transition looked broken at Checkpoint 3. Inline sections keep the provider grouping in one level on iOS; Android keeps its drill-in. Co-Authored-By: Claude Opus 5.5 --- apps/mobile/src/j5/agents/AgentDefinitionFields.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/mobile/src/j5/agents/AgentDefinitionFields.tsx b/apps/mobile/src/j5/agents/AgentDefinitionFields.tsx index dfc0d73747faf..561810e889dea 100644 --- a/apps/mobile/src/j5/agents/AgentDefinitionFields.tsx +++ b/apps/mobile/src/j5/agents/AgentDefinitionFields.tsx @@ -118,6 +118,8 @@ export function AgentRoutePolicyFields(props: { actions={modelGroups.map((harness) => ({ id: harness.driver, title: harness.label, + // iOS shows each provider as a section, avoiding the submenu transition. + displayInline: true, attributes: { disabled: disabled || harness.models.length === 0, }, From fdf588ba4dd3e032881b9649923afa888bd124f0 Mon Sep 17 00:00:00 2001 From: Jackson Miller Date: Sun, 8 Nov 2026 23:34:39 -0500 Subject: [PATCH 3/4] fix(mobile): no dead space under Save with the keyboard up iOS's automatic content inset already covers the home indicator area under the keyboard, so the form's own bottom padding doubled it, about 80pt in the tester's captures. With the keyboard up, the padding is dropped on iOS and kept small on Android. Co-Authored-By: Claude Opus 5.5 --- apps/mobile/src/j5/agents/SettingsFormScreen.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/apps/mobile/src/j5/agents/SettingsFormScreen.tsx b/apps/mobile/src/j5/agents/SettingsFormScreen.tsx index ce20069ee35c9..b67767f7b4063 100644 --- a/apps/mobile/src/j5/agents/SettingsFormScreen.tsx +++ b/apps/mobile/src/j5/agents/SettingsFormScreen.tsx @@ -9,6 +9,7 @@ import type { AgentPersonaCreateDraft } from "@t3tools/client-runtime/j5/agent-p import type { AgentPersonaEditInput, EnvironmentId, ProjectId } from "@t3tools/contracts"; import { useRef, type ReactNode } from "react"; import { Platform } from "react-native"; +import { useKeyboardState } from "react-native-keyboard-controller"; import { useSafeAreaInsets } from "react-native-safe-area-context"; import * as Dialog from "../../components/ui/Dialog"; @@ -91,6 +92,7 @@ export function SettingsFormScreen(props: { }) { const navigation = useNavigation(); const insets = useSafeAreaInsets(); + const keyboardVisible = useKeyboardState((state) => state.isVisible); return ( {Platform.OS === "ios" ? ( @@ -126,7 +128,15 @@ export function SettingsFormScreen(props: { contentInsetAdjustmentBehavior="automatic" className="flex-1" contentContainerClassName="gap-4 px-5 pt-4" - contentContainerStyle={{ paddingBottom: Math.max(insets.bottom, 18) + 18 }} + contentContainerStyle={{ + // With the keyboard up, iOS already insets by the home indicator area; padding it + // again left dead space under Save. + paddingBottom: keyboardVisible + ? Platform.OS === "ios" + ? 0 + : 18 + : Math.max(insets.bottom, 18) + 18, + }} > {props.children} From 4fe087b02acfba6178ffe146d2c9064ea6ffc2ec Mon Sep 17 00:00:00 2001 From: Jackson Miller Date: Mon, 9 Nov 2026 00:39:23 -0500 Subject: [PATCH 4/4] fix(mobile): on Android, the persona form scrolls Save clear of the keyboard The Android tester found Save hidden behind the keyboard at the end of the form, on base and head alike: Android never avoided the keyboard there. Android now uses keyboard-controller's KeyboardAwareScrollView, as the Inbox does; iOS keeps upstream's scroll view. Co-Authored-By: Claude Opus 5.5 --- .../src/j5/agents/SettingsFormScreen.tsx | 54 ++++++++++++------- 1 file changed, 35 insertions(+), 19 deletions(-) diff --git a/apps/mobile/src/j5/agents/SettingsFormScreen.tsx b/apps/mobile/src/j5/agents/SettingsFormScreen.tsx index b67767f7b4063..3cdadb27be6d7 100644 --- a/apps/mobile/src/j5/agents/SettingsFormScreen.tsx +++ b/apps/mobile/src/j5/agents/SettingsFormScreen.tsx @@ -9,7 +9,7 @@ import type { AgentPersonaCreateDraft } from "@t3tools/client-runtime/j5/agent-p import type { AgentPersonaEditInput, EnvironmentId, ProjectId } from "@t3tools/contracts"; import { useRef, type ReactNode } from "react"; import { Platform } from "react-native"; -import { useKeyboardState } from "react-native-keyboard-controller"; +import { KeyboardAwareScrollView, useKeyboardState } from "react-native-keyboard-controller"; import { useSafeAreaInsets } from "react-native-safe-area-context"; import * as Dialog from "../../components/ui/Dialog"; @@ -122,24 +122,40 @@ export function SettingsFormScreen(props: { } /> ) : null} - - {props.children} - + {/* iOS keeps upstream's scroll view, which registers with the native header and insets for the + keyboard; with it up, the home indicator area is already covered, so Save gets no extra + padding. Android has no header marker, so keyboard-controller's scroll view lets the form + scroll clear of the keyboard, as the Inbox does. */} + {Platform.OS === "ios" ? ( + + {props.children} + + ) : ( + + {props.children} + + )} ); }