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): let the window move from the top of the empty and new-chat panes

leepokai49e4cae53e3e
diff --git a/apps/desktop/src/renderer/views/ChatWindow.tsx b/apps/desktop/src/renderer/views/ChatWindow.tsx
index f12e122d..99477fbe 100644
--- a/apps/desktop/src/renderer/views/ChatWindow.tsx
+++ b/apps/desktop/src/renderer/views/ChatWindow.tsx
@@ -323,6 +323,7 @@ function ChatSplitView() {
} else {
detail = (
<div className="empty-detail">
+ <div className="detail-drag drag" />
<div style={{ display: 'flex' }}>
<CharacterAvatar shape="blob" color="blue" size={60} mood="working" />
<CharacterAvatar shape="squircle" color="orange" size={60} style={{ marginLeft: -10 }} />
diff --git a/apps/desktop/src/renderer/views/StartupRecovery.tsx b/apps/desktop/src/renderer/views/StartupRecovery.tsx
index f3bcad7d..95ecebe4 100644
--- a/apps/desktop/src/renderer/views/StartupRecovery.tsx
+++ b/apps/desktop/src/renderer/views/StartupRecovery.tsx
@@ -15,6 +15,7 @@ export function StartupRecovery({ manage }: { manage: () => void }) {
const connecting = ssh.state.profiles.some((p) => isSSHConnecting(ssh.status(p.id)))
return (
<div className="startup-recovery">
+ <div className="detail-drag drag" />
<div className="startup-recovery-content">
<div className="startup-recovery-title" role="status">
{connecting ? <Spinner size={22} /> : <Icon name="desktopcomputer" size={22} color="var(--secondary)" />}
diff --git a/apps/desktop/src/renderer/views/bots/NewChatView.tsx b/apps/desktop/src/renderer/views/bots/NewChatView.tsx
index 5d1cad04..4369c829 100644
--- a/apps/desktop/src/renderer/views/bots/NewChatView.tsx
+++ b/apps/desktop/src/renderer/views/bots/NewChatView.tsx
@@ -138,9 +138,9 @@ export function NewChatView({ group, onClose }: { group: boolean; onClose: () =>
return (
<div style={{ display: 'flex', flexDirection: 'column', height: '100%', background: 'var(--background)' }}>
- <div style={{ display: 'flex', alignItems: 'center', gap: 8, padding: '12px 22px', ...font('title3') }}>
+ <div className="drag" style={{ display: 'flex', alignItems: 'center', gap: 8, padding: '12px 22px', ...font('title3') }}>
<span style={{ color: 'var(--secondary)', flex: 'none' }}>To:</span>
- <div ref={chips} className="chip-row" style={{ flex: 1 }}>
+ <div ref={chips} className="chip-row no-drag" style={{ flex: 1 }}>
{picked.map((bot) => (
<BotChip key={bot.id} bot={bot} onRemove={() => remove(bot.id)} />
))}
@@ -163,7 +163,7 @@ export function NewChatView({ group, onClose }: { group: boolean; onClose: () =>
}}
/>
</div>
- <IconButton title="Close" icon="xmark" onClick={onClose} />
+ <IconButton title="Close" icon="xmark" className="no-drag" onClick={onClose} />
</div>
<div className="hairline" />
diff --git a/apps/desktop/src/renderer/views/chat-window.css b/apps/desktop/src/renderer/views/chat-window.css
index 5e1e3542..a7436715 100644
--- a/apps/desktop/src/renderer/views/chat-window.css
+++ b/apps/desktop/src/renderer/views/chat-window.css
@@ -135,6 +135,15 @@
flex-direction: column;
height: 100%;
}
+/* The title bar strip of detail views that draw no top chrome of their own, so the window
+ still moves from there. */
+.detail-drag {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 54px;
+}
.empty-detail {
height: 100%;
padding: 32px;