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
feat: long memories fold to a few lines
leepokai757101855d5d
diff --git a/apps/desktop/src/renderer/views/bots/MemoryView.tsx b/apps/desktop/src/renderer/views/bots/MemoryView.tsxindex 4036a09c..9f7187e2 100644--- a/apps/desktop/src/renderer/views/bots/MemoryView.tsx+++ b/apps/desktop/src/renderer/views/bots/MemoryView.tsx@@ -85,8 +85,8 @@ export function MemoryCard({ botId }: { botId: string }) {...view.dreams.map((dream) => <div className="memory-item fade-in" key={dream.id}><div className="memory-content"><strong>{relativeTime.day(dream.at)}{dream.undone ? ' · undone' : ''}</strong>- {dream.added.map((c) => <span key={`a${c.id}`}>+ {c.text}</span>)}- {dream.archived.map((c) => <span key={`r${c.id}`} className="memory-archived">− {c.text}</span>)}+ {dream.added.map((c) => <span key={`a${c.id}`} className="line-clamp memory-clamp" title={c.text}>+ {c.text}</span>)}+ {dream.archived.map((c) => <span key={`r${c.id}`} className="line-clamp memory-clamp memory-archived" title={c.text}>− {c.text}</span>)}{(dream.files ?? []).map((f) => <span key={`f${f.version}`} className="memory-muted">Added to {f.name}</span>)}</div>{!dream.undone && <IconButton title="Undo this dream" icon="arrow.uturn.backward" disabled={memory.busy} onClick={() => void memory.mutate('undoDream', { id: dream.id })} />}@@ -129,7 +129,7 @@ function EntryRow({ entry, memory, edit }: { entry: MemoryEntry; memory: MemorySconst archived = entry.state === 'archived'return <div className="memory-item fade-in"><button className="press memory-content" onClick={edit}>- <strong className={archived ? 'memory-archived' : undefined}>{entry.pinned && <Icon name="pin.fill" size={10} color="var(--secondary)" />}{entry.text}</strong>+ <strong className={archived ? 'memory-archived' : undefined}>{entry.pinned && <Icon name="pin.fill" size={10} color="var(--secondary)" />}<span className="line-clamp memory-clamp" title={entry.text}>{entry.text}</span></strong><small>{authorLabel(entry, (id) => host.authorName(id))} · {relativeTime.day(entry.updatedAt)}{archived ? ' · archived' : ''}</small></button><DropdownMenu className="icon-button memory-menu" title="Memory actions" items={() => [diff --git a/apps/desktop/src/renderer/views/bots/memory.css b/apps/desktop/src/renderer/views/bots/memory.cssindex b3277ee9..c6776e12 100644--- a/apps/desktop/src/renderer/views/bots/memory.css+++ b/apps/desktop/src/renderer/views/bots/memory.css@@ -12,6 +12,11 @@.memory-content span { white-space: pre-wrap; overflow-wrap: anywhere; }.memory-content small, .memory-muted { color: var(--secondary); }.memory-archived { color: var(--tertiary); }+/* A long memory stops at a few lines, more the taller the details panel is (width just rewraps it); its tooltip and editor show the rest. */+.memory-clamp { -webkit-line-clamp: 3; }+@container details (max-height: 599px) { .memory-clamp { -webkit-line-clamp: 2; } }+@container details (min-height: 800px) { .memory-clamp { -webkit-line-clamp: 5; } }+@container details (min-height: 1100px) { .memory-clamp { -webkit-line-clamp: 8; } }.memory-editor { display: flex; flex-direction: column; gap: 16px; padding: 20px; max-height: 70vh; overflow: auto; }.memory-editor textarea { padding: 10px; background: var(--surface); color: var(--text); border: 0; border-radius: var(--radius-s); font: inherit; resize: vertical; }.memory-history { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; user-select: text; margin: 0; }diff --git a/apps/desktop/src/renderer/views/thread/details-panel.css b/apps/desktop/src/renderer/views/thread/details-panel.cssindex 7ccd5f97..1d8cc2d1 100644--- a/apps/desktop/src/renderer/views/thread/details-panel.css+++ b/apps/desktop/src/renderer/views/thread/details-panel.css@@ -4,6 +4,8 @@position: relative;height: 100%;background: var(--background);+ /* Its size sets how much of a long memory shows (memory.css). */+ container: details / size;}/* The top band moves the window, like the chat's top chrome; the corner buttons stay clickable. */diff --git a/apps/ios/Kit/Sources/CodyncUI/Bots/MemoryView.swift b/apps/ios/Kit/Sources/CodyncUI/Bots/MemoryView.swiftindex 040d33ac..8b0f3876 100644--- a/apps/ios/Kit/Sources/CodyncUI/Bots/MemoryView.swift+++ b/apps/ios/Kit/Sources/CodyncUI/Bots/MemoryView.swift@@ -6,15 +6,20 @@ import SwiftUIstruct MemoryCard: View {let botId: String@Environment(BotStore.self) private var host+ @Environment(\.verticalSizeClass) private var verticalSizeClass@State private var memory: MemoryStore?@State private var section: Section = .bot@State private var editor: MemoryEditTarget?@State private var confirmClear = false@State private var aboutHarness = false+ @State private var openDreams: Set<DreamRun.ID> = []enum Section: Hashable { case yours, bot, dreams, harness }private var bot: Bot? { host.bots[botId] }+ /// A long memory stops at a few lines, fewer when the screen is short (landscape); tapping it shows the rest+ /// (an entry opens its editor, a dream unfolds).+ private var lines: Int { verticalSizeClass == .compact ? 2 : 5 }var body: some View {VStack(spacing: 10) {@@ -111,7 +116,7 @@ struct MemoryCard: View {VStack(alignment: .leading, spacing: 4) {HStack(alignment: .firstTextBaseline, spacing: 6) {if entry.pinned { Image(systemName: "pin.fill").font(.caption2).foregroundStyle(Palette.secondary) }- Text(entry.text).foregroundStyle(entry.archived ? Palette.tertiary : Palette.text)+ Text(entry.text).foregroundStyle(entry.archived ? Palette.tertiary : Palette.text).lineLimit(lines)}Text("\(author(entry)) · \(Date(milliseconds: entry.updatedAt).formatted(.relative(presentation: .named)))\(entry.archived ? " · archived" : "")").font(.caption).foregroundStyle(Palette.secondary)@@ -136,11 +141,14 @@ struct MemoryCard: View {VStack(alignment: .leading, spacing: 4) {Text("\(Date(milliseconds: run.at).formatted(.relative(presentation: .named)))\(run.undone ? " · undone" : "")").fontWeight(.semibold)- ForEach(run.added, id: \.id) { Text("+ \($0.text)") }- ForEach(run.archived, id: \.id) { Text("− \($0.text)").foregroundStyle(Palette.tertiary) }+ let limit = openDreams.contains(run.id) ? nil : lines+ ForEach(run.added, id: \.id) { Text("+ \($0.text)").lineLimit(limit) }+ ForEach(run.archived, id: \.id) { Text("− \($0.text)").foregroundStyle(Palette.tertiary).lineLimit(limit) }ForEach(run.files ?? [], id: \.version) { Label("Added to \($0.name)", systemImage: "doc.text").foregroundStyle(Palette.secondary) }}.frame(maxWidth: .infinity, alignment: .leading)+ .contentShape(Rectangle())+ .onTapGesture { withAnimation(Motion.layout) { openDreams.formSymmetricDifference([run.id]) } }if !run.undone {IconButton("Undo this dream", systemImage: "arrow.uturn.backward") {Task { await memory.mutate("undoDream", id: run.id) }diff --git a/apps/ios/WhatsNew.md b/apps/ios/WhatsNew.mdindex 444b604c..039b1359 100644--- a/apps/ios/WhatsNew.md+++ b/apps/ios/WhatsNew.md@@ -10,9 +10,11 @@ a version without one gets a generic "Bug fixes and improvements" line. Delete o### zh-Hant- Bot 會用表情符號回應你的訊息:道謝時回一顆 ❤️,好消息回 🎉。群組裡的 Bot 之間也會互相按表情。+- 記憶裡太長的內容會先收合成幾行,點一下就能看全文。- 當機報告更完整,讓我們更快找到並修正 App 閃退的問題。### en-US- Bots react to your messages with emoji: a ❤️ when you say thanks, a 🎉 for good news. In groups, bots react to each other too.+- Long memories fold to a few lines; tap one to read it all.- More complete crash reports, so we can find and fix crashes faster.