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
explain an idle-no-deliverable stall as the unanswered prompt when the transcript shows one
[._.]/ Adam Eivy87d29881f27a
diff --git a/server/services/agentErrorAnalysis.js b/server/services/agentErrorAnalysis.jsindex 8bbb820314..cfcee7597b 100644--- a/server/services/agentErrorAnalysis.js+++ b/server/services/agentErrorAnalysis.js@@ -697,8 +697,13 @@ export function endsAwaitingUserInput(analysisOutput) {return AWAITING_INPUT_MARKERS.some(marker => marker.test(tail));}-/** Idle-out reasons worth re-explaining as an unanswered prompt. */-const AWAITING_INPUT_REFINABLE_REASONS = new Set(['idle-no-changes', 'idle-no-activity']);+/**+ * Idle-out reasons worth re-explaining as an unanswered prompt. All three are+ * "the reaper killed it" verdicts, so when the tail shows a selector or approval+ * gate that IS the proximate cause — including for a programmatic-I/O run, whose+ * payload went unwritten precisely because it never got past the prompt.+ */+const AWAITING_INPUT_REFINABLE_REASONS = new Set(['idle-no-changes', 'idle-no-activity', 'idle-no-deliverable']);/*** Re-word an idle-out whose transcript ends on an unanswered prompt. Thediff --git a/server/services/agentErrorAnalysis.test.js b/server/services/agentErrorAnalysis.test.jsindex 1faac6ab18..37f52a0a11 100644--- a/server/services/agentErrorAnalysis.test.js+++ b/server/services/agentErrorAnalysis.test.js@@ -843,6 +843,16 @@ describe('analyzeAgentFailure — runner completion reason (COMPLETION_REASON_ANexpect(analysis.message).toMatch(/interactive prompt/i);});+ // A programmatic-I/O run parked on a selector never got far enough to write+ // its payload, so the prompt IS the proximate cause and outranks "no payload".+ it('names the unanswered prompt as the cause of an idle-no-deliverable run too', () => {+ const analysis = analyzeAgentFailure(parkedOnSelector, { id: 't' }, 'x', {+ completionReason: 'idle-no-deliverable',+ });+ expect(analysis.message).toMatch(/interactive prompt/i);+ expect(analysis.category).toBe(COMPLETION_REASON_ANALYSES['idle-no-deliverable'].category);+ });+it('leaves a plain idle-out alone when no prompt is on screen', () => {const analysis = analyzeAgentFailure(withLead('Ran 4 shell commands and read 2 files.'), { id: 't' }, 'x', {completionReason: 'idle-no-changes',