Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

Remote screen fades out on close; Marketplace opens without a system navigation stack

leepokaiec4a221f543e
diff --git a/apps/ios/Views/RootView.swift b/apps/ios/Views/RootView.swift
index 4f29d39b..2cb10719 100644
--- a/apps/ios/Views/RootView.swift
+++ b/apps/ios/Views/RootView.swift
@@ -34,9 +34,9 @@ struct RootView: View {
if !empty { onboardingCompleted = true }
}
.codyncDialog("Something went wrong", isPresented: errorShown, message: errorMessage, cancel: "OK") { [] }
- .codyncOverlay(isPresented: Binding(get: { screenTarget.wrappedValue != nil }, set: { if !$0 { screenTarget.wrappedValue = nil } })) { _ in
+ .codyncOverlay(isPresented: Binding(get: { screenTarget.wrappedValue != nil }, set: { if !$0 { screenTarget.wrappedValue = nil } })) { close in
if let target = screenTarget.wrappedValue, let store = accounts.store(for: target.computerId) {
- ScreenView(watching: target.request.watching)
+ ScreenView(watching: target.request.watching, close: close)
.environment(store)
.id(target.id)
}
diff --git a/apps/macos/Views/ChatWindow.swift b/apps/macos/Views/ChatWindow.swift
index 3d726911..e239fa58 100644
--- a/apps/macos/Views/ChatWindow.swift
+++ b/apps/macos/Views/ChatWindow.swift
@@ -338,11 +338,8 @@ private struct ChatSplitView: View {
}
.codyncSheet(isPresented: Binding(get: { marketplace != nil }, set: { if !$0 { marketplace = nil } })) {
if let store = marketplace.flatMap(accounts.store(for:)) {
- // MarketplaceView pushes its Installed page with navigationDestination, which needs a stack.
- NavigationStack {
- MarketplaceView { marketplace = nil }
- }
- .environment(store)
+ MarketplaceView { marketplace = nil }
+ .environment(store)
.frame(width: min(920, windowSize.width - 80), height: sheetHeight)
}
}
diff --git a/kit/Sources/CodyncUI/Chrome.swift b/kit/Sources/CodyncUI/Chrome.swift
index 550d0919..0f71d8a1 100644
--- a/kit/Sources/CodyncUI/Chrome.swift
+++ b/kit/Sources/CodyncUI/Chrome.swift
@@ -227,6 +227,7 @@ private struct FadeLayer<Layer: View>: View {
var body: some View {
layer(animateClose)
+ .environment(\.dismissModal, DismissModalAction { animateClose() })
.opacity(shown ? 1 : 0)
.scaleEffect(shown ? 1 : 0.98)
.onAppear { withAnimation(Motion.reduced(Motion.layout, reduceMotion)) { shown = true } }