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

Merge remote-tracking branch 'origin/main' into next/issue-1850

[._.]/ Adam Eivy89099c72464b
diff --cc .changelog/NEXT.md
index e4fd033232,4a0fbac6e1..a9eec9bccc
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@@ -34,12 -34,9 +34,13 @@@
- Catalog "Appears in" panel no longer renders dangling chips that deep-link to soft-deleted universe/series/creative-director targets — the detail page filters refs to live targets only (the orphan stays recoverable via the "Orphaned" album). Also fixed a stale resolver bug where soft-deleted Creative Director projects (#1564) wrongly resolved as live, and extended orphan-bucket detection so a deleted CD project's ex-cast surfaces as orphaned rather than unlinked. (#1812)
- **[issue-1836] Avatar GLB stream errors now return the standard error envelope** — when `GET /api/avatar/model.glb` hits a read error mid-stream (e.g. the file is removed after the existence check), the 404/500 JSON response carried a bare `{ error }` instead of the `{ error, code, timestamp }` shape every other PortOS endpoint stamps via `errorMiddleware`. Since the stream `error` event fires outside the request promise chain (where a throw would crash the process), the handler now stamps `code` + `timestamp` directly, so clients see a consistent error shape. (#1836)
+## UX & Accessibility
+
+- **[issue-1850] Calendar and message action buttons now meet the 44px minimum touch-target size** — the day/week/month calendar nav chevrons, the event-detail close button, and the message-detail action row (Reply / Voice / AI Reply / Refresh / Archive / Delete) previously rendered at ~28–31px, below the WCAG 2.5.5 / Apple HIG 44px minimum and awkward to tap on mobile. Each now enforces `min-w-[44px] min-h-[44px]` with centered icons, matching the shared `Drawer` close-button pattern, without changing the visual layout. (#1850)
+
## Internal
+ - **[issue-1849] Unit coverage for under-tested taskLearning + moltbook branch logic** — added sibling tests for previously-untested modules called out by the /do:better audit: `taskLearning/store.js` (`extractTaskType` classification arms, `calculateDurationETA` success-vs-total base + p80 clamp), `taskLearning/durations.js` (confidence tiering, totals fallback, queue-completion matching/formatting), `taskLearning/promptRecommendations.js` (success-rate status bands, error insights/hints, sort order), and `integrations/moltbook/challengeSolver.js` (number-extraction regex + 2-decimal formatting, provider selection, failure fallbacks). The promptRecommendations sort test surfaced and fixed a real bug — `priorityOrder[status] || 5` treated the top-priority `critical` status (value 0) as falsy and sorted the most urgent recommendation *last*; switched to `?? 5`. (#1849)
- **[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)