@devries-cameron20 / t3code-1 / commits / 3a74577517
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(mobile): Stop stays reachable while a question card is expanded (#37398)

Julius Marminge committed Nov 15, 2026 at 15:48 UTC 3a7457751790b0cf6622b00ea6a94dd2f3c5d361
1 file changed +37 -31
apps/mobile/src/features/threads/PendingUserInputCard.tsx
+37 -31
@@ -170,6 +170,16 @@ export function PendingUserInputCard(props: PendingUserInputCardProps) {
170 }));
171 const overlayHeightStyle = useAnimatedStyle(() => ({ height: maxHeight.value }));
172
173 + const stopButton = props.onStopThread ? (
174 + <ControlPill
175 + accessibilityLabel="Stop"
176 + icon="stop.fill"
177 + variant="danger"
178 + className="h-9 w-9"
179 + disabled={!props.canOperateThread}
180 + onPress={props.onStopThread}
181 + />
182 + ) : null;
183 const bar = (
184 <View
185 onLayout={handleBarLayout}
@@ -200,16 +210,7 @@ export function PendingUserInputCard(props: PendingUserInputCardProps) {
210 type="monochrome"
211 />
212 </Pressable>
203 - {props.onStopThread ? (
204 - <ControlPill
205 - accessibilityLabel="Stop"
206 - icon="stop.fill"
207 - variant="danger"
208 - className="h-9 w-9"
209 - disabled={!props.canOperateThread}
210 - onPress={props.onStopThread}
211 - />
212 - ) : null}
213 + {stopButton}
214 </View>
215 );
216 const card = (
@@ -221,27 +222,32 @@ export function PendingUserInputCard(props: PendingUserInputCardProps) {
222 className="overflow-hidden gap-2.5 rounded-[20px] border border-border bg-card-alt p-4"
223 style={cardAnimatedStyle}
224 >
224 - <Pressable
225 - accessibilityRole="button"
226 - accessibilityLabel="Collapse user input"
227 - onPress={props.onToggleCollapsed}
228 - className="flex-row items-start gap-2"
229 - >
230 - <View className="flex-1 gap-2.5">
231 - <Text className="font-t3-bold text-2xs uppercase tracking-[1.1px] text-foreground-secondary">
232 - User input needed
233 - </Text>
234 - <Text className="font-t3-bold text-lg text-foreground">Fill in the pending answers</Text>
235 - </View>
236 - <View className="h-8 w-8 items-center justify-center rounded-full bg-subtle-strong">
237 - <SymbolView
238 - name="chevron.down"
239 - size={13}
240 - tintColorClassName={"accent-icon-subtle"}
241 - type="monochrome"
242 - />
243 - </View>
244 - </Pressable>
225 + <View className="flex-row items-start gap-2">
226 + <Pressable
227 + accessibilityRole="button"
228 + accessibilityLabel="Collapse user input"
229 + onPress={props.onToggleCollapsed}
230 + className="flex-1 flex-row items-start gap-2"
231 + >
232 + <View className="flex-1 gap-2.5">
233 + <Text className="font-t3-bold text-2xs uppercase tracking-[1.1px] text-foreground-secondary">
234 + User input needed
235 + </Text>
236 + <Text className="font-t3-bold text-lg text-foreground">
237 + Fill in the pending answers
238 + </Text>
239 + </View>
240 + <View className="h-8 w-8 items-center justify-center rounded-full bg-subtle-strong">
241 + <SymbolView
242 + name="chevron.down"
243 + size={13}
244 + tintColorClassName={"accent-icon-subtle"}
245 + type="monochrome"
246 + />
247 + </View>
248 + </Pressable>
249 + {stopButton}
250 + </View>
251 <ScrollView
252 bounces={false}
253 className="min-h-0"