Skip to content

Commit cbbd444

Browse files
t3dotggclaude
andcommitted
fix(mobile): search stays open after going back from a thread
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 8c0670b commit cbbd444

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

‎apps/mobile/src/features/workspace/WorkspaceToolbar.ios.tsx‎

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,20 +87,14 @@ export function WorkspaceToolbar(props: {
8787
tab.searchMode !== "resting"
8888
) {
8989
searchRef.current?.setText(tab.query);
90-
if (duoSearch) {
90+
// Integrated search collapses to its button when its screen reappears,
91+
// which would hide the query that still filters the list.
92+
if (NATIVE_LIQUID_GLASS_SUPPORTED) {
9193
searchRef.current?.setActive(true);
9294
if (tab.searchMode === "active") searchRef.current?.focus();
9395
}
9496
}
95-
}, [
96-
searchHostVisible,
97-
duoSearch,
98-
isTabActive,
99-
selectedTab,
100-
tab.searchMode,
101-
tab.query,
102-
searchVisible,
103-
]);
97+
}, [searchHostVisible, isTabActive, selectedTab, tab.searchMode, tab.query, searchVisible]);
10498
useFocusEffect(
10599
useCallback(() => {
106100
const frame = requestAnimationFrame(restoreSearch);

0 commit comments

Comments
 (0)