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.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
fix(desktop): fit images within responsive previews (#256)
Kai Wuc785c49e98c4
diff --git a/apps/desktop/src/renderer/views/thread/Attachments.tsx b/apps/desktop/src/renderer/views/thread/Attachments.tsxindex 96ded067..ad716624 100644--- a/apps/desktop/src/renderer/views/thread/Attachments.tsx+++ b/apps/desktop/src/renderer/views/thread/Attachments.tsx@@ -61,7 +61,7 @@ export type ImageSource = { file: Attachment; botId: string } | { file: SharedFi/** A picture full size, in a sheet. */export function AttachmentViewer({ source, close }: { source: ImageSource | null; close: () => void }) {return (- <Sheet open={source !== null} onClose={close} width={720} height={560}>+ <Sheet open={source !== null} onClose={close} width={1040} height={800}>{source ? (<SheetPage><ModalHeader title={source.file.name} />diff --git a/apps/desktop/src/renderer/views/thread/attachments.css b/apps/desktop/src/renderer/views/thread/attachments.cssindex ccb70537..3a274848 100644--- a/apps/desktop/src/renderer/views/thread/attachments.css+++ b/apps/desktop/src/renderer/views/thread/attachments.css@@ -20,6 +20,7 @@border-radius: var(--radius-xs);object-fit: cover;}+/* Shrinks to fit the viewer's grid cell, but never grows a small picture past its own size. */.attachment-image.full {max-width: 100%;max-height: 100%;@@ -46,6 +47,8 @@min-height: 0;padding: 12px;display: grid;+ grid-template-columns: minmax(0, 1fr);+ grid-template-rows: minmax(0, 1fr);place-items: center;}diff --git a/docs/features/file-attachments.md b/docs/features/file-attachments.mdindex 2342fa31..60ca3d7e 100644--- a/docs/features/file-attachments.md+++ b/docs/features/file-attachments.md@@ -25,6 +25,9 @@ Files travel in both directions: users attach inputs, and bots explicitly share- Chat: images show as pictures (tap for full size), other files as cards. Other devices fetch asent file with `readUpload {botId, uploadId, offset}` (384 KiB chunks) and cache it; the sendercaches its own copy at upload.+- Desktop opens an image in a large panel that fits the window; a large image shrinks to fit+ below the header without cropping, even when the window is resized, and a small one keeps its+ own size. Sent and bot-shared images use the same viewer.- Terminal UI: dragging a file onto the terminal pastes its path, which becomes an attachment (⌫ onan empty draft removes the last one); sent files show as `▤ name size` lines. It uploads with thesame `upload` chunks.diff --git a/web/content/docs/conversations.mdx b/web/content/docs/conversations.mdxindex 9af9f5c3..01cecd30 100644--- a/web/content/docs/conversations.mdx+++ b/web/content/docs/conversations.mdx@@ -44,7 +44,7 @@ Use the **+** button left of the message box.A message can be files only. Each file can be up to 100 MB. The files are saved on the computer, in an `uploads` folder in the bot's personal workspace, or in Codync's data folder for a bot that works in a project folder. The agent gets your message with the path of each file and reads them with its own tools.-Bots can send files back when you ask, such as a report or a build. Each one shows as a card with its name and size and a download action. An image up to 20 MB also shows the picture itself in the iPhone, Android and desktop apps; tap or click it to see it full size. To save a file:+Bots can send files back when you ask, such as a report or a build. Each one shows as a card with its name and size and a download action. An image up to 20 MB also shows the picture itself in the iPhone, Android and desktop apps; tap or click it to see it full size. On desktop, image previews fit the whole picture inside a larger panel that adjusts to your window. This also applies to images you send. To save a file:- **Desktop:** saves through the system Save dialog.- **iPhone:** opens the share sheet, including Save to Files.