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: reduce peer announcement noise, brain provider routing, retry UX
Adam Eivya13bcc4d3ab2
diff --git a/.changelog/v0.25.x.md b/.changelog/v0.25.x.mdindex 5a85ed5e5f..d537b0110f 100644--- a/.changelog/v0.25.x.md+++ b/.changelog/v0.25.x.md@@ -16,8 +16,13 @@ Peer apps display and remote agent streaming on the Instances page — see what'## Improvements+- **Brain retry button UX** — retry button shows spinner and "Classifying..." state, prevents double-clicks during AI classification+## Fixes+- **Reduce peer announcement log noise** — `announceSelf` now only fires when a peer transitions to online (from offline/unknown), not on every 30-second poll cycle+- **Brain classification uses configured provider** — background classification now passes the brain's resolved provider/model instead of raw overrides, ensuring it uses the brain-configured provider+## Removed- **QueryPanel** — the JSON query panel on peer cards is replaced by the richer apps list and agent streaming viewsdiff --git a/GOALS.md b/GOALS.mdindex 1bfb7fabd5..cd0691f635 100644--- a/GOALS.md+++ b/GOALS.md@@ -4,7 +4,7 @@## Purpose-PortOS transforms a local development machine into an intelligent personal operating system. It exists to solve the fragmentation of developer workflows — managing apps, orchestrating AI agents, capturing knowledge, and modeling personal identity are all scattered across dozens of tools with no unified interface. PortOS brings these together in a single dashboard that runs on your own hardware, keeps your data local, and is accessible from any device on your private Tailscale network.+PortOS transforms a local development machine into an intelligent personal operating system. This app is intended to help the user manage their life, their goals, their projects, and their machines. It exists to solve the fragmentation of developer workflows — managing apps, orchestrating AI agents, capturing knowledge, and modeling personal identity are all scattered across dozens of tools with no unified interface. PortOS brings these together in a single dashboard that runs on your own hardware, keeps your data local, and is accessible from any device on your private Tailscale network.## Core Goalsdiff --git a/client/src/components/brain/tabs/InboxTab.jsx b/client/src/components/brain/tabs/InboxTab.jsxindex ac3b2d6292..57946df571 100644--- a/client/src/components/brain/tabs/InboxTab.jsx+++ b/client/src/components/brain/tabs/InboxTab.jsx@@ -39,6 +39,7 @@ export default function InboxTab({ onRefresh, settings }) {const [editText, setEditText] = useState('');const [showDone, setShowDone] = useState(false);const [confirmingDeleteId, setConfirmingDeleteId] = useState(null);+ const [retryingId, setRetryingId] = useState(null);const inputRef = useRef(null);const fetchInbox = useCallback(async () => {@@ -103,10 +104,13 @@ export default function InboxTab({ onRefresh, settings }) {};const handleRetry = async (entryId) => {+ if (retryingId) return;+ setRetryingId(entryId);const result = await api.retryBrainClassification(entryId).catch(err => {toast.error(err.message || 'Failed to retry');return null;});+ setRetryingId(null);if (result) {toast.success(result.message || 'Reclassified');@@ -392,11 +396,12 @@ export default function InboxTab({ onRefresh, settings }) {</button><buttononClick={() => handleRetry(entry.id)}- className="flex items-center gap-1 px-2 py-1 text-xs rounded border border-port-border text-gray-400 hover:text-white transition-colors"+ disabled={retryingId === entry.id}+ className={`flex items-center gap-1 px-2 py-1 text-xs rounded border border-port-border transition-colors ${retryingId === entry.id ? 'text-gray-600 cursor-not-allowed' : 'text-gray-400 hover:text-white'}`}title="Retry AI classification">- <RefreshCw size={12} />- Retry AI+ <RefreshCw size={12} className={retryingId === entry.id ? 'animate-spin' : ''} />+ {retryingId === entry.id ? 'Classifying...' : 'Retry AI'}</button></div>)}@@ -491,11 +496,12 @@ export default function InboxTab({ onRefresh, settings }) {) : editingId !== entry.id && (<buttononClick={() => handleRetry(entry.id)}- className="flex items-center gap-1 px-2 py-1 text-xs rounded border border-port-border text-gray-400 hover:text-white transition-colors"+ disabled={retryingId === entry.id}+ className={`flex items-center gap-1 px-2 py-1 text-xs rounded border border-port-border transition-colors ${retryingId === entry.id ? 'text-gray-600 cursor-not-allowed' : 'text-gray-400 hover:text-white'}`}title="Retry AI classification">- <RefreshCw size={12} />- Retry+ <RefreshCw size={12} className={retryingId === entry.id ? 'animate-spin' : ''} />+ {retryingId === entry.id ? 'Classifying...' : 'Retry'}</button>)}</div>diff --git a/package-lock.json b/package-lock.jsonindex 8e08db0c5c..e4bc9231d4 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "portos",- "version": "0.25.0",+ "version": "0.25.1","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "portos",- "version": "0.25.0",+ "version": "0.25.1","license": "MIT","workspaces": ["packages/*",diff --git a/package.json b/package.jsonindex c067dc0226..57e2cef612 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "portos",- "version": "0.25.0",+ "version": "0.25.1","private": true,"description": "Local dev machine App OS portal","author": "Adam Eivy (@antic|@atomantic)",diff --git a/server/services/brain.js b/server/services/brain.jsindex 9a88e0ad6b..b8546196b2 100644--- a/server/services/brain.js+++ b/server/services/brain.js@@ -184,7 +184,8 @@ export async function captureThought(text, providerOverride, modelOverride) {console.log(`🧠 Thought captured, classifying in background: ${inboxEntry.id}`);// Run AI classification in background (don't await)- classifyInBackground(inboxEntry.id, text, meta, providerOverride, modelOverride)+ // Pass resolved provider/model so callAI uses brain's configured provider, not the system active one+ classifyInBackground(inboxEntry.id, text, meta, provider, model).catch(err => console.error(`❌ Background classification failed for ${inboxEntry.id}: ${err.message}`));return {diff --git a/server/services/instances.js b/server/services/instances.jsindex 95662368e2..ee14215ee1 100644--- a/server/services/instances.js+++ b/server/services/instances.js@@ -141,6 +141,7 @@ export async function probePeer(peer) {const controller = new AbortController();const timeout = setTimeout(() => controller.abort(), PROBE_TIMEOUT_MS);+ const previousStatus = peer.status;let status, lastHealth, lastSeen, remoteInstanceId, remoteApps;try {const res = await fetch(url, { signal: controller.signal });@@ -188,8 +189,8 @@ export async function probePeer(peer) {disconnectFromPeer(peer.id);}- // Announce ourselves on successful probe (fire-and-forget)- if (status === 'online') {+ // Announce ourselves only when peer transitions to online (not every poll cycle)+ if (status === 'online' && previousStatus !== 'online') {announceSelf(peer.address, peer.port);}