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
fix(mobile): stack port inputs + add x-scroll to wide tables on mobile
Adam Eivyebbc97583941
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 0236e57f2e..2a445cb05b 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -8,6 +8,8 @@## Fixed+- **Mobile responsiveness — narrow forms and wide tables no longer break on small screens.** Four spots were squeezing or clipping content under ~640px wide viewports: (1) the Create App form's Port fields used `grid-cols-3` so the three port inputs (UI, Dev UI, API) crammed into ~100px each on a phone — now `grid-cols-1 sm:grid-cols-3` so they stack on mobile and only side-by-side on `sm:` and up; (2) the Body tab's eye-exam history table has eight columns (Date, L SPH/CYL/AXIS, R SPH/CYL/AXIS, actions) and was wrapped in `overflow-hidden` so the rightmost columns were invisible on mobile — now wrapped in `overflow-x-auto` with `min-w-[640px]` on the table so it scrolls horizontally instead of clipping; (3) the Posture session-history table (5 columns) had the same `overflow-hidden` wrapper — now `overflow-x-auto` with `min-w-[520px]`; (4) the Data Manager Backup Archives table (Archive name + Size + Created + delete button) — same fix with `min-w-[480px]`. Files: `client/src/pages/CreateApp.jsx`, `client/src/pages/DataManager.jsx`, `client/src/components/meatspace/tabs/BodyTab.jsx`, `client/src/components/meatspace/post/PostHistory.jsx`.+- **Taste summaries render as markdown and appear inline immediately after generation.** The Digital Twin → Taste tab had two regressions in the summary flow: (1) after clicking "Generate Summary" on the section-complete view, the button returned to its enabled state with no visible change — the summary was saved but not rendered until the user navigated away and back into the section's Review view, and (2) every place the summary did show (review-mode AI Summary card, expandable summary on the dashboard grid, "Unified Taste Profile" overall summary) used a `whitespace-pre-wrap` `<div>` so the LLM-generated markdown displayed as raw `### Movies & Film Profile`, `**Core Preferences:**`, `- Item 1` etc. instead of styled headings, bold text, and bullets. Now: the section-complete view shows the freshly-generated summary inline in a violet-bordered card the moment `loadProfile()` returns, and all three summary surfaces use the existing `MarkdownOutput` component (which already powers CoS, autobiography, etc.) so headings/bold/italics/bullets/blockquotes render properly. File: `client/src/components/digital-twin/tabs/TasteTab.jsx`.- **Voice agent no longer feedback-loops on laptop speakers.** When the user ran the voice widget without headphones, TTS played through the laptop speakers, the built-in mic picked it up, STT transcribed the bot's own voice as a "user" turn, the bot replied to itself, and the loop repeated until the user manually stopped it. The existing substring-based echo gate in `voiceClient.js` was too brittle — STT mistranscribes TTS just enough that the heard text wasn't a clean substring of any spoken sentence, so the gate let the echo through. Replaced with a length-gate + trigram-overlap algorithm: utterances under 4 tokens always pass (so short barge-ins like "wait" / "stop" still interrupt the bot even if those words appear in TTS), and longer utterances are flagged as echo when they share ≥ 2 trigrams (3-word windows) with a recently-spoken sentence OR are a clean substring. Same algorithm runs server-side in a new `server/services/voice/echo.js` (per-socket `state.recentTts` ring) so continuous-mode whisper transcripts are also gated, not just Web Speech. Also added device-route detection: when the active mic shares a `groupId` with an audiooutput device AND the label looks headset-y (AirPods, Jabra, etc.), the gate is bypassed entirely (no acoustic echo path on real headphones); a `devicechange` listener re-evaluates on plug/unplug. Default-tight on uncertainty — false-headset would re-open the loop, false-built-in just makes barge-in slightly less twitchy. Files: `server/services/voice/echo.js` (new), `server/services/voice/echo.test.js` (new, 16 tests), `server/services/voice/pipeline.js`, `server/sockets/voice.js`, `client/src/services/voiceClient.js`.diff --git a/client/src/components/meatspace/post/PostHistory.jsx b/client/src/components/meatspace/post/PostHistory.jsxindex db240a1842..e8fbee5d91 100644--- a/client/src/components/meatspace/post/PostHistory.jsx+++ b/client/src/components/meatspace/post/PostHistory.jsx@@ -108,8 +108,8 @@ export default function PostHistory({ onBack }) {)}{/* Session List */}- <div className="bg-port-card border border-port-border rounded-lg overflow-hidden">- <table className="w-full text-sm">+ <div className="bg-port-card border border-port-border rounded-lg overflow-hidden overflow-x-auto">+ <table className="w-full text-sm min-w-[520px]"><thead><tr className="border-b border-port-border text-gray-500 text-left"><th className="px-4 py-2 font-medium w-8"></th>diff --git a/client/src/components/meatspace/tabs/BodyTab.jsx b/client/src/components/meatspace/tabs/BodyTab.jsxindex 04a3cd6253..58454afc88 100644--- a/client/src/components/meatspace/tabs/BodyTab.jsx+++ b/client/src/components/meatspace/tabs/BodyTab.jsx@@ -192,8 +192,8 @@ export default function BodyTab() {<p className="text-gray-500 text-sm">No eye exam data. Import your health spreadsheet or add exams manually.</p></div>) : (- <div className="bg-port-card border border-port-border rounded-xl overflow-hidden">- <table className="w-full text-sm">+ <div className="bg-port-card border border-port-border rounded-xl overflow-hidden overflow-x-auto">+ <table className="w-full text-sm min-w-[640px]"><thead><tr className="text-xs text-gray-500 uppercase border-b border-port-border"><th className="text-left py-2 px-3">Date</th>diff --git a/client/src/pages/CreateApp.jsx b/client/src/pages/CreateApp.jsxindex d7f921ff0b..dd771241e0 100644--- a/client/src/pages/CreateApp.jsx+++ b/client/src/pages/CreateApp.jsx@@ -422,7 +422,7 @@ export default function CreateApp() {{/* Port fields - only for PM2/server apps */}{!isNonPm2 && (- <div className="grid grid-cols-3 gap-4">+ <div className="grid grid-cols-1 sm:grid-cols-3 gap-4"><div><label className="block text-sm text-gray-400 mb-1">UI Port</label><inputdiff --git a/client/src/pages/DataManager.jsx b/client/src/pages/DataManager.jsxindex 3bf3e8a93f..462391d9ef 100644--- a/client/src/pages/DataManager.jsx+++ b/client/src/pages/DataManager.jsx@@ -116,8 +116,8 @@ function BackupsSection({ backups, loading, onDelete }) {<h2 className="text-sm font-semibold text-white">Backup Archives</h2><span className="text-xs text-gray-500">{backups.length} archives</span></div>- <div className="border border-port-border rounded-lg overflow-hidden">- <table className="w-full text-xs">+ <div className="border border-port-border rounded-lg overflow-hidden overflow-x-auto">+ <table className="w-full text-xs min-w-[480px]"><thead><tr className="text-gray-500 border-b border-port-border/30 bg-port-card/30"><th className="text-left p-2 pl-3 font-medium">Archive</th>