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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: address PR review feedback — response validation, error handling, IP validation, changelog corrections
Adam Eivy972d539531f1
diff --git a/.changelog/v0.20.x.md b/.changelog/v0.20.x.mdindex 04d35d9993..8278fffafe 100644--- a/.changelog/v0.20.x.md+++ b/.changelog/v0.20.x.md@@ -19,12 +19,6 @@ Productivity insights, worktree control for task creation.- Requires 3+ hours of historical data with 3+ tasks each before activating- Hover tooltip shows current success rate or next peak time for quick context-### Peak productivity insight in ActionableInsights-- **Proactive productivity suggestion** surfaces in the ActionableInsights banner when the current hour is a peak productivity window and there are pending tasks-- Uses the same hourly success rate analysis as QuickSummary's optimal time indicator-- Shows current hour's success rate and encourages tackling tasks during high-performance windows-- Helps users take advantage of their historically most productive times-### Enhanced decision log transparency- **Capacity details** now shown when agent slots are full — displays current/max agent count and per-project limits- **Cooldown context** surfaces the app name and cooldown window duration so users can see why a task was deferreddiff --git a/.changelog/v0.21.1.md b/.changelog/v0.21.1.mdindex 08207612ff..b3b98c47e0 100644--- a/.changelog/v0.21.1.md+++ b/.changelog/v0.21.1.md@@ -14,11 +14,3 @@ Theme support with 5 dark themes.- Selection persists across sessions via localStorage- All existing `port-*` Tailwind classes respond automatically via CSS custom properties — zero component changes needed- Shell terminal, toast notifications, scrollbars, and focus rings all adapt to the active theme--## Changed--### Safer defaults for new installations-- All 13 CoS self-improvement tasks default to **disabled** — users opt in to the ones they want-- Master `selfImprovementEnabled` switch defaults to off-- Default autonomy level changed from `manager` to `standby`-- Autobiography story prompt defaults to disableddiff --git a/.changelog/v0.23.x.md b/.changelog/v0.23.x.mdindex ea4257b867..a2b06c3abb 100644--- a/.changelog/v0.23.x.md+++ b/.changelog/v0.23.x.md@@ -17,6 +17,16 @@ PortOS Federation — connect and monitor multiple PortOS instances across your- **Server-to-server architecture** — local server proxies all remote requests; clients never talk to peers directly (no CORS issues)- **Health endpoint enrichment** — `/api/health` and `/api/health/system` now include `hostname` and `instanceId` fields for peer identification+### Peak productivity insight in ActionableInsights+- **Proactive productivity suggestion** surfaces in the ActionableInsights banner when the current hour is a peak productivity window and there are pending tasks+- Uses the same hourly success rate analysis as QuickSummary's optimal time indicator+- Shows current hour's success rate and encourages tackling tasks during high-performance windows++### Safer defaults for new installations+- All 13 CoS self-improvement tasks default to **disabled** — users opt in to the ones they want+- Master `selfImprovementEnabled` switch defaults to off+- Default autonomy level changed from `manager` to `standby`+## Changed### Navigationdiff --git a/client/src/pages/Instances.jsx b/client/src/pages/Instances.jsxindex 305cc1db60..303ef31a57 100644--- a/client/src/pages/Instances.jsx+++ b/client/src/pages/Instances.jsx@@ -91,7 +91,8 @@ function SelfCard({ self, onUpdate }) {const saveName = async () => {if (!name.trim()) return;- await updateSelfInstance({ name: name.trim() });+ const result = await updateSelfInstance({ name: name.trim() }).catch(() => null);+ if (!result) return;onUpdate();setEditing(false);toast.success('Instance name updated');@@ -150,11 +151,12 @@ function AddPeerForm({ onAdd }) {setAdding(true);const data = { address: address.trim(), port: parseInt(port, 10) || 5554 };if (name.trim()) data.name = name.trim();- await addPeer(data);+ const result = await addPeer(data).catch(() => null);+ setAdding(false);+ if (!result) return;setAddress('');setPort('5554');setName('');- setAdding(false);onAdd();toast.success('Peer added');};@@ -169,7 +171,7 @@ function AddPeerForm({ onAdd }) {value={address}onChange={e => setAddress(e.target.value)}placeholder="100.64.x.x"- pattern="^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$"+ pattern="^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$"requiredclassName="bg-port-bg border border-port-border rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:outline-none focus:border-port-accent flex-1 min-w-[140px]"/>@@ -280,25 +282,27 @@ function PeerCard({ peer, onRefresh }) {const handleProbe = async () => {setProbing(true);- await probePeer(peer.id);+ await probePeer(peer.id).catch(() => null);onRefresh();setProbing(false);};const handleRemove = async () => {- await removePeer(peer.id);+ const result = await removePeer(peer.id).catch(() => null);+ if (!result) return;onRefresh();toast.success('Peer removed');};const handleToggle = async () => {- await updatePeer(peer.id, { enabled: !peer.enabled });+ await updatePeer(peer.id, { enabled: !peer.enabled }).catch(() => null);onRefresh();};const saveName = async () => {if (!name.trim()) return;- await updatePeer(peer.id, { name: name.trim() });+ const result = await updatePeer(peer.id, { name: name.trim() }).catch(() => null);+ if (!result) return;onRefresh();setEditingName(false);};diff --git a/package-lock.json b/package-lock.jsonindex 70807d63ad..e7e639dd95 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "portos",- "version": "0.23.1",+ "version": "0.23.2","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "portos",- "version": "0.23.1",+ "version": "0.23.2","license": "MIT","workspaces": ["packages/*",diff --git a/package.json b/package.jsonindex c7ea655274..55db4fdeb9 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "portos",- "version": "0.23.1",+ "version": "0.23.2","private": true,"description": "Local dev machine App OS portal","author": "Adam Eivy (@antic|@atomantic)",diff --git a/server/routes/instances.js b/server/routes/instances.jsindex 8d05759941..a711ead895 100644--- a/server/routes/instances.js+++ b/server/routes/instances.js@@ -13,7 +13,7 @@ const router = Router();// Validation schemasconst addPeerSchema = z.object({- address: z.string().regex(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, 'Must be a valid IP address'),+ address: z.string().regex(/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/, 'Must be a valid IP address'),port: z.number().int().min(1).max(65535).default(5554),name: z.string().optional()});diff --git a/server/services/instances.js b/server/services/instances.jsindex 09269e30f0..f59ad8acf4 100644--- a/server/services/instances.js+++ b/server/services/instances.js@@ -136,6 +136,7 @@ export async function probePeer(peer) {let status, lastHealth, lastSeen;try {const res = await fetch(url, { signal: controller.signal });+ if (!res.ok) throw new Error(`HTTP ${res.status}`);const json = await res.json();status = 'online';lastHealth = json;