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
Prune dead on-demand toast branches left by the Layered Intelligence agent migration
[._.]/ Adam Eivy956e1aff5d17
diff --git a/client/src/hooks/useOnDemandTaskToast.js b/client/src/hooks/useOnDemandTaskToast.jsindex 3d1578df45..c4fefaaaf1 100644--- a/client/src/hooks/useOnDemandTaskToast.js+++ b/client/src/hooks/useOnDemandTaskToast.js@@ -2,7 +2,6 @@ import { useEffect } from 'react';import toast from '../components/ui/Toast';import socket from '../services/socket';import { timeUntil } from '../utils/formatters';-import { formatLiReason } from '../utils/layeredIntelligenceReasons';// Humanize a perpetual work-detector park reason for a user-facing toast. The// raw reason strings are the same ones surfaced in the CoS → Schedule tab; here@@ -18,15 +17,6 @@ const PARK_REASON_LABELS = {'no-detector': 'no work detector for this task'};-// Icon per handler action so the toast reads right at a glance. (The reason→prose-// gloss itself is the shared `formatLiReason`, so a new server reason lands in-// both the toast and the durable "Last run" line without re-transcribing it.)-const HANDLER_ICONS = {- parked: '⏸️',- duplicate: '♻️',- 'semantic-duplicate': '♻️'-};-/*** Global subscriber that toasts when a user-initiated on-demand task run* produced no work. The server emits `cos:schedule:on-demand-empty` ONLY for@@ -53,19 +43,6 @@ export function useOnDemandTaskToast() {return;}- // A handler-backed task (Layered Intelligence) that ran but filed nothing- // for an explicit reason — surface WHY, since it spawns no visible agent- // and the toast is the only feedback. (A genuinely-idle "no-proposal" run- // arrives as outcome 'idle' below, not here.)- if (data?.outcome === 'handler-issue') {- const message = formatLiReason({ action: data?.handlerAction, reason: data?.handlerReason, blocking: data?.blocking });- toast(`${task}${scope}: ran now — ${message}.`, {- duration: 8000,- icon: HANDLER_ICONS[data?.handlerAction] || '⚠️'- });- return;- }-// A non-perpetual task produced no task ⇒ genuinely nothing to do right// now (not a failure, not a park). Keep it calm and neutral.if (data?.outcome === 'idle') {@@ -104,24 +81,9 @@ export function useOnDemandTaskToast() {});};- // A handler-backed task (e.g. Layered Intelligence) that DID work on an- // explicit "Run" — it files a tracker issue rather than spawning an agent, so- // there's no task card to see; a success toast is the only user feedback.- const handleRan = (data) => {- const task = data?.taskType || 'task';- const scope = data?.appName ? ` for ${data.appName}` : '';- const ref = data?.filedKey || (data?.filedNumber != null ? `#${data.filedNumber}` : '');- toast(`${task}${scope}: ran now — filed an improvement issue${ref ? ` (${ref})` : ''}.`, {- duration: 6000,- icon: '🧠'- });- };-socket.on('cos:schedule:on-demand-empty', handleEmpty);- socket.on('cos:schedule:on-demand-ran', handleRan);return () => {socket.off('cos:schedule:on-demand-empty', handleEmpty);- socket.off('cos:schedule:on-demand-ran', handleRan);// Don't unsubscribe from cos — other components share the room.};}, []);diff --git a/server/services/socket.js b/server/services/socket.jsindex 03f4ed33e5..ab43e7a8d1 100644--- a/server/services/socket.js+++ b/server/services/socket.js@@ -734,7 +734,6 @@ function setupCosEventForwarding() {// this so an explicit trigger that finds no actionable work (parked) isn't a// silent no-op.cosEvents.on('schedule:on-demand-empty', (data) => broadcastToCos('cos:schedule:on-demand-empty', data));- cosEvents.on('schedule:on-demand-ran', (data) => broadcastToCos('cos:schedule:on-demand-ran', data));}// Set up error event forwarding