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

fix: address round 3 Copilot review feedback on PR #98

Adam Eivyf927cb3ec670
diff --git a/client/src/components/city/CityHud.jsx b/client/src/components/city/CityHud.jsx
index 3fc7f81bd0..b87c639caa 100644
--- a/client/src/components/city/CityHud.jsx
+++ b/client/src/components/city/CityHud.jsx
@@ -160,7 +160,7 @@ export default function CityHud({ cosStatus, cosAgents, agentMap, eventLogs, con
const alertCount = reviewCounts?.alert || 0;
const peers = instances?.peers || [];
const onlinePeers = peers.filter(peer => peer.status === 'online').length;
- const totalNodes = 1 + peers.length;
+ const totalNodes = peers.length;
const activeAgentCount = (cosAgents || []).filter(a =>
a.status === 'running' || a.state === 'coding' || a.state === 'thinking' || a.state === 'investigating'
diff --git a/client/src/components/city/CityScene.jsx b/client/src/components/city/CityScene.jsx
index 7ff677dbbb..263de2f5d8 100644
--- a/client/src/components/city/CityScene.jsx
+++ b/client/src/components/city/CityScene.jsx
@@ -19,6 +19,7 @@ import CityNeonSigns from './CityNeonSigns';
import CityEmbers from './CityEmbers';
import CityEffects from './CityEffects';
import CityClouds from './CityClouds';
+import CitySignalBeacons from './CitySignalBeacons';
import CitySky from './CitySky';
import PlayerController from './PlayerController';
import CameraTransition from './CameraTransition';
diff --git a/server/lib/validation.js b/server/lib/validation.js
index 3989703603..eb9fe1b413 100644
--- a/server/lib/validation.js
+++ b/server/lib/validation.js
@@ -182,7 +182,7 @@ export const appSchema = z.object({
apiPort: z.number().int().min(1).max(65535).nullable().optional(),
buildCommand: z.string().max(200).optional(),
uiUrl: z.string().url().optional(),
- startCommands: z.array(z.string()).optional(),
+ startCommands: z.array(z.string()).min(1).optional(),
pm2ProcessNames: z.array(z.string()).optional(),
processes: z.array(processSchema).optional(), // Per-process port configs from ecosystem.config
envFile: z.string().optional(),
diff --git a/server/routes/detect.js b/server/routes/detect.js
index e72b6bf49a..8a8a8bfab7 100644
--- a/server/routes/detect.js
+++ b/server/routes/detect.js
@@ -144,6 +144,9 @@ router.post('/port', asyncHandler(async (req, res) => {
// Use lsof on macOS/Linux to find process
const safePort = parseInt(port, 10);
+ if (!Number.isInteger(safePort) || safePort < 1 || safePort > 65535) {
+ return res.status(400).json({ error: `Invalid port number: ${port}` });
+ }
const command = process.platform === 'darwin'
? `lsof -i :${safePort} -P -n | grep LISTEN`
: `ss -lntp | grep :${safePort}`;