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(autofixer): serve UI over HTTPS with Tailscale cert when present
Adam Eivyca66354fc094
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex f0c9a3913a..7296a97913 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -19,3 +19,7 @@- **[issue-908] City scene theming goes deeper** — the parts of the 3D city that were still locked to the cyan-on-black cyberpunk palette now follow your theme too. Building bodies, the district/monument plinths and footings, the building window-grid bases, and the upper sky gradient all pick up a tint from the active theme accent (with their original darkness/brightness preserved, so the scene's depth and shading are unchanged — just recolored). Process buildings now use the same status colors as their parent app (a stopped process is the same red as a stopped app, not amber; a missing one the same purple, not indigo) and an online process follows the theme accent. Works across all eight themes.- **[issue-875] CyberCity district layout internals consolidated** — the city's districts now share one set of layout primitives for grid placement, category tallies, and log-scaled building heights, so each district no longer carries its own copy of that math. No visible change to the city.- **[issue-713] Simpler, collapsed sidebar** — The left navigation is consolidated to a focused set of top-level areas with a "More" group for the long tail. Messaging and your wiki now live under Brain, system and infrastructure tools under Dev Tools, and health tracking is now simply "Health"; Goals is promoted to its own top-level entry. Deep page tabs no longer clutter the sidebar — open a page and its tabs live in the page — and everything stays reachable from ⌘K and voice navigation.++## Fixed++- **Autofixer dashboard now loads over Tailscale HTTPS** — On installs with a Tailscale TLS cert, the main app is served over HTTPS, so the sidebar's "Autofixer" link points at `https://<host>:5560`. The standalone Autofixer UI server was hard-coded to plain HTTP, so that HTTPS request hit an HTTP-only listener and failed to connect (e.g. `https://void.taile8179.ts.net:5560/` wouldn't load). The Autofixer UI now serves HTTPS with the same shared `data/certs/` cert when one is present (and hot-reloads it on renewal), falling back to plain HTTP when no cert exists — so its scheme always matches the link the sidebar generates.diff --git a/autofixer/ui.js b/autofixer/ui.jsindex a84eb1e53a..902b5880ee 100644--- a/autofixer/ui.js+++ b/autofixer/ui.js@@ -4,6 +4,8 @@ import { readFile } from 'fs/promises';import { join, dirname } from 'path';import { fileURLToPath } from 'url';import { createRequire } from 'module';+import { createTailscaleServers, watchCertReload } from '../lib/tailscale-https.js';+import { certPaths } from '../lib/certPaths.js';const __filename = fileURLToPath(import.meta.url);const __dirname = dirname(__filename);@@ -236,9 +238,17 @@ app.get('/logs', async (req, res) => {});});-app.listen(PORT, '0.0.0.0', () => {- console.log(`🚀 [Autofixer UI] Running on http://localhost:${PORT}`);+// Serve HTTPS with the same Tailscale cert the main PortOS server uses when one+// is present, so the sidebar's `${window.location.protocol}//<host>:5560` link+// (which inherits https:// on a cert-enabled install) hits a matching listener.+// Falls back to plain HTTP when no cert is on disk.+const { dir: CERT_DIR } = certPaths(DATA_DIR);+const { server, httpsEnabled } = createTailscaleServers(app, { certDir: CERT_DIR, httpMirror: false });+const scheme = httpsEnabled ? 'https' : 'http';+server.listen(PORT, '0.0.0.0', () => {+ console.log(`🚀 [Autofixer UI] Running on ${scheme}://localhost:${PORT}`);});+if (httpsEnabled) watchCertReload(server, CERT_DIR);process.on('SIGINT', () => {console.log(`\n🛑 [Autofixer UI] Shutting down...`);diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex 9e5be79d16..3ce1fd6e86 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -269,6 +269,7 @@ Server Event → Socket.IO → socket.js → React Component State Update- Spawns Claude CLI with crash context (error logs + app info) to auto-repair- Stores fix sessions in `data/autofixer/sessions/` (prompt, output, metadata)- **UI** (:5560): Standalone Express server with SSE real-time log streaming+ - Serves HTTPS with the shared Tailscale cert (`data/certs/`) when one is present, plain HTTP otherwise — matching the scheme the sidebar's `//<host>:5560` link inherits from the main app- Fix history viewer, process status dashboard### Shell Service (`server/services/shell.js`)