@devries-cameron20 / t3code Mirror · read-only / commits / e2e9b4d3b7
Fork 0

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 23, 05:30 UTC

fix(mobile): dev pairing link no longer opens Home inside a sheet (#20130)

Alex committed Oct 16, 2026 at 22:45 UTC e2e9b4d3b79817952654fdbbb4ed309164e73d20
1 file changed +6 -4
apps/mobile/src/features/connection/ConnectionsNewRouteScreen.tsx
+6 -4
@@ -155,7 +155,7 @@ export function ConnectionsNewRouteScreen({
155 );
156
157 const connectAndClose = useCallback(
158 - async (pairingUrl: string, replaceWithHome: boolean) => {
158 + async (pairingUrl: string) => {
159 setIsSubmitting(true);
160 onChangeConnectionPairingUrl(pairingUrl);
161 try {
@@ -166,7 +166,9 @@ export function ConnectionsNewRouteScreen({
166 : Haptics.NotificationFeedbackType.Error,
167 );
168 if (AsyncResult.isSuccess(result)) {
169 - if (replaceWithHome || !navigation.canGoBack()) {
169 + // Return to whatever opened the sheet. Replacing it with Home would
170 + // nest Home inside any sheet still below it.
171 + if (!navigation.canGoBack()) {
172 navigation.dispatch(StackActions.replace("Home"));
173 } else {
174 navigation.goBack();
@@ -180,7 +182,7 @@ export function ConnectionsNewRouteScreen({
182 );
183
184 const handleSubmit = useCallback(async () => {
183 - await connectAndClose(buildPairingUrl(hostInput, codeInput), false);
185 + await connectAndClose(buildPairingUrl(hostInput, codeInput));
186 }, [codeInput, connectAndClose, hostInput]);
187
188 useEffect(() => {
@@ -189,7 +191,7 @@ export function ConnectionsNewRouteScreen({
191 }
192
193 attemptedAutoConnectRef.current = routePairingUrl;
192 - void connectAndClose(routePairingUrl, true);
194 + void connectAndClose(routePairingUrl);
195 }, [connectAndClose, routePairingUrl, shouldAutoConnect]);
196
197 return (