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-1177]): log issue #1177 to changelog
[._.]/ Adam Eivy9d50c936f0db
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 1fbe7b9b53..df6458984e 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -32,6 +32,8 @@- **A watched TUI run no longer false-times-out after finishing its work** — companion fix to *Live TUI runs are now viewable AND drivable in the Shell page* (above). One-shot AI runs that drive a terminal UI (Claude Code, Codex, etc.) write their completed answer to a response file and then return to an interactive prompt **without exiting**. The runner only auto-completed such a run via output-idle — which is paused while you watch it in the Shell page (so it isn't snapped shut mid-read). With the process never exiting and idle paused, a watched run had no terminus but the 10-minute hard timeout — at which point it was marked **failed**, its already-written result was **discarded**, and a useless fallback retry ran in its place. The runner now watches for the response file as the model's authoritative "done" signal and completes the run the moment it's written — even while you're watching — since once the file exists the task is genuinely finished. A second safety net salvages the file on hard timeout: if the result was written but completion stalled for any other reason, the run finishes as **success** with that result instead of throwing it away and falling back. So a long editorial pass you keep open in the Shell tab now lands its findings when the model finishes, instead of silently dying at 10 minutes. (`server/lib/tuiPromptRunner.js`)+- **[issue-1177] Brain's full-bleed tabs scroll cleanly** — the Graph, Daily Log, and Notes tabs no longer double-scroll or clip below the fold. Each Brain tab now gets the scroll context it needs: the full-height visual tabs fill the pane and manage their own scrolling, while the reading tabs keep a comfortable padded scroll — so more content sits above the fold and there's no second scrollbar fighting the first.+- **Manuscript "Generate fix" no longer surfaces the prompt's own example as the edit** — a fix run could come back with the JSON example's placeholder text as the suggestion (BEFORE: *"a verbatim excerpt copied EXACTLY from that issue's manuscript above — the span you are replacing"*, AFTER: *"that same span rewritten to close the gap"*) when a model echoed the output-contract example instead of filling it in. That bogus edit could never be located in the manuscript, so Accept would have failed with "Anchor text is no longer present." Two changes close it: the fix's JSON example now uses obviously-schematic `<…>` field descriptions plus an explicit "do not copy the bracketed values" rule (so the model is far less likely to echo it), and `normalizeFix` now drops any edit whose `find`/`replace` still matches the example placeholder text (old prose-style *or* new bracketed) — so an echo collapses to the existing "did not return a usable fix — try again" retry instead of presenting an unappliable diff. The prompt change ships as migration 084 (existing installs auto-upgrade their copy; customized prompts are left intact and warned). (`server/services/pipeline/manuscriptFix.js`, `data.reference/prompts/stages/pipeline-manuscript-fix.md`, `scripts/migrations/084-manuscript-fix-example-placeholders.js`)- **Catalog user-type sync now converges instead of re-applying every cycle** — federated catalog *user-defined types* used an at-or-newer (`>=`) last-write-wins comparison, so a peer re-sending a type you already held at the same timestamp was re-adopted, re-written, and re-counted as a change on every sync cycle. The logs showed a constant non-zero count (e.g. `Synced with <peer>: 3 catalog changes`) once a minute forever, and the slice was rewritten needlessly each pass. The merge now uses strict-newer (`>`), matching the SQL LWW guard every other catalog kind already uses (`EXCLUDED.updated_at > …updated_at`): an equal-clock echo is a skip, so the merge is idempotent and the cycle settles to zero changes. (`server/services/catalogSync.js`)