Skip to content

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

fix([issue-2190]): reconcile #2191 idle-no-changes test with #2192 paste-render gate

Adam Eivyf67e7a9ae9c2
diff --git a/server/services/agentTuiSpawning.test.js b/server/services/agentTuiSpawning.test.js
index 0a4efc45d3..49a4cbb6e8 100644
--- a/server/services/agentTuiSpawning.test.js
+++ b/server/services/agentTuiSpawning.test.js
@@ -543,6 +543,12 @@ describe('spawnTuiAgent runtime', () => {
await vi.advanceTimersByTimeAsync(2000);
await flushMicrotasks();
+ // Emit the prompt echo so paste verification passes (issue #2192) — without
+ // it the Enter is never sent, promptSubmittedAt stays null, and the run
+ // finalizes as idle-no-activity instead of exercising the idle-no-changes path.
+ await capturedOnData(Buffer.from('do the thing\n'));
+ await flushMicrotasks();
+
// Advance past PASTE_TO_ENTER_FALLBACK_MS so submit fires.
await vi.advanceTimersByTimeAsync(3600);
await flushMicrotasks();