Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
012885e
feat(ios): add workspace-only bottom search
Jul 22, 2026
8288249
fix(ios): use native toolbar workspace search
Jul 22, 2026
2c2287b
fix(ios): integrate workspace search with tab bar
Jul 22, 2026
7c71bab
test(ios): cover persistent contextual search
azooz2003-bit Jul 23, 2026
eaecf92
fix(ios): keep search stable across primary tabs
azooz2003-bit Jul 23, 2026
1141f72
Merge remote-tracking branch 'origin/main' into task-ios-workspace-bo…
azooz2003-bit Jul 23, 2026
2fa4df3
test(ios): focus notification search assertion
azooz2003-bit Jul 23, 2026
4dc5f9e
fix(ios): make notification search resilient
azooz2003-bit Jul 23, 2026
4022dcb
fix(ios): close contextual search review feedback
azooz2003-bit Jul 23, 2026
9755d32
fix(ios): stabilize contextual search state
azooz2003-bit Jul 25, 2026
ade0028
merge origin/main into iOS search tab PR
azooz2003-bit Jul 25, 2026
763e9cb
fix(ios): preserve search query across submit cleanup
azooz2003-bit Jul 25, 2026
eb0daa9
fix(ios): address search review lifecycle
azooz2003-bit Jul 25, 2026
7e60ac7
fix(ios): isolate search state and projection work
azooz2003-bit Jul 25, 2026
425aa01
fix(ios): split search content from root lifecycle
azooz2003-bit Jul 25, 2026
64c1eb4
fix(ios): guard search activation ownership
azooz2003-bit Jul 25, 2026
97736d2
fix(ios): deactivate search before result navigation
azooz2003-bit Jul 25, 2026
64a4038
fix(ios): preserve search result navigation ownership
azooz2003-bit Jul 25, 2026
65237a8
fix(ios): keep notification search open until commit
azooz2003-bit Jul 25, 2026
7b7d607
fix(ios): isolate notification search navigation path
azooz2003-bit Jul 25, 2026
4e8a3c0
fix(ios): show workspace action failures from search
azooz2003-bit Jul 25, 2026
37824d9
fix(ios): bound notification feed search source
azooz2003-bit Jul 25, 2026
db74dcf
fix(ios): stabilize retained notification feed revisions
azooz2003-bit Jul 25, 2026
2264ffc
fix(ios): bound notification feed aggregation work
azooz2003-bit Jul 25, 2026
3afa599
fix(ios): keep notification feed persistence loadable
azooz2003-bit Jul 25, 2026
bdc7b37
fix(ios): bound notification feed wire recovery
azooz2003-bit Jul 25, 2026
390c94c
fix(ios): preserve bounded notification feed revisions
azooz2003-bit Jul 25, 2026
44efeb1
fix(ios): make notification feed recovery transactional
azooz2003-bit Jul 25, 2026
eafedd0
fix(ios): bound notification feed recovery scan
azooz2003-bit Jul 25, 2026
1d9bb7c
fix(ios): isolate search drafts and recovery metadata
azooz2003-bit Jul 25, 2026
03d0755
fix(ios): align notification feed quarantine naming
azooz2003-bit Jul 25, 2026
e370d33
fix(ios): bound notification feed history text
azooz2003-bit Jul 25, 2026
85582f3
fix(ios): bound notification feed ingress recovery
azooz2003-bit Jul 25, 2026
7d3e771
fix(ios): coalesce notification feed persistence
azooz2003-bit Jul 25, 2026
faed67e
fix(ios): parse notification feed history metadata safely
azooz2003-bit Jul 25, 2026
67a54ca
fix(ios): recover oversized notification feed metadata from tail
azooz2003-bit Jul 25, 2026
1b8879d
fix(ios): retain notification feed projections during rebuild
azooz2003-bit Jul 25, 2026
3c83691
fix(ios): disable stale notification rows during source rebuild
azooz2003-bit Jul 25, 2026
952050f
fix(ios): bound notification feed migration and decode
azooz2003-bit Jul 25, 2026
648c094
fix(ios): fail closed on oversized feed edge cases
azooz2003-bit Jul 25, 2026
7201cae
fix(ios): cancel notification feed decode workers
azooz2003-bit Jul 25, 2026
5c946a9
fix(ios): cap notification search source state
azooz2003-bit Jul 25, 2026
228883f
fix(ios): normalize primary search queries
azooz2003-bit Jul 25, 2026
210cca0
fix(ios): preserve editable search drafts
azooz2003-bit Jul 25, 2026
d418d55
fix(ios): preserve filtered notification empty states
azooz2003-bit Jul 25, 2026
916ea31
fix(mac): retire oversized history quarantines
azooz2003-bit Jul 25, 2026
b49f210
fix(ios): route notification links by search scope
azooz2003-bit Jul 25, 2026
a6310c3
fix(ios): preserve notification source tails
azooz2003-bit Jul 25, 2026
2dfd323
fix(mac): fit notification feed frames in one pass
azooz2003-bit Jul 25, 2026
484bdc7
fix(ios): aggregate scoped notification feeds
azooz2003-bit Jul 25, 2026
8ec3425
fix(mac): recover oversized history scan exhaustion
azooz2003-bit Jul 25, 2026
dfd88bd
fix(ios): target notification feed bulk scope
azooz2003-bit Jul 25, 2026
e044eab
fix(ios): satisfy notification search policy gates
azooz2003-bit Jul 25, 2026
73331dc
fix(ios): ignore initial native search cleanup
azooz2003-bit Jul 25, 2026
0304d5f
fix(ios): use native task composer toolbar on iOS 26
azooz2003-bit Jul 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public struct WorkspaceListLayoutPreviewView: View {
@State private var macSelection: WorkspaceMacSelection = .all
@State private var refreshGeneration = 0
@State private var model: WorkspaceListLayoutPreviewModel
@State private var selectedPrimaryTab: MobilePrimaryTab = .workspaces
@State private var workspaceSearchText = ""
// Safety: DEBUG screenshot-only presenter is owned by this preview view and
// only mutates its fired flag from the SwiftUI task that requests the banner.
private let notificationPresenter = ScreenshotNotificationPresenter()
Expand Down Expand Up @@ -229,7 +231,7 @@ public struct WorkspaceListLayoutPreviewView: View {
WorkspaceDetailDelayedTerminalPreviewView()
} else {
let workspaceListStack = NavigationStack {
WorkspaceListSearchHost { searchText in
WorkspaceListSearchHost(searchText: $workspaceSearchText) { searchText in
WorkspaceListView(
workspaces: model.workspaces,
groups: groups,
Expand Down Expand Up @@ -289,17 +291,26 @@ public struct WorkspaceListLayoutPreviewView: View {
} : nil,
searchText: searchText
)
.navigationDestination(item: $fixtureRoute) { route in
VStack(spacing: 12) {
Text(
model.workspaces.first(where: { $0.id == route.id })?.name
?? route.id.rawValue
)
.font(.title2)
Text("Fixture workspace detail")
.foregroundStyle(.secondary)
}
.navigationDestination(item: $fixtureRoute) { route in
VStack(spacing: 12) {
Text(
model.workspaces.first(where: { $0.id == route.id })?.name
?? route.id.rawValue
)
.font(.title2)
Text("Fixture workspace detail")
.foregroundStyle(.secondary)
}
.accessibilityIdentifier("FixtureWorkspaceDetail")
.toolbarVisibility(.hidden, for: .tabBar, .bottomBar)
.navigationBarBackButtonHidden(true)
.toolbar {
ToolbarItem(placement: .topBarLeading) {
WorkspaceBackButton(unreadCount: 0) {
fixtureRoute = nil
}
}
.accessibilityIdentifier("FixtureWorkspaceDetail")
}
}
}
Expand All @@ -310,15 +321,16 @@ public struct WorkspaceListLayoutPreviewView: View {
.accessibilityHidden(true)
}
}

if showsTabScaffold {
TabView {
Tab("Workspaces", systemImage: "rectangle.stack") {
workspaceListStack
}
Tab("Notifications", systemImage: "bell") {
Text("Notification feed fixture")
.foregroundStyle(.secondary)
}
MobilePrimaryTabScaffold(
selection: $selectedPrimaryTab,
notificationUnreadCount: 0
) {
workspaceListStack
} notifications: {
Text("Notification feed fixture")
.foregroundStyle(.secondary)
}
} else {
workspaceListStack
Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,83 @@
import CmuxMobileSupport
import SwiftUI

/// Owns the native search controller above workspace snapshots that are replaced
/// during refresh. Stable query and focus ownership survive live row snapshots,
/// while an explicit navigation-bar drawer keeps search at the top on iOS 26.
/// Owns workspace search state above list snapshots that are replaced during
/// refresh. The shell owns the query so it survives those replacements.
@MainActor
struct WorkspaceListSearchHost<Content: View>: View {
@State private var searchText = ""
@Binding private var searchText: String
@FocusState private var searchIsFocused: Bool
private let taskComposerAction: (() -> Void)?
private let content: (String) -> Content

init(@ViewBuilder content: @escaping (String) -> Content) {
init(
searchText: Binding<String>,
taskComposerAction: (() -> Void)? = nil,
@ViewBuilder content: @escaping (String) -> Content
) {
_searchText = searchText
self.taskComposerAction = taskComposerAction
self.content = content
}

var body: some View {
#if os(iOS)
content(searchText)
.searchable(
text: $searchText,
placement: .navigationBarDrawer(displayMode: .always)
)
.searchFocused($searchIsFocused)
iOSContent
#else
content(searchText)
.searchable(text: $searchText)
.searchFocused($searchIsFocused)
#endif
}

#if os(iOS)
@ViewBuilder
private var iOSContent: some View {
if #available(iOS 26.0, *) {
content(searchText)
.toolbar(removing: .search)
.searchable(
text: $searchText,
prompt: L10n.string(
"mobile.workspaces.search.placeholder",
defaultValue: "Search workspaces"
)
)
.searchToolbarBehavior(.minimize)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
fd -a Localizable.xcstrings
python3 - <<'PY'
import json
path = "ios/cmux/Resources/Localizable.xcstrings"
try:
    data = json.load(open(path))
except FileNotFoundError:
    print("xcstrings file not found at expected path")
    raise SystemExit(0)
keys = [
    "mobile.workspaces.search.placeholder",
    "mobile.taskComposer.button.accessibilityLabel",
    "mobile.taskComposer.button.accessibilityHint",
]
for k in keys:
    entry = data.get("strings", {}).get(k)
    if entry is None:
        print(f"MISSING KEY: {k}")
        continue
    locs = entry.get("localizations", {})
    print(f"{k}: locales={sorted(locs.keys())}")
PY

Repository: manaflow-ai/cmux

Length of output: 1502


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== L10n/localization code around WorkspaceListSearchHost =="
fd -a WorkspaceListSearchHost.swift . | sed 's#^\./##' | while read -r f; do
  echo "--- $f"
  wc -l "$f"
  nl -ba "$f" | sed -n '1,120p'
done

echo "== referenced xcstrings size/tops =="
wc -l ios/cmux/Resources/Localizable.xcstrings Packages/iOS/CmuxMobileShellUI/Sources/CmuxMobileShellUI/Resources/Localizable.xcstrings

echo "== targeted key occurrences =="
rg -n "mobile\.workspaces\.search\.placeholder|mobile\.taskComposer\.button\.accessibility" -S .

echo "== xcstrings key entries =="
python3 - <<'PY'
import json, pathlib
for path in ["ios/cmux/Resources/Localizable.xcstrings", "Packages/iOS/CmuxMobileShellUI/Sources/CmuxMobileShellUI/Resources/Localizable.xcstrings"]:
    p=pathlib.Path(path)
    print(f"--- {path}")
    if not p.exists():
        print("missing")
        continue
    data=json.loads(p.read_text())
    for k in ["mobile.workspaces.search.placeholder","mobile.taskComposer.button.accessibilityLabel","mobile.taskComposer.button.accessibilityHint"]:
        entry=data.get("strings",{}).get(k)
        if entry:
            locs=entry.get("localizations",{})
            print(k)
            for loc,(translated,unit) in locs.items():
                s=unit.get("stringUnit",{})
                print(f"  {loc}: value={s.get('value')!r}")
        else:
            print(f"MISSING {k}")
PY

Repository: manaflow-ai/cmux

Length of output: 473


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== WorkspaceListSearchHost.swift locations and key occurrences =="
fd -a WorkspaceListSearchHost.swift .

echo
for f in $(fd WorkspaceListSearchHost.swift .); do
  echo "--- $f"
  cat -n "$f" | sed -n '1,120p'
done

echo "== localized key search across all tracked Swift files =="
rg -n "mobile\.workspaces\.search\.placeholder|mobile\.taskComposer\.button\.accessibility" -S --glob '*.swift' . || true

echo "== supported locale entries in referenced xcstrings =="
python3 - <<'PY'
import json, pathlib
for path in ["ios/cmux/Resources/Localizable.xcstrings", "Packages/iOS/CmuxMobileShellUI/Sources/CmuxMobileShellUI/Resources/Localizable.xcstrings"]:
    p=pathlib.Path(path)
    print(f"--- {path}")
    if not p.exists():
        print("missing")
        continue
    try:
        data=json.loads(p.read_text())
    except Exception as e:
        print(f"json error: {e}")
        continue
    metas=data.get("metalizations",{}) or data.get("manifest",{}).get("localizations",{}) or data.get("localizations",{})
    print("top meta keys:", sorted(data.keys()))
    print("localizations:", sorted(metas.keys()) if isinstance(metas, dict) else type(metas).__name__)
    for k in ["mobile.workspaces.search.placeholder","mobile.taskComposer.button.accessibilityLabel","mobile.taskComposer.button.accessibilityHint"]:
        entry=data.get("strings",{}).get(k)
        if entry:
            print(k, "localizations=", sorted(entry.get("localizations",{}).keys()))
            for loc,unit in sorted(entry.get("localizations",{}).items()):
                print(f"  {loc}:", repr(unit.get("stringUnit",{}).get("value")))
        else:
            print("MISSING", k)
PY

Repository: manaflow-ai/cmux

Length of output: 5905


Add the new mobile localization key entries to every supported locale.

L10n.string now uses these keys, but the catalog only contains en and ja entries. Extend mobile.workspaces.search.placeholder, mobile.taskComposer.button.accessibilityLabel, and mobile.taskComposer.button.accessibilityHint to all supported locales in the referenced string catalog(s) to avoid broken fallback for unsupported locales.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@Packages/iOS/CmuxMobileShellUI/Sources/CmuxMobileShellUI/WorkspaceListSearchHost.swift`
around lines 39 - 46, Add the three mobile localization
keys—mobile.workspaces.search.placeholder,
mobile.taskComposer.button.accessibilityLabel, and
mobile.taskComposer.button.accessibilityHint—to every supported locale in the
project’s referenced string catalog(s), preserving the existing English and
Japanese entries and providing valid localized values for all remaining locales.

.searchFocused($searchIsFocused)
.toolbar {
Comment thread
azooz2003-bit marked this conversation as resolved.
Resolved
ToolbarSpacer(.flexible, placement: .bottomBar)
if let taskComposerAction {
ToolbarItem(placement: .bottomBar) {
Button(action: taskComposerAction) {
Image(systemName: "sparkles")
}
.accessibilityLabel(
L10n.string(
"mobile.taskComposer.button.accessibilityLabel",
defaultValue: "New Task"
)
)
.accessibilityHint(
L10n.string(
"mobile.taskComposer.button.accessibilityHint",
defaultValue: "Opens the task composer."
)
)
.accessibilityIdentifier("MobileTaskComposerButton")
}
ToolbarSpacer(.fixed, placement: .bottomBar)
}
DefaultToolbarItem(kind: .search, placement: .bottomBar)
}
} else {
content(searchText)
.searchable(
text: $searchText,
placement: .navigationBarDrawer(displayMode: .always)
)
.searchFocused($searchIsFocused)
}
}
#endif
}
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ struct WorkspaceShellView: View {
@State private var rootToolbarSelectionTask: Task<Void, Never>?
@State private var rootToolbarSelectionGeneration: UInt64 = 0
#endif
@State private var workspaceSearchText = ""
@State private var hasPresentedSplitDetail = false
@State private var splitColumnVisibility: NavigationSplitViewVisibility = .automatic
@State private var macSelection: WorkspaceMacSelection = .all
Expand Down Expand Up @@ -238,7 +239,7 @@ struct WorkspaceShellView: View {
canCreateWorkspaceForSelection: presentation.canCreateWorkspaceForSelection
)
.toolbarVisibility(.hidden, for: .tabBar)
}
}
}
}
.environment(\.workspaceRootToolbarContentWidth, geometry.size.width)
Expand Down Expand Up @@ -350,7 +351,12 @@ struct WorkspaceShellView: View {

private func stackLayout(canCreateWorkspaceForSelection: Bool) -> some View {
NavigationStack(path: $compactNavigationPath) {
WorkspaceListSearchHost { searchText in
WorkspaceListSearchHost(
searchText: $workspaceSearchText,
taskComposerAction: displaySettings.taskComposerEnabled ? {
isTaskComposerPresented = true
} : nil
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
) { searchText in
workspaceList(
navigationStyle: .push,
searchText: searchText,
Expand Down Expand Up @@ -379,7 +385,7 @@ struct WorkspaceShellView: View {
)
)
#if os(iOS)
.toolbarVisibility(.hidden, for: .tabBar)
.toolbarVisibility(.hidden, for: .tabBar, .bottomBar)
#endif
// Only on the pushed compact stack (where a back button
// exists): replace the system back button with a custom one
Expand Down Expand Up @@ -433,7 +439,7 @@ struct WorkspaceShellView: View {

private func splitLayout(canCreateWorkspaceForSelection: Bool) -> some View {
NavigationSplitView(columnVisibility: $splitColumnVisibility) {
WorkspaceListSearchHost { searchText in
WorkspaceListSearchHost(searchText: $workspaceSearchText) { searchText in
workspaceList(
navigationStyle: .sidebar,
searchText: searchText,
Expand Down Expand Up @@ -671,11 +677,21 @@ struct WorkspaceShellView: View {
@ViewBuilder
private var taskComposerButtonOverlay: some View {
if displaySettings.taskComposerEnabled {
TaskComposerButton {
isTaskComposerPresented = true
if #available(iOS 26.0, *) {
if !usesCompactStack {
TaskComposerButton {
isTaskComposerPresented = true
}
.padding(.trailing, 20)
.padding(.bottom, 6)
}
} else {
TaskComposerButton {
isTaskComposerPresented = true
}
.padding(.trailing, 20)
.padding(.bottom, 6)
}
.padding(.trailing, 20)
.padding(.bottom, 6)
}
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
#endif
Expand Down
17 changes: 17 additions & 0 deletions ios/cmux/Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -11816,6 +11816,23 @@
}
}
},
"mobile.workspaces.search.placeholder": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "Search workspaces"
}
},
"ja": {
"stringUnit": {
"state": "translated",
"value": "ワークスペースを検索"
}
}
}
},
"mobile.workspaces.settings": {
"extractionState": "manual",
"localizations": {
Expand Down
Loading