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
test([issue-12333]): align transcript integration checks with raw batching
[._.]/ Adam Eivyc9254f543ea0
diff --git a/server/services/agentTuiSpawning.test.js b/server/services/agentTuiSpawning.test.jsindex af383bfd06..04037447f5 100644--- a/server/services/agentTuiSpawning.test.js+++ b/server/services/agentTuiSpawning.test.js@@ -2896,8 +2896,8 @@ describe('spawnTuiAgent runtime', () => {await capturedOnData(Buffer.from('world\n'));await flushMicrotasks();- // Fire the 250ms debounced raw flush.- await vi.advanceTimersByTimeAsync(300);+ // Fire the one-second debounced raw flush.+ await vi.advanceTimersByTimeAsync(1000);await flushMicrotasks();const inMemTruncWarns = warnSpy.mock.calls.filter(args =>@@ -2998,13 +2998,13 @@ describe('spawnTuiAgent runtime', () => {// First chunk (80 bytes) fits under the 100-byte cap → appendFile.await capturedOnData(Buffer.alloc(80, 0x61));await flushMicrotasks();- await vi.advanceTimersByTimeAsync(300);+ await vi.advanceTimersByTimeAsync(1000);await flushMicrotasks();// Second chunk (80 bytes) would push total to 160 > 100 → writeFile.await capturedOnData(Buffer.alloc(80, 0x62));await flushMicrotasks();- await vi.advanceTimersByTimeAsync(300);+ await vi.advanceTimersByTimeAsync(1000);await flushMicrotasks();const writeFileRawCalls = vi.mocked(fsPromises.writeFile).mock.calls.filter(diff --git a/server/services/agentTuiSpawning/sessionController.js b/server/services/agentTuiSpawning/sessionController.jsindex 5c23175875..453c0c787a 100644--- a/server/services/agentTuiSpawning/sessionController.js+++ b/server/services/agentTuiSpawning/sessionController.js@@ -1626,7 +1626,7 @@ export function createTuiSessionController({if (isTerminal()) return;// Flush any debounced raw-PTY chunks first so the captured tail includes// the CLI's most recent output (e.g. claude's final error before exiting),- // not just whatever happened to be on disk before the last 250ms window.+ // not just whatever happened to be on disk before the pending raw batch.await flushRaw().catch(() => {});const raw = await readFile(rawFile, 'utf8').catch(() => '');const tail = raw