Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: address Copilot review feedback

Adam Eivy46e90d9d9a1f
diff --git a/client/src/components/brain/tabs/MemoryTab.jsx b/client/src/components/brain/tabs/MemoryTab.jsx
index d19ab89b15..85c455f095 100644
--- a/client/src/components/brain/tabs/MemoryTab.jsx
+++ b/client/src/components/brain/tabs/MemoryTab.jsx
@@ -578,7 +578,7 @@ export default function MemoryTab({ onRefresh }) {
{backendStatus.db?.error && (
<p className="text-sm text-gray-400 mt-1">{backendStatus.db.error}</p>
)}
- <p className="text-sm text-gray-500 mt-1">Semantic search and cross-instance sync are disabled.</p>
+ <p className="text-sm text-gray-500 mt-1">Some PostgreSQL-only features like cross-instance sync and DB snapshots are unavailable.</p>
</div>
<button
onClick={fetchBackendStatus}
diff --git a/client/src/components/cos/tabs/MemoryTab.jsx b/client/src/components/cos/tabs/MemoryTab.jsx
index 84423eaa12..8b708b719f 100644
--- a/client/src/components/cos/tabs/MemoryTab.jsx
+++ b/client/src/components/cos/tabs/MemoryTab.jsx
@@ -121,7 +121,7 @@ export default function MemoryTab({ apps = [] }) {
{backendStatus.db?.error && (
<p className="text-sm text-gray-400 mt-1">{backendStatus.db.error}</p>
)}
- <p className="text-sm text-gray-500 mt-1">Semantic search and cross-instance sync are disabled.</p>
+ <p className="text-sm text-gray-500 mt-1">Some PostgreSQL-only features like cross-instance sync and DB snapshots are unavailable.</p>
</div>
<button
onClick={fetchData}
diff --git a/scripts/setup-browser.js b/scripts/setup-browser.js
index d96c2b7cce..35d324672f 100644
--- a/scripts/setup-browser.js
+++ b/scripts/setup-browser.js
@@ -7,7 +7,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
const rootDir = join(__dirname, '..');
const profileDir = join(rootDir, 'data', 'browser-profile');
-console.log('🌐 Setting up browser directory...');
+console.log('🌐 Ensuring browser profile directory exists...');
// Ensure browser profile directory exists
if (!existsSync(profileDir)) {
diff --git a/server/services/brainMemoryBridge.js b/server/services/brainMemoryBridge.js
index 021773da41..6371386b63 100644
--- a/server/services/brainMemoryBridge.js
+++ b/server/services/brainMemoryBridge.js
@@ -263,11 +263,21 @@ export async function syncAllBrainData({ dryRun = false } = {}) {
// Entity stores emit "{type}:changed" with the full store data object { records: { id: {...} } }
// JSONL stores emit "{type}:added" with a single record
-function handleEntityChanged(brainType, storeData) {
+async function handleEntityChanged(brainType, storeData) {
if (!storeData?.records) return;
- // Sync all non-archived records in the store
+ const map = await loadBridgeMap();
for (const [id, record] of Object.entries(storeData.records)) {
- if (record.archived) continue;
+ if (record.archived) {
+ // Archive the mapped CoS memory if one exists
+ const key = bridgeKey(brainType, id);
+ const memoryId = map[key];
+ if (memoryId) {
+ memory.updateMemory(memoryId, { status: 'archived' }).catch(err => {
+ console.error(`❌ Brain bridge archive failed for ${brainType}/${id}: ${err.message}`);
+ });
+ }
+ continue;
+ }
syncBrainRecord(brainType, { id, ...record }).catch(err => {
console.error(`❌ Brain bridge sync failed for ${brainType}/${id}: ${err.message}`);
});