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 release review findings

Adam Eivy6e17daf9cb7d
diff --git a/.changelog/v1.30.0.md b/.changelog/v1.30.0.md
index 9f82d179d3..a42d510ab7 100644
--- a/.changelog/v1.30.0.md
+++ b/.changelog/v1.30.0.md
@@ -11,8 +11,6 @@ Released: 2026-03-05
- New `/api/instances/sync-status` endpoint exposes local sync sequences for peer probing
- Probe now fetches remote peer's sync sequences to enable bidirectional sync awareness
-## Changed
-
## Fixed
- setup-data script now copies missing files (not just directories) from data.sample to data, fixing broken updates where new config files like stage-config.json were never propagated to existing installs
@@ -22,8 +20,6 @@ Released: 2026-03-05
- AIProviders: fix TDZ crash ("Cannot access 'z' before initialization" in minified build) by removing loadRuns from useEffect dependency array that was declared after the effect
- Fix PortOS app repoPath in apps.json (was missing atomantic/ directory)
-## Removed
-
## Full Changelog
**Full Diff**: https://github.com/atomantic/PortOS/compare/v1.26.0...v1.30.0
diff --git a/PLAN.md b/PLAN.md
index 7c75beab0f..1364c0cde5 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -5,8 +5,8 @@ See [GOALS.md](./GOALS.md) for project goals and direction.
## Quick Reference
### Tech Stack
-- Frontend: React + Tailwind CSS + Vite (port 5555)
-- Backend: Express.js (port 5554)
+- Frontend: React + Tailwind CSS + Vite (port 5554)
+- Backend: Express.js (port 5555)
- Process Manager: PM2
- Data Storage: JSON files in `./data/`, PostgreSQL + pgvector (memory system)
diff --git a/server/services/cos.js b/server/services/cos.js
index 7033ccf130..2f8f5be4f7 100644
--- a/server/services/cos.js
+++ b/server/services/cos.js
@@ -373,8 +373,8 @@ function isValidJSON(str) {
const trimmed = str.trim();
// Check for basic JSON structure
if (!(trimmed.startsWith('{') && trimmed.endsWith('}'))) return false;
- // Check for common corruption patterns
- if (trimmed.endsWith('}}') || trimmed.includes('}{')) return false;
+ // Check for common corruption patterns (concatenated JSON objects)
+ if (trimmed.includes('}{')) return false;
return true;
}
diff --git a/server/services/memoryClassifier.js b/server/services/memoryClassifier.js
index f29326a4a7..ff905a4554 100644
--- a/server/services/memoryClassifier.js
+++ b/server/services/memoryClassifier.js
@@ -41,7 +41,7 @@ async function loadConfig() {
const content = await readFile(MEMORY_CONFIG_FILE, 'utf-8');
// Handle empty or malformed config file
if (content && content.trim() && content.trim().startsWith('{') && content.trim().endsWith('}')) {
- configCache = { ...DEFAULT_CONFIG, ...JSON.parse(content) };
+ configCache = { ...DEFAULT_CONFIG, ...safeJSONParse(content, {}) };
} else {
console.log('⚠️ Memory classifier config file empty/malformed, using defaults');
configCache = DEFAULT_CONFIG;