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 log noise from health polling and CoS idle chatter
Adam Eivy7d047cb460fe
diff --git a/.changelog/v0.25.x.md b/.changelog/v0.25.x.mdindex bec1419214..cb2638dcf3 100644--- a/.changelog/v0.25.x.md+++ b/.changelog/v0.25.x.md@@ -27,6 +27,8 @@ Peer apps display and remote agent streaming on the Instances page — see what'- **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- **Remove git refresh button** — the DevTools Git page no longer has a manual refresh icon; just reload the page+- **Reduce CoS idle log noise** — downgrade repetitive idle-state messages (no tasks, no apps, no self-improvement eligible, learning insights) from `info` to `debug`; `emitLog()` now filters `debug` from console output (still emitted via socket for UI). Set `COS_LOG_LEVEL=debug` to restore verbose console output+- **Remove health endpoint polling** — Dashboard SystemHealthWidget now fetches once on mount instead of every 30s; removed noisy `GET /api/health` console log## Removeddiff --git a/client/src/components/SystemHealthWidget.jsx b/client/src/components/SystemHealthWidget.jsxindex ece6c38671..c618c9ad82 100644--- a/client/src/components/SystemHealthWidget.jsx+++ b/client/src/components/SystemHealthWidget.jsx@@ -30,9 +30,6 @@ const SystemHealthWidget = memo(function SystemHealthWidget() {};loadData();- // Refresh every 30 seconds- const interval = setInterval(loadData, 30000);- return () => clearInterval(interval);}, []);// Don't render while loadingdiff --git a/ecosystem.config.cjs b/ecosystem.config.cjsindex 1ab7f209c8..23681c3d23 100644--- a/ecosystem.config.cjs+++ b/ecosystem.config.cjs@@ -20,6 +20,7 @@ module.exports = {script: 'server/index.js',cwd: __dirname,interpreter: 'node',+ log_date_format: 'HH:mm:ss',env: {NODE_ENV: 'development',PORT: PORTS.API,@@ -33,6 +34,7 @@ module.exports = {script: 'server/cos-runner/index.js',cwd: __dirname,interpreter: 'node',+ log_date_format: 'HH:mm:ss',// CoS Agent Runner - isolated process for spawning Claude CLI agents// Does NOT restart when portos-server restarts, preventing orphaned agents// Security: Binds to localhost only - not exposed externally@@ -55,6 +57,7 @@ module.exports = {name: 'portos-ui',script: `${__dirname}/node_modules/.bin/vite`,cwd: `${__dirname}/client`,+ log_date_format: 'HH:mm:ss',args: `--host 0.0.0.0 --port ${PORTS.UI}`,env: {NODE_ENV: 'development',@@ -67,6 +70,7 @@ module.exports = {script: 'autofixer/server.js',cwd: __dirname,interpreter: 'node',+ log_date_format: 'HH:mm:ss',env: {NODE_ENV: 'development',PORT: PORTS.AUTOFIXER,@@ -83,6 +87,7 @@ module.exports = {script: 'autofixer/ui.js',cwd: __dirname,interpreter: 'node',+ log_date_format: 'HH:mm:ss',env: {NODE_ENV: 'development',PORT: PORTS.AUTOFIXER_UI@@ -98,6 +103,7 @@ module.exports = {script: 'browser/server.js',cwd: __dirname,interpreter: 'node',+ log_date_format: 'HH:mm:ss',// Security: CDP binds to 127.0.0.1 by default (set CDP_HOST=0.0.0.0 to expose)// Remote access should go through portos-server proxy with authenticationenv: {diff --git a/package-lock.json b/package-lock.jsonindex 5809b227d4..ecb7a73a34 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "portos",- "version": "0.25.2",+ "version": "0.25.3","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "portos",- "version": "0.25.2",+ "version": "0.25.3","license": "MIT","workspaces": ["packages/*",diff --git a/package.json b/package.jsonindex 5da43ea1ca..362ebc97a7 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "portos",- "version": "0.25.2",+ "version": "0.25.3","private": true,"description": "Local dev machine App OS portal","author": "Adam Eivy (@antic|@atomantic)",diff --git a/server/routes/health.js b/server/routes/health.jsindex 9e5246ee1b..b02f1261c8 100644--- a/server/routes/health.js+++ b/server/routes/health.js@@ -8,7 +8,6 @@ import { getSelf } from '../services/instances.js';const router = Router();router.get('/health', async (req, res) => {- console.log('💓 GET /api/health');const self = await getSelf().catch(() => null);res.json({status: 'ok',@@ -121,7 +120,6 @@ router.get('/health/system', async (req, res) => {}const responseTime = Date.now() - startTime;- console.log(`💓 GET /api/health/system (${responseTime}ms)`);res.json({timestamp: new Date().toISOString(),diff --git a/server/services/cos.js b/server/services/cos.jsindex d40c518947..470f9495bf 100644--- a/server/services/cos.js+++ b/server/services/cos.js@@ -56,9 +56,12 @@ export function emitLog(level, message, data = {}, prefix = '') {message,...data};- const emoji = level === 'error' ? '❌' : level === 'warn' ? '⚠️' : level === 'success' ? '✅' : level === 'debug' ? '🔍' : 'ℹ️';- const prefixStr = prefix ? ` ${prefix}` : '';- console.log(`${emoji}${prefixStr} ${message}`);+ // Debug messages go to socket only (UI), not console — set COS_LOG_LEVEL=debug to include them+ if (level !== 'debug' || process.env.COS_LOG_LEVEL === 'debug') {+ const emoji = level === 'error' ? '❌' : level === 'warn' ? '⚠️' : level === 'success' ? '✅' : level === 'debug' ? '🔍' : 'ℹ️';+ const prefixStr = prefix ? ` ${prefix}` : '';+ console.log(`${emoji}${prefixStr} ${message}`);+ }cosEvents.emit('log', logEntry);}@@ -886,7 +889,8 @@ export async function evaluateTasks() {const inProgressCount = userTaskData.grouped?.in_progress?.length || 0;const pendingSystemCount = cosTaskData.grouped?.pending?.length || 0;- emitLog('info', `Evaluation: ${pendingUserCount} user pending, ${inProgressCount} in_progress, ${pendingSystemCount} system, spawning ${tasksToSpawn.length}`, {+ const evalLevel = tasksToSpawn.length > 0 ? 'info' : 'debug';+ emitLog(evalLevel, `Evaluation: ${pendingUserCount} user pending, ${inProgressCount} in_progress, ${pendingSystemCount} system, spawning ${tasksToSpawn.length}`, {pendingUser: pendingUserCount,inProgress: inProgressCount,pendingSystem: pendingSystemCount,@@ -975,7 +979,7 @@ export async function evaluateTasks() {: hasPendingUserTasks? 'User tasks exist but all on cooldown or at capacity': 'No user tasks, system tasks, or idle work available';- emitLog('info', `No tasks to process - idle: ${idleReason}`);+ emitLog('debug', `No tasks to process - idle: ${idleReason}`);await recordDecision(DECISION_TYPES.IDLE,idleReason,@@ -1066,7 +1070,7 @@ async function generateIdleReviewTask(state) {// All apps on cooldown or no apps - fall back to self-improvement// This ensures CoS is ALWAYS working on somethingif (state.config.selfImprovementEnabled) {- emitLog('info', 'No apps available for review - running self-improvement instead');+ emitLog('debug', 'No apps available for review - running self-improvement instead');return await generateSelfImprovementTask(state);}@@ -1292,7 +1296,7 @@ async function generateSelfImprovementTask(state) {const nextTypeResult = await taskSchedule.getNextSelfImprovementTaskType(lastType);if (!nextTypeResult) {- emitLog('info', 'No self-improvement tasks are eligible to run based on schedule');+ emitLog('debug', 'No self-improvement tasks are eligible to run based on schedule');await recordDecision(DECISION_TYPES.NOT_DUE,'No self-improvement tasks are eligible based on schedule',@@ -1361,7 +1365,7 @@ async function generateSelfImprovementTask(state) {// Log if there's a recommendation from learning systemif (cooldownInfo.recommendation) {- emitLog('info', `Learning insight for ${nextType}: ${cooldownInfo.recommendation}`, {+ emitLog('debug', `Learning insight for ${nextType}: ${cooldownInfo.recommendation}`, {taskType: nextType,multiplier: cooldownInfo.multiplier});