The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 18:15 UTC
fix(mobile): align draft workspace controls with the composer (#24239)
Alex committed
Oct 23, 2026 at 15:27 UTC
96ffd7aa5689f98adb166e20b86c4bfe75a2707a
3 files changed
+16
-12
apps/mobile/src/features/threads/NewTaskDraftScreen.tsx
+13
-11
@@ -1104,20 +1104,22 @@ export function NewTaskDraftScreen(props: {
1104
/>
1105
)}
1106
label={workspaceLabel}
1107
- maxWidth={flow.workspaceMode === "local" ? 220 : 148}
1107
+ maxWidth="100%"
1108
onPress={() => flow.setWorkspaceMode(flow.workspaceMode === "local" ? "worktree" : "local")}
1109
showChevron={false}
1110
/>
1111
1112
- <ComposerInlineControl
1113
- accessibilityLabel={`${flow.workspaceMode === "worktree" ? "Base branch" : "Branch"}: ${selectedBranchLabel}`}
1114
- chevronDirection="right"
1115
- disabled={isComposerInteractionLocked || !flow.isGitRepo}
1116
- icon="arrow.triangle.branch"
1117
- label={showBranchLoading ? "Loading branches…" : selectedBranchLabel}
1118
- maxWidth={190}
1119
- onPress={() => openContextPicker("NewTaskBranch")}
1120
- />
1112
+ <View className="min-w-0 shrink">
1113
+ <ComposerInlineControl
1114
+ accessibilityLabel={`${flow.workspaceMode === "worktree" ? "Base branch" : "Branch"}: ${selectedBranchLabel}`}
1115
+ chevronDirection="right"
1116
+ disabled={isComposerInteractionLocked || !flow.isGitRepo}
1117
+ icon="arrow.triangle.branch"
1118
+ label={showBranchLoading ? "Loading branches…" : selectedBranchLabel}
1119
+ maxWidth="100%"
1120
+ onPress={() => openContextPicker("NewTaskBranch")}
1121
+ />
1122
+ </View>
1123
</View>
1124
);
1125
@@ -1173,7 +1175,7 @@ export function NewTaskDraftScreen(props: {
1175
draftMode={{
1176
content: heroViewport,
1177
controls: (
1176
- <View className="px-3 pb-1">
1178
+ <View className="pb-1">
1179
{projectClone && projectClone.phase !== "done" && selectedProject ? (
1180
<View className="px-1 pb-2">
1181
<ProjectCloneBanner
apps/mobile/src/features/threads/ThreadComposer.tsx
+2
@@ -233,6 +233,7 @@ export interface ThreadComposerProps {
233
readonly canOperateThread: boolean;
234
readonly placeholder: string;
235
readonly contentMaxWidth?: number;
236
+ readonly draftControls?: ReactNode;
237
readonly bottomInset?: number;
238
readonly connectionState: RemoteClientConnectionState;
239
readonly environmentLabel: string | null;
@@ -891,6 +892,7 @@ export const ThreadComposer = function ThreadComposer(props: ThreadComposerProps
892
className="relative w-full self-center"
893
style={{ maxWidth: props.contentMaxWidth }}
894
>
895
+ {props.draftControls}
896
{!isSubmissionLocked &&
897
composerMenu.trigger &&
898
(composerMenu.items.length > 0 || composerMenu.trigger.kind === "pull-request") ? (
apps/mobile/src/features/threads/ThreadDetailScreen.tsx
+1
-1
@@ -1660,7 +1660,6 @@ export const ThreadDetailScreen = function ThreadDetailScreen(props: ThreadDetai
1660
</View>
1661
) : (
1662
<>
1663
- {props.draftMode?.controls}
1663
<ThreadComposer
1664
isDraft={Boolean(props.draftMode)}
1665
canOperateThread={props.canOperateThread}
@@ -1674,6 +1673,7 @@ export const ThreadDetailScreen = function ThreadDetailScreen(props: ThreadDetai
1673
: "Ask the repo agent, or run a command…"
1674
}
1675
contentMaxWidth={contentMaxWidth}
1676
+ draftControls={props.draftMode?.controls}
1677
connectionState={props.connectionStateLabel}
1678
environmentLabel={props.environmentLabel}
1679
selectedThread={props.selectedThread}