@devries-cameron20 / t3code-1 / commits / b87abfb200
Fork 0

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

fix(mobile): restore the sidebar toggle and drop the inspector toggle on iPhone Duo (#33213)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Nov 8, 2026 at 23:21 UTC b87abfb200a9ee5ed2e01ec70699ee4ea2c51e59
4 files changed +3 -33
apps/mobile/src/components/ui/AppBar.tsx
+2 -6
@@ -57,10 +57,6 @@ export function AppBar(props: AppBarProps) {
57 setOptions({ headerShown: true });
58 return () => setOptions({ headerShown: false });
59 }, [ownsInspectorBar, setOptions]);
60 - // The Duo's native columns show their own sidebar button while the sidebar is open.
61 - const showsSidebarToggle =
62 - sidebarToggle !== null &&
63 - (!usesNativeWorkspaceColumns || deviceType === "pad" || !sidebarToggle.visible);
60 const splitBackPress = props.backInSplitView?.onPress ?? props.onBack;
61 const splitBack =
62 layout.usesSplitView && props.backInSplitView && splitBackPress
@@ -161,7 +157,7 @@ export function AppBar(props: AppBarProps) {
157 onPress={props.onClose}
158 />
159 </Toolbar>
164 - ) : rootBack || splitBack || showsSidebarToggle || compose ? (
160 + ) : rootBack || splitBack || sidebarToggle || compose ? (
161 <Toolbar placement="left">
162 {rootBack ? (
163 <ScreenHeaderButton
@@ -172,7 +168,7 @@ export function AppBar(props: AppBarProps) {
168 />
169 ) : null}
170 {splitBack ? <ScreenHeaderButton {...splitBack} /> : null}
175 - {showsSidebarToggle ? (
171 + {sidebarToggle ? (
172 <ScreenHeaderButton
173 axisBehavior={usesNativeWorkspaceColumns ? "horizontalOnly" : undefined}
174 accessibilityLabel={sidebarToggle.accessibilityLabel}
apps/mobile/src/features/threads/DraftThreadHeader.tsx
-2
@@ -49,9 +49,7 @@ export function DraftThreadHeader(props: {
49 title="New thread"
50 subtitle=""
51 hasThreadCwd={props.cwd !== null}
52 - fileInspectorSupported={false}
52 inspectorMode={null}
54 - onToggleInspector={openFiles}
53 onOpenFilesInspector={openFiles}
54 gitControls={{
55 environmentId,
apps/mobile/src/features/threads/ThreadHeader.tsx
-14
@@ -1,5 +1,4 @@
1 import { AppBar } from "../../components/ui/AppBar";
2 -import { ScreenHeaderButton } from "../../components/ui/ScreenHeaderButton";
2 import type { AppBarAction, AppBarMenu } from "../../components/ui/AppBar.types";
3 import { useAdaptiveWorkspaceLayout } from "../layout/AdaptiveWorkspaceLayout";
4 import type { ThreadInspectorMode } from "./thread-inspector-navigation";
@@ -17,9 +16,7 @@ export function ThreadHeader(props: {
16 readonly onReturnToThread?: () => void;
17 readonly draft?: boolean;
18 readonly hasThreadCwd: boolean;
20 - readonly fileInspectorSupported: boolean;
19 readonly inspectorMode: ThreadInspectorMode | null;
22 - readonly onToggleInspector: () => void;
20 readonly onOpenFilesInspector: () => void;
21 }) {
22 const goBack = useWorkspaceBackNavigation("threads");
@@ -28,7 +25,6 @@ export function ThreadHeader(props: {
25 const gitMenu = useThreadGitMenuDefinition(props.gitControls);
26 const terminalMenu = threadTerminalMenu(props.gitControls);
27 const filesVisible = props.inspectorMode === "files" && panes.auxiliaryPaneVisible;
31 - const inspectorVisible = props.inspectorMode !== null && panes.auxiliaryPaneVisible;
28 const actions: AppBarAction[] = props.hasThreadCwd
29 ? [
30 {
@@ -60,16 +56,6 @@ export function ThreadHeader(props: {
56 }
57 actions={actions}
58 menus={menus}
63 - trailing={
64 - props.fileInspectorSupported && props.hasThreadCwd ? (
65 - <ScreenHeaderButton
66 - accessibilityLabel={inspectorVisible ? "Hide inspector" : "Show inspector"}
67 - icon="sidebar.right"
68 - selected={inspectorVisible}
69 - onPress={props.onToggleInspector}
70 - />
71 - ) : null
72 - }
59 hideBottomBorder
60 compact={composerKeyboardActive}
61 />
apps/mobile/src/features/threads/ThreadRouteScreen.tsx
+1 -11
@@ -342,8 +342,7 @@ function ThreadRouteContent(
342 readonly selectedThreadDetailState: ReturnType<typeof useSelectedThreadDetailState>;
343 },
344 ) {
345 - const { fileInspector, layout, panes, showInspector, toggleAuxiliaryPane } =
346 - useAdaptiveWorkspaceLayout();
345 + const { layout, panes, showInspector, toggleAuxiliaryPane } = useAdaptiveWorkspaceLayout();
346 const { connectionState } = useRemoteConnectionStatus();
347 const { onReconnectEnvironment } = useRemoteConnections();
348 const {
@@ -558,13 +557,6 @@ function ThreadRouteContent(
557 setChosenInspectorMode(props.renderInspector === undefined ? "files" : "route");
558 showInspector();
559 };
561 - const handleToggleInspector = () => {
562 - if (inspectorMode === null) {
563 - handleOpenFilesInspector();
564 - return;
565 - }
566 - toggleAuxiliaryPane();
567 - };
560 const handleSelectInspectorFile = (path: string) => {
561 if (selectedThread === null) {
562 return;
@@ -964,9 +956,7 @@ function ThreadRouteContent(
956 subtitle={headerSubtitle}
957 gitControls={threadGitControlProps}
958 hasThreadCwd={selectedThreadCwd !== null}
967 - fileInspectorSupported={fileInspector.supported}
959 inspectorMode={inspectorMode}
969 - onToggleInspector={handleToggleInspector}
960 onOpenFilesInspector={handleOpenFilesInspector}
961 onReturnToThread={props.onReturnToThread}
962 />