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: show a neutral label for Eidoverse destinations named null or undefined (#10265)
[._.]/ Adam Eivy090058399316
diff --git a/server/services/eidoverseTravel.js b/server/services/eidoverseTravel.jsindex f2886aef56..5c082b7751 100644--- a/server/services/eidoverseTravel.js+++ b/server/services/eidoverseTravel.js@@ -62,13 +62,21 @@ async function request(peer, path, body) {return response.json();}+// A peer record can carry the literal strings "null"/"undefined" as its name;+// show the neutral fallback rather than those sentinels. Display-only: the+// stored peer is untouched and no address/ID-derived name is invented.+function destinationLabel(name) {+ const label = typeof name === 'string' ? name.trim() : '';+ return label === '' || label === 'null' || label === 'undefined' ? 'Federated world' : label;+}+export async function listEidoverseDestinations() {await requireAvailable();const peers = (await getPeers()).filter((peer) => peer.enabled !== false && peer.status === 'online');const results = await Promise.all(peers.map(async (peer) => {const capabilities = await request(peer, '/capabilities').catch(() => null);if (capabilities?.version !== VERSION || capabilities.available !== true) return null;- return { peerId: peerKey(peer), label: peer.name || 'Federated world' };+ return { peerId: peerKey(peer), label: destinationLabel(peer.name) };}));return { destinations: results.filter(Boolean) };}diff --git a/server/services/eidoverseTravel.test.js b/server/services/eidoverseTravel.test.jsindex fb9ec93202..b3ead343c2 100644--- a/server/services/eidoverseTravel.test.js+++ b/server/services/eidoverseTravel.test.js@@ -86,6 +86,19 @@ describe('registered-peer Eidoverse guest workflow over HTTP', () => {await expect(eidoverseVisitChat({ visitId: visit.visitId })).rejects.toMatchObject({ status: 404 });});+ it('labels malformed peer names neutrally over GET destinations without touching peers or admission', async () => {+ const names = ['null', 'undefined', ' null ', ' ', null, undefined, 42, ' Null Island ', 'Undefined Gardens', 'NULL'];+ const peers = names.map((name, i) => ({ id: `dest-${i}`, instanceId: `dest-instance-${i}`, address: '127.0.0.1', port: server.address().port, name, status: 'online', enabled: true }));+ const before = JSON.stringify(peers);+ const ineligible = [{ ...peers[0], id: 'off', instanceId: 'off-i', status: 'offline' }, { ...peers[0], id: 'dis', instanceId: 'dis-i', enabled: false }];+ mocks.peers = [...peers, ...ineligible];+ const body = await (await fetch(`${base}/destinations`)).json();+ expect(body.destinations.map((d) => d.label)).toEqual([...Array(7).fill('Federated world'), 'Null Island', 'Undefined Gardens', 'NULL']);+ expect(body.destinations.map((d) => d.peerId)).toEqual(peers.map(eidoversePeerId));+ expect(JSON.stringify(peers)).toBe(before);+ expect(mocks.admission).not.toHaveBeenCalled();+ });+it('limits browser tickets to visitor metadata and pins agent sessions to the originating peer', async () => {const { url } = await visitEidoversePeer({ peerId: eidoversePeerId(destination), agent: false });expect(mocks.admission).toHaveBeenLastCalledWith({ agent: false, name: 'Example Human' });