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
docs([issue-1229]): log TUI idle-complete false-success fix to changelog
[._.]/ Adam Eivy8ac87eafedcd
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 2553ced5c5..d8cc9e0fde 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -80,4 +80,6 @@- **TUI agents no longer leave the prompt sitting unsent in the input box** — CoS agents that run inside a terminal-UI provider (Claude Code, Codex) bracketed-paste their task prompt and then send a single Enter to submit it. On a large multi-line prompt that one `\r` could arrive while the TUI was still reflowing the paste and get swallowed — so the prompt sat typed-but-unsubmitted, the agent did no work, idled out after 3 minutes, and was (wrongly) recorded as a successful run. You'd see it only by opening the Shell tab and hitting Enter yourself. The submit Enter now fires a few times spaced ~700ms apart so one lands after the paste settles; re-sending is safe because once the prompt submits the input box is empty and a bare Enter is a no-op. Applies to both the long-running agent path and the one-shot TUI runner. (`server/lib/tuiHandshake.js`, `server/services/agentTuiSpawning.js`, `server/lib/tuiPromptRunner.js`)+- **A TUI agent that never started working is no longer recorded as a success** — Two follow-ups to the unsent-prompt fix above. First, the paste-commit fast path that submits the prompt the moment Claude Code finishes ingesting it was effectively dead: it scanned the raw terminal stream for the `[Pasted text #N]` marker, but Claude Code draws that marker with cursor-positioning codes between every word, so the literal text never matched and *every* run fell back to a blind 3.5-second timer. The matcher now runs against the cleaned text, so the fast path fires again on large pastes (short prompts still use the timer, and the multi-Enter safety net covers both). Second, a run that idled out without ever submitting its prompt was still marked **successful** — the idle check only confirmed the terminal had repainted *something*, and the status bar repaints constantly even with an unsent prompt. The agent now must show a real sign of work (a "thinking"/working indicator after the paste) before an idle-out counts as done; an idle-out with no such activity is recorded as a **failure** instead, so a no-op run can't masquerade as completed. (`server/lib/tuiHandshake.js`, `server/services/agentTuiSpawning.js`, `server/lib/tuiPromptRunner.js`)+- **`calendarSync` test no longer depends on the developer's machine state** — the "throws 401 when Google OAuth is not configured" test read the REAL Google credentials/tokens off disk, so on a machine with OAuth configured it failed with a `GaxiosError` (400 invalid_grant) instead of the pinned 401. The auth client is now mocked to the not-configured state. (`server/services/calendarSync.test.js`)