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: ask to update the computer instead of crashing on its older memory

leepokai37689bd6c805
diff --git a/apps/desktop/src/renderer/store/memory-store.ts b/apps/desktop/src/renderer/store/memory-store.ts
index 1ba300ae..a4b4b473 100644
--- a/apps/desktop/src/renderer/store/memory-store.ts
+++ b/apps/desktop/src/renderer/store/memory-store.ts
@@ -85,6 +85,8 @@ export interface MemoryView {
files?: MemoryFiles
}
+const OLDER_HOST = "Update Codync on your computer to see this bot's memory."
+
/** One bot's memory: fetches it, and changes it through the host. */
export class MemoryStore extends Observable {
view: MemoryView | null = null
@@ -98,6 +100,8 @@ export class MemoryStore extends Observable {
const request = ++this.request
try {
const view = await (await this.client()).call<MemoryView>('memory', { botId: this.botId })
+ // A host before 2.18.0 answers with its old memory listing, which has no layers or dreams.
+ if (!Array.isArray(view.dreams)) throw new Error(OLDER_HOST)
if (request === this.request) {
this.view = view
this.error = null
diff --git a/apps/ios/Kit/Sources/CodyncUI/Store/MemoryStore.swift b/apps/ios/Kit/Sources/CodyncUI/Store/MemoryStore.swift
index 5581a961..f3f76425 100644
--- a/apps/ios/Kit/Sources/CodyncUI/Store/MemoryStore.swift
+++ b/apps/ios/Kit/Sources/CodyncUI/Store/MemoryStore.swift
@@ -27,7 +27,10 @@ final class MemoryStore {
error = nil
}
} catch {
- if asked == request { self.error = error.localizedDescription }
+ // A host before 2.18.0 answers with its old memory listing, which has no layers or dreams.
+ if asked == request {
+ self.error = error is DecodingError ? "Update Codync on your computer to see this bot's memory." : error.localizedDescription
+ }
}
}
diff --git a/apps/ios/WhatsNew.md b/apps/ios/WhatsNew.md
index 7b7e3012..fc19f8d2 100644
--- a/apps/ios/WhatsNew.md
+++ b/apps/ios/WhatsNew.md
@@ -5,6 +5,16 @@ listing what iPhone users notice. tools/asc-submit.py reads the released version
a version without one gets a generic "Bug fixes and improvements" line. Delete old sections.
-->
+## 2.19.0
+
+### zh-Hant
+
+- 電腦上的 Codync 太舊、還看不了新版記憶時,記憶頁會直接提示你更新電腦上的 Codync。
+
+### en-US
+
+- When the Codync on your computer is too old for the new memory, the Memory page now asks you to update it.
+
## 2.18.1
### zh-Hant