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: classify a command-not-found TUI exit as a startup failure in the sentinel log
[._.]/ Adam Eivy6169a884af88
diff --git a/server/lib/agentSentinel.js b/server/lib/agentSentinel.jsindex f1c6acb32e..64c064ad31 100644--- a/server/lib/agentSentinel.js+++ b/server/lib/agentSentinel.js@@ -92,7 +92,7 @@ export function doneSentinelAgentId(name) {** Pure: callers do their own `existsSync` / read.*/-const STARTUP_SENTINEL_REASONS = new Set(['paste-not-rendered', 'tui-not-ready']);+const STARTUP_SENTINEL_REASONS = new Set(['paste-not-rendered', 'tui-not-ready', 'command-not-found']);/*** The operator line for a TUI that ended without its completion sentinel.diff --git a/server/lib/agentSentinel.test.js b/server/lib/agentSentinel.test.jsindex 70ea037739..19aa714703 100644--- a/server/lib/agentSentinel.test.js+++ b/server/lib/agentSentinel.test.js@@ -13,6 +13,16 @@ describe('missingSentinelLogMessage', () => {expect(message).not.toContain('finalized');});+ it('reads a missing TUI binary as a startup failure too', () => {+ // `command-not-found` exits before the prompt was sent — the login-shell+ // path printing "command not found" — so it is the same no-prompt shape.+ expect(missingSentinelLogMessage({+ agentId: 'agent-1',+ reason: 'command-not-found',+ sentinelPath: '/work/.agent-done-agent-1',+ })).toContain('startup failed (command-not-found)');+ });+it('keeps the expected path when a run that was working exits without the sentinel', () => {expect(missingSentinelLogMessage({agentId: 'agent-1',