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-1848]): log issue #1848 to changelog
[._.]/ Adam Eivye3853aa42763
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 0e914fe14c..06f4c6648f 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -36,6 +36,7 @@## Internal+- **[issue-1848] Strengthened weak truthiness test assertions** — replaced `toBeTruthy()` checks that would pass on wrong values with concrete value/shape assertions: `autobiography.test.js` now asserts the next-prompt object shape and round-trippable ISO-8601 timestamps for `createdAt`/`updatedAt`/`lastPromptAt`/`followUpsGeneratedAt` (with `updatedAt`/`lastPromptAt` proven strictly newer than the seeded old values); `storyBuilder.test.js` asserts `getSeries()` returns the matching `series.id` and `lockedAt` is a valid ISO timestamp; `commandSecurity.test.js` anchors the allowlist against known-safe membership (`git`/`gh`/`node`/`npm`/`pm2`/`ls`/`cat`/`echo`) and asserts dangerous commands stay absent, replacing the self-referential array-vs-Set check; and `fileUtils.test.js`'s visualTemplates resolution now asserts the returned path carries the `data/templates/` segment + unique basename. (#1848)- **[issue-1841] Stopped silently swallowing errors** — replaced `.catch(() => {})` / bare `catch {}` swallows that discarded failures with no log or user signal. The recovery-critical completion writes in `cos-runner/index.js` (output.txt + completion metadata) now log a `console.error` on failure instead of silently dropping a finished task, and `telegramClient.js`'s poll loop logs non-abort errors (JSON/Type errors that were previously retried blind) before retrying. On the client, the silent initial-load `.catch(() => {})` swallows in `ToolsTab.jsx` (rate-limit / submolt / draft refreshes), the `loraTraining/*` pickers (`CharacterLoraChip`, `TrainingPanel`, `LiveSampleGallery`, `CheckpointPicker`, `ImportGalleryDialog`, `UniverseCharacterPicker`), and `meatspace/post/*` (`MemoryBuilder`, `MemoryPractice`, `PostHistory`, `PostDrillConfig`, `PostSessionLauncher`, `ElementsSong`) now `console.warn` the error while keeping their zero-state fallbacks, so a failed load is visible in the console instead of a silent empty state. (#1841)- **[issue-1843] Logging hygiene: single-line interpolated logs + `parseInt` radix** — enforced the single-line-log convention across a handful of stragglers flagged by the `/do:better` audit. `useErrorNotifications.js` passed `error.context` as a raw object arg to `console.warn/error` (expanding a multi-field console group); it now interpolates the context as a single-line JSON suffix via a shared `formatContext` helper. `routes/database.js` had an embedded `\n` that split a failed-command log into two records — the detail is now whitespace-collapsed onto one line. The per-request route-path `console.log`s in `routes/agentActivity.js`, `routes/platformAccounts.js`, and `routes/agentPersonalities.js` (pure noise — mutations already persist via `logAction`) were removed. And `routes/digital-twin.js`'s `parseInt(req.query.limit)` gained its missing radix `10`. No behavior change beyond log formatting. (#1843)