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

address review: Copilot round 3

Adam Eivy1e389c4d4348
diff --git a/client/src/components/city/Borough.jsx b/client/src/components/city/Borough.jsx
index ca74e0c396..a05524da43 100644
--- a/client/src/components/city/Borough.jsx
+++ b/client/src/components/city/Borough.jsx
@@ -64,6 +64,7 @@ export default function Borough({ app, position, agentMap, onBuildingClick, play
pm2Status={pm2Status[proc.name]}
position={[position.x + x, 0, position.z + z, rotation]}
seed={seed}
+ dimmed={dimmed}
/>
))}
diff --git a/client/src/components/city/CityIntelPane.jsx b/client/src/components/city/CityIntelPane.jsx
index 0cffde751e..03cc5a503e 100644
--- a/client/src/components/city/CityIntelPane.jsx
+++ b/client/src/components/city/CityIntelPane.jsx
@@ -198,16 +198,17 @@ function ActivityLogList({ logs }) {
className="flex-1 overflow-y-auto px-3 py-1.5 space-y-1"
style={{ scrollbarWidth: 'thin', scrollbarColor: 'rgba(6,182,212,0.2) transparent' }}
>
- {logs.slice(-40).map((log, i) => {
+ {logs.slice(-40).map((log) => {
const level = log.level || 'info';
const colorClass = LEVEL_COLORS[level] || LEVEL_COLORS.info;
const indicatorClass = LEVEL_INDICATORS[level] || LEVEL_INDICATORS.info;
const time = log.timestamp ? formatClockTime(new Date(log.timestamp)) : '';
const message = log.message || log.event || JSON.stringify(log);
+ const key = log._localId ?? `${log.timestamp}-${message}`;
return (
<div
- key={i}
+ key={key}
className="font-pixel text-[9px] leading-tight flex items-start gap-1.5 tracking-wide group hover:bg-cyan-500/5 rounded px-1 py-0.5 -mx-1 transition-colors"
title={message}
>
diff --git a/client/src/components/city/ProcessBuilding.jsx b/client/src/components/city/ProcessBuilding.jsx
index a7025269f4..3686e57089 100644
--- a/client/src/components/city/ProcessBuilding.jsx
+++ b/client/src/components/city/ProcessBuilding.jsx
@@ -11,13 +11,14 @@ const STATUS_COLORS = {
error: '#ef4444',
};
-export default function ProcessBuilding({ process, pm2Status, position, seed }) {
+export default function ProcessBuilding({ process, pm2Status, position, seed, dimmed = false }) {
const blinkRef = useRef();
const glowRef = useRef();
const status = pm2Status?.status || 'not_found';
const color = STATUS_COLORS[status] || STATUS_COLORS.not_found;
const { width, depth } = PROCESS_BUILDING_PARAMS;
+ const dimMul = dimmed ? 0.25 : 1;
// Height based on status + seed variation
const height = useMemo(() => {
@@ -40,12 +41,13 @@ export default function ProcessBuilding({ process, pm2Status, position, seed })
useFrame(({ clock }) => {
const t = clock.getElapsedTime();
if (blinkRef.current) {
- blinkRef.current.material.opacity = (Math.sin(t * 3 + seed) > 0.3) ? 0.8 : 0.1;
+ blinkRef.current.material.opacity = ((Math.sin(t * 3 + seed) > 0.3) ? 0.8 : 0.1) * dimMul;
}
if (glowRef.current) {
- glowRef.current.material.opacity = status === 'online'
+ const base = status === 'online'
? 0.15 + Math.sin(t * 1.5 + seed) * 0.08
: 0.08;
+ glowRef.current.material.opacity = base * dimMul;
}
});
@@ -57,21 +59,21 @@ export default function ProcessBuilding({ process, pm2Status, position, seed })
<meshStandardMaterial
color={CITY_COLORS.buildingBody}
emissive={color}
- emissiveIntensity={status === 'online' ? 0.2 : 0.08}
+ emissiveIntensity={(status === 'online' ? 0.2 : 0.08) * dimMul}
transparent
- opacity={0.9}
+ opacity={0.9 * dimMul}
/>
</mesh>
{/* Neon wireframe edges */}
<lineSegments position={[0, height / 2, 0]} geometry={edgesGeom}>
- <lineBasicMaterial color={color} transparent opacity={0.8} />
+ <lineBasicMaterial color={color} transparent opacity={0.8 * dimMul} />
</lineSegments>
{/* Neon top cap */}
<mesh position={[0, height + 0.01, 0]} rotation={[-Math.PI / 2, 0, 0]}>
<planeGeometry args={[width + 0.05, depth + 0.05]} />
- <meshBasicMaterial color={color} transparent opacity={0.4} />
+ <meshBasicMaterial color={color} transparent opacity={0.4 * dimMul} />
</mesh>
{/* Process name on front face */}
diff --git a/client/src/hooks/useCityData.js b/client/src/hooks/useCityData.js
index ab9f65d5cd..3d0728fbe5 100644
--- a/client/src/hooks/useCityData.js
+++ b/client/src/hooks/useCityData.js
@@ -20,6 +20,7 @@ export const useCityData = () => {
const [loading, setLoading] = useState(true);
const pollRef = useRef(null);
const healthPollRef = useRef(null);
+ const logIdRef = useRef(0);
const fetchApps = useCallback(async () => {
const data = await api.getApps().catch(() => []);
@@ -113,7 +114,8 @@ export const useCityData = () => {
socket.on('cos:agent:completed', handleAgentCompleted);
const handleCosLog = (data) => {
- setEventLogs(prev => [...prev, { ...data, timestamp: data.timestamp || Date.now() }].slice(-50));
+ const entry = { ...data, timestamp: data.timestamp || Date.now(), _localId: ++logIdRef.current };
+ setEventLogs(prev => [...prev, entry].slice(-50));
};
socket.on('cos:log', handleCosLog);
diff --git a/docs/features/cybercity-v2.md b/docs/features/cybercity-v2.md
index 0704baedea..9184347548 100644
--- a/docs/features/cybercity-v2.md
+++ b/docs/features/cybercity-v2.md
@@ -126,7 +126,7 @@ what's healthy, what's not, find a specific app, and take action.
| **1.5** | **Notification beacons** — extend `CitySignalBeacons` with notification backlog from `/api/notifications/counts`; brightness = unread count, color = type, click = navigate. | S |
| **1.6** | **Brain inbox pulse** — central spire glow tracks `/api/brain/inbox` depth; new captures pulse the spire. | S |
| **1.7** | **"Needs attention" pane** — replace the right-side `cos:log` stream with a structured list ranked by urgency: stopped/errored apps, high CPU/mem, pending reviews, stale backups, failed agent runs, federation sync failures, unread notifications. Every item clickable. Live log demoted to a tab. | S |
-| **1.8** | **Building search overlay** — press `/` to filter buildings by name/tag/status; non-matches dim, matches stay lit, Enter focuses camera. Reuses `resolveNavCommand` from `server/lib/navManifest.js`. | S |
+| **1.8** | **Building search overlay** — press `/` to filter buildings by name/tag/status; non-matches dim, matches stay lit, Enter focuses camera. Local substring match against name/id/tags in `client/src/utils/cityFilter.js`. | S |
| **1.9** | **Status filter chips in HUD** — All / Online / Stopped / Errored / Has-Agent / Has-Pending-Review pill row above legend. Persists per-session. | S |
| **1.10** | **Hover preview card with quick actions** — show status / uptime / CPU / MEM / err / recent log line, with **Logs / Restart / Deploy / Open** buttons. Restart and Deploy POST to existing endpoints with explicit confirmation. | M |
| **1.11** | **Clickable HUD stats** — every count routes somewhere: PENDING REVIEWS → `/review`, AGENTS → `/cos`, NODES → `/instances`, etc. | XS |
@@ -187,7 +187,7 @@ Goal: the city feels alive, distinctive, and earned.
- `client/src/components/city/CitySignalBeacons.jsx` — extend for notifications (1.5) + landmarks (2.x)
- `client/src/components/city/CityBillboards.jsx` — richer content (1.12)
- `client/src/hooks/useCityData.js` — data layer; extend with new endpoints
-- `server/lib/navManifest.js` — `resolveNavCommand` reused for search (1.8)
+- `client/src/utils/cityFilter.js` — pure status/search filter logic (1.8, 1.9)
- `client/src/utils/formatters.js` — reuse formatters; do not duplicate
## Endpoints used / to use