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.

fix(desktop): a menu bar network row opens Network even with Settings open

leepokaia5624cf5f666
diff --git a/apps/desktop/src/renderer/views/ChatWindow.tsx b/apps/desktop/src/renderer/views/ChatWindow.tsx
index f9aa3bfe..98fa3b51 100644
--- a/apps/desktop/src/renderer/views/ChatWindow.tsx
+++ b/apps/desktop/src/renderer/views/ChatWindow.tsx
@@ -462,7 +462,7 @@ function ChatSplitView() {
) : null}
</Sheet>
<Sheet open={settings !== null} onClose={() => setSettings(null)} width={Math.min(800, windowSize.width - 80)} height={Math.min(620, sheetHeight)}>
- {settings ? <SettingsView page={settings} /> : null}
+ {settings ? <SettingsView page={settings} setPage={setSettings} /> : null}
</Sheet>
<Dialog
open={newSessionBot !== null}
diff --git a/apps/desktop/src/renderer/views/settings/SettingsView.tsx b/apps/desktop/src/renderer/views/settings/SettingsView.tsx
index f1d06ec7..f5e1f9bd 100644
--- a/apps/desktop/src/renderer/views/settings/SettingsView.tsx
+++ b/apps/desktop/src/renderer/views/settings/SettingsView.tsx
@@ -44,9 +44,8 @@ const pages: { id: SettingsPage; title: string; label?: string; group: string; i
/** Each page as `screen_viewed` names it; Computer access and Voice chat report themselves. */
const pageScreens: Record<SettingsPage, Screen | null> = { general: 'settings', updates: 'settings', computers: 'computers', network: 'settings', usage: 'usage', access: null, voice: null }
-export function SettingsView({ page: initial }: { page: SettingsPage }) {
- // Kept here: the sheet's content doesn't follow the window's state once shown.
- const [page, setPage] = useState(initial)
+/** `page` is the window's: a command (the menu bar's network rows) can turn the open sheet to another page. */
+export function SettingsView({ page, setPage }: { page: SettingsPage; setPage: (page: SettingsPage) => void }) {
const app = useApp()
const dismiss = useDismiss()
const tr = useTr()