The best way to control Claude Code, Codex and more from any computer or phone
fix(mobile): restore Android chat content corners (#23989)
Co-authored-by: maria-rcks <maria@kuuro.net>
Alex committed
Oct 26, 2026 at 21:48 UTC
e0d068cc9f20239629fdb505cbfe4995df9651e9
2 files changed
+34
-22
apps/mobile/src/features/threads/NewTaskDraftScreen.tsx
+15
-12
@@ -1067,18 +1067,21 @@ export function NewTaskDraftScreen(props: {
1067
1068
if (!flow.selectedModel) {
1069
return (
1070
- <ThreadScreenFallback>
1071
- <AppBar
1072
- title="New thread"
1073
- sidebar={false}
1074
- onBack={goBack}
1075
- options={{
1076
- ...threadHeaderAppearance(NATIVE_LIQUID_GLASS_SUPPORTED),
1077
- unstable_headerSubtitle: undefined,
1078
- unstable_headerRightItems: () => [],
1079
- unstable_headerToolbarItems: () => [],
1080
- }}
1081
- />
1070
+ <ThreadScreenFallback
1071
+ header={
1072
+ <AppBar
1073
+ title="New thread"
1074
+ sidebar={false}
1075
+ onBack={goBack}
1076
+ options={{
1077
+ ...threadHeaderAppearance(NATIVE_LIQUID_GLASS_SUPPORTED),
1078
+ unstable_headerSubtitle: undefined,
1079
+ unstable_headerRightItems: () => [],
1080
+ unstable_headerToolbarItems: () => [],
1081
+ }}
1082
+ />
1083
+ }
1084
+ >
1085
<View className="flex-1 justify-end gap-3 p-4">
1086
{environmentControl}
1087
<Text className="text-foreground-muted">
apps/mobile/src/features/threads/ThreadScreenHost.tsx
+19
-10
@@ -6,12 +6,12 @@ import {
6
useSyncExternalStore,
7
type ReactNode,
8
} from "react";
9
-import { View } from "react-native";
9
+import { Platform, View } from "react-native";
10
import { ThreadDetailScreen, type ThreadDetailScreenProps } from "./ThreadDetailScreen";
11
12
type ThreadScreenContent =
13
| { readonly props: ThreadDetailScreenProps }
14
- | { readonly fallback: ReactNode };
14
+ | { readonly fallback: ReactNode; readonly header?: ReactNode };
15
16
function createThreadScreenStore() {
17
let current: ThreadScreenContent | null = null;
@@ -36,13 +36,16 @@ function ThreadScreenOutlet() {
36
const store = useContext(ThreadScreenContext)!;
37
const content = useSyncExternalStore(store.subscribe, store.getSnapshot);
38
if (content === null) return null;
39
- return "props" in content ? (
39
+ const body = "props" in content ? <ThreadDetailScreen {...content.props} /> : content.fallback;
40
+ return (
41
<>
41
- {content.props.header}
42
- <ThreadDetailScreen {...content.props} />
42
+ {"props" in content ? content.props.header : content.header}
43
+ {Platform.OS === "android" ? (
44
+ <View className="flex-1 overflow-hidden rounded-t-[28px] bg-thread-canvas">{body}</View>
45
+ ) : (
46
+ body
47
+ )}
48
</>
44
- ) : (
45
- content.fallback
49
);
50
}
51
@@ -53,7 +56,7 @@ export function ThreadScreenHost({ children }: { readonly children: ReactNode })
56
return (
57
<ThreadScreenContext.Provider value={store}>
58
{children}
56
- <View className="flex-1 bg-screen android:overflow-hidden android:rounded-t-[28px] android:bg-thread-canvas">
59
+ <View className="flex-1 bg-screen android:bg-header">
60
<ThreadScreenOutlet />
61
</View>
62
</ThreadScreenContext.Provider>
@@ -68,10 +71,16 @@ export function ThreadScreenBinding(props: ThreadDetailScreenProps) {
71
return null;
72
}
73
71
-export function ThreadScreenFallback({ children }: { readonly children: ReactNode }) {
74
+export function ThreadScreenFallback({
75
+ children,
76
+ header,
77
+}: {
78
+ readonly children: ReactNode;
79
+ readonly header?: ReactNode;
80
+}) {
81
const store = useContext(ThreadScreenContext)!;
82
useLayoutEffect(() => {
74
- store.publish({ fallback: children });
83
+ store.publish({ fallback: children, header });
84
});
85
return null;
86
}