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
show machine instance name in browser tab title as 'PortOS: {name}'
[._.]/ Adam Eivyb9105f345d11
diff --git a/client/src/App.jsx b/client/src/App.jsxindex 94f99c05d8..35c0591192 100644--- a/client/src/App.jsx+++ b/client/src/App.jsx@@ -1,7 +1,7 @@import { Suspense, useEffect } from 'react';import { Routes, Route, Navigate, useLocation } from 'react-router-dom';import Layout from './components/Layout';-import { getSettings, updateSettings } from './services/api';+import { getSettings, updateSettings, getSelfInstance } from './services/api';import BrailleSpinner from './components/BrailleSpinner';import { CatalogTypesProvider } from './hooks/useCatalogTypes.jsx';import Dashboard from './pages/Dashboard';@@ -153,8 +153,21 @@ function useTimezoneBootstrap() {}, []);}+// Stamp the machine's instance name into the browser tab so multiple federated+// installs are distinguishable at a glance — "PortOS: {name}". Falls back to the+// static "PortOS" title (set in index.html) when the name is missing/unfetchable.+function useDocumentTitle() {+ useEffect(() => {+ getSelfInstance({ silent: true }).then((self) => {+ const name = self?.name?.trim();+ if (name) document.title = `PortOS: ${name}`;+ }).catch(() => null);+ }, []);+}+export default function App() {useTimezoneBootstrap();+ useDocumentTitle();return (<CatalogTypesProvider><Suspense fallback={<PageLoader />}>diff --git a/client/src/pages/Instances.jsx b/client/src/pages/Instances.jsxindex 11a94c6765..62de922b3e 100644--- a/client/src/pages/Instances.jsx+++ b/client/src/pages/Instances.jsx@@ -234,6 +234,7 @@ function SelfCard({ self, onUpdate, syncStatus, tailnetInfo }) {if (!name.trim()) return;const result = await updateSelfInstance({ name: name.trim() }).catch(() => null);if (!result) return;+ document.title = `PortOS: ${name.trim()}`;onUpdate();setEditing(false);toast.success('Instance name updated');diff --git a/client/src/services/apiSystem.js b/client/src/services/apiSystem.jsindex 96e5816e14..f0ac1cd549 100644--- a/client/src/services/apiSystem.js+++ b/client/src/services/apiSystem.js@@ -166,7 +166,7 @@ export const navigateBrowser = (url) => request('/browser/navigate', {// Instances (Federation)export const getInstances = (options) => request('/instances', options);-export const getSelfInstance = () => request('/instances/self');+export const getSelfInstance = (options) => request('/instances/self', options);export const updateSelfInstance = (data) => request('/instances/self', { method: 'PUT', body: JSON.stringify(data) });export const addPeer = (data) => request('/instances/peers', { method: 'POST', body: JSON.stringify(data) });export const updatePeer = (id, data) => request(`/instances/peers/${id}`, { method: 'PUT', body: JSON.stringify(data) });