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([issue-967]): address claude+codex review

Adam Eivy3353ae81df7e
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index c18895c9c9..9da9181d96 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -16,7 +16,7 @@
- **[issue-952] Cinematic depth-of-field in City photo mode** — Photo mode now blurs the background for a cinematic look: whatever the current framing points at stays sharp while the rest of the city falls off softly, and each preset focuses on its own subject (the low-angle shot uses a shallower, more dramatic focus). It's on by default; toggle it with the "Depth" button in the photo bar or the D key, and your captured postcard matches what you see. Depth-of-field only runs while you're in photo mode, so the live dashboard is unaffected.
- **[issue-912] Regenerate gallery images to defeat SynthID watermarks** — Generated images gain a "Regenerate" action in the lightbox, next to "Clean", whenever a local FLUX image generator is installed. The existing Clean only strips embedded provenance metadata and can't touch SynthID — Google's invisible per-pixel watermark — which survives by design. Regenerate is the honest defeat path: it round-trips the picture through a local FLUX model so the watermark signal is overwritten by fresh sampling, while keeping the change to the image as small as possible — it uses no prompt and a low denoise, so the result is a near-faithful copy of the original rather than a reinterpretation. It runs entirely on-device, is never applied automatically, and saves the result as a new variant beside the original (which is kept); the lightbox's variant switch lets you toggle between them. Very large source images (e.g. 4K) are handled by regenerating at a model-friendly resolution and scaling the clean result back up to the original size, so a big image no longer stalls the pass. The Regenerate button opens an inline panel with a strength slider (lower = more faithful) and an optional prompt field, so you can dial in how much the pass changes the image — or paste a prompt for a creative re-roll — right from the lightbox.
- **[issue-877] City records its history for a future timeline scrubber** — The City now quietly snapshots its own state on a schedule (every 5 minutes by default), capturing which apps are online, how many agents are working, system health, and the other landmark readouts. These frames accumulate locally — never synced to peers — so an upcoming timeline view can let you scrub back and watch the city change over time. There's nothing to interact with yet; this is the recording groundwork. You can tune the capture interval, set how many frames to keep, or turn it off in settings.
-- **[issue-967] Scrub back through City history** — A new "History" button on the City opens a playback timeline: drag the slider to any past moment, or hit play to watch your city evolve at 1×/2×/4× (←/→ step a frame, Esc exits). As you move through time, buildings rise in (construction) when an app first appeared, scale away (teardown) when one was gone, and recolor as their status changed — and the health, backup, task, agent, and federation readouts follow each recorded moment. Districts the snapshots don't capture (memory, goals, Jira, activity) keep showing live data and are flagged as such, so a historical view never quietly passes off "now" as "then."
+- **[issue-967] Scrub back through City history** — A new "History" button on the City opens a playback timeline: drag the slider to any past moment, or hit play to watch your city evolve at 1×/2×/4× (←/→ step a frame, Esc exits). As you move through time, buildings rise in (construction) when an app first appeared, scale away (teardown) when one was gone, and recolor as their status changed; agent activity, automation state, and backup status follow each recorded moment, and a readout shows that moment's captured CPU/memory/disk, task, agent, peer, and review numbers. Districts whose detail the snapshots don't capture (the task, federation, health, memory, goals, Jira, and activity landmarks) keep showing live data and are flagged as such in the timeline bar, so a historical view never quietly passes off "now" as "then."
## Changed
diff --git a/client/src/components/city/CityPlaybackOverlay.jsx b/client/src/components/city/CityPlaybackOverlay.jsx
index b1a0a1bea2..04a2f8c415 100644
--- a/client/src/components/city/CityPlaybackOverlay.jsx
+++ b/client/src/components/city/CityPlaybackOverlay.jsx
@@ -7,12 +7,25 @@ import { formatDateTime, timeAgo } from '../../utils/formatters';
// Mirrors CityPhotoOverlay's bottom-bar styling. All transport logic lives in the
// useCityPlayback hook; this is presentation only.
+// One historical stat chip; renders a null value as "—" so an unavailable
+// capture reads distinctly from a real zero.
+function Stat({ label, value, suffix = '' }) {
+ return (
+ <span className="text-cyan-300/80">
+ <span className="text-cyan-500/60">{label}</span>{' '}
+ {value == null ? '—' : `${value}${suffix}`}
+ </span>
+ );
+}
+
export default function CityPlaybackOverlay({
active,
loading,
+ error,
snapshots = [],
frameIndex,
currentFrame,
+ stats,
playing,
speed,
onSeek,
@@ -50,13 +63,19 @@ export default function CityPlaybackOverlay({
<div className="font-pixel text-[10px] text-cyan-500/70 tracking-wider text-center pb-2">LOADING HISTORY…</div>
)}
- {!loading && !hasFrames && (
+ {!loading && error && (
+ <div className="font-pixel text-[10px] text-amber-400/80 tracking-wider text-center pb-2">
+ COULDN'T LOAD HISTORY — the snapshot service didn't respond. Try again later.
+ </div>
+ )}
+
+ {!loading && !error && !hasFrames && (
<div className="font-pixel text-[10px] text-cyan-500/70 tracking-wider text-center pb-2">
NO SNAPSHOTS YET — the city records its state every few minutes. Check back later.
</div>
)}
- {!loading && hasFrames && (
+ {!loading && !error && hasFrames && (
<div className="flex flex-col gap-2">
{/* Timestamp + live-data note */}
<div className="flex items-center justify-between font-pixel text-[10px] text-cyan-300/90 tracking-wider">
@@ -67,6 +86,20 @@ export default function CityPlaybackOverlay({
<span className="text-cyan-500/60">{ts ? timeAgo(ts) : ''}</span>
</div>
+ {/* Captured-at-this-moment stats whose 3D landmarks stay live (so the
+ historical numbers are still visible while scrubbing). */}
+ {stats && (
+ <div className="flex items-center justify-center flex-wrap gap-x-4 gap-y-1 font-pixel text-[9px] tracking-wider">
+ <Stat label="CPU" value={stats.cpuPercent} suffix="%" />
+ <Stat label="MEM" value={stats.memPercent} suffix="%" />
+ <Stat label="DISK" value={stats.diskPercent} suffix="%" />
+ <Stat label="AGENTS" value={stats.agentsActive} />
+ <Stat label="TASKS" value={stats.tasksPending == null && stats.tasksInProgress == null ? null : (stats.tasksPending ?? 0) + (stats.tasksInProgress ?? 0)} />
+ <Stat label="PEERS" value={stats.peersOnline == null ? null : `${stats.peersOnline}/${stats.peersTotal ?? '?'}`} />
+ <Stat label="REVIEW" value={stats.reviewTotal} />
+ </div>
+ )}
+
{/* Timeline slider */}
<input
type="range"
diff --git a/client/src/hooks/useCityPlayback.js b/client/src/hooks/useCityPlayback.js
index 3a5909fcd0..f7f572fab2 100644
--- a/client/src/hooks/useCityPlayback.js
+++ b/client/src/hooks/useCityPlayback.js
@@ -1,6 +1,6 @@
-import { useState, useRef, useCallback, useEffect } from 'react';
+import { useState, useRef, useCallback, useEffect, useMemo } from 'react';
import { getCitySnapshots } from '../services/apiCity.js';
-import { isPlayableFrame } from '../lib/cityPlaybackFrame.js';
+import { isPlayableFrame, buildPlaybackStats } from '../lib/cityPlaybackFrame.js';
// Transport state for the CyberCity timeline scrubber (issue #967). Owns the
// snapshot series, the current frame index, and play/pause/speed so CyberCity.jsx
@@ -17,6 +17,10 @@ export function useCityPlayback() {
const [playing, setPlaying] = useState(false);
const [speed, setSpeed] = useState(PLAYBACK_SPEEDS[0]);
const [loading, setLoading] = useState(false);
+ // null = no error; true = the series fetch failed. Distinct from an empty
+ // series (a real, fetched-empty history) so the overlay can say "couldn't
+ // load" vs "nothing recorded yet" — the absent-vs-empty rule.
+ const [error, setError] = useState(false);
// Guards a deferred/interval callback against firing after unmount (CLAUDE.md
// deferred-work rule). Never reset to true — handles dev double-mount cleanly.
@@ -27,11 +31,20 @@ export function useCityPlayback() {
setActive(true);
setLoading(true);
setPlaying(false);
+ setError(false);
+ // Sentinel: catch → null marks a failed fetch, distinct from a fetched-empty
+ // history. Validate the payload is actually an array before trusting it.
const res = await getCitySnapshots({ silent: true }).catch(() => null);
if (!mountedRef.current) return;
+ if (!res || !Array.isArray(res.snapshots)) {
+ setError(true);
+ setSnapshots([]);
+ setLoading(false);
+ return;
+ }
// Only keep frames this scrubber can render (schemaVersion gate); a future
// bump leaves older/newer frames out rather than mis-rendering them.
- const frames = (res?.snapshots || []).filter(isPlayableFrame);
+ const frames = res.snapshots.filter(isPlayableFrame);
setSnapshots(frames);
setFrameIndex(frames.length > 0 ? frames.length - 1 : 0); // start at "now"
setLoading(false);
@@ -67,31 +80,37 @@ export function useCityPlayback() {
setFrameIndex(() => Math.max(0, Math.min(snapshots.length - 1, index)));
}, [snapshots.length]);
- // Auto-advance timer. Stops at the last frame. Guarded by mountedRef and torn
- // down on pause/exit/speed-change/unmount so it never fires into the void.
+ // Auto-advance timer. Guarded by mountedRef and torn down on
+ // pause/exit/speed-change/unmount so it never fires into the void. The updater
+ // stays PURE — it only clamps the index forward; the "stop at the end" pause
+ // is a separate effect below (calling a setter inside a state updater would
+ // double-fire under StrictMode).
useEffect(() => {
if (!active || !playing || snapshots.length === 0) return undefined;
const id = setInterval(() => {
if (!mountedRef.current) return;
- setFrameIndex((i) => {
- if (i >= snapshots.length - 1) {
- setPlaying(false);
- return i;
- }
- return i + 1;
- });
+ setFrameIndex((i) => Math.min(i + 1, snapshots.length - 1));
}, BASE_INTERVAL_MS / speed);
return () => clearInterval(id);
}, [active, playing, speed, snapshots.length]);
+ // Pause when playback reaches the last frame (kept out of the interval's
+ // updater so that updater stays a pure function of the previous index).
+ useEffect(() => {
+ if (playing && snapshots.length > 0 && frameIndex >= snapshots.length - 1) {
+ setPlaying(false);
+ }
+ }, [playing, frameIndex, snapshots.length]);
+
const currentFrame = snapshots[frameIndex] || null;
+ const stats = useMemo(() => buildPlaybackStats(currentFrame), [currentFrame]);
return {
active, enter, exit,
- snapshots, frameIndex, currentFrame, seek, step,
+ snapshots, frameIndex, currentFrame, stats, seek, step,
playing, togglePlay,
speed, cycleSpeed,
- loading,
+ loading, error,
frameCount: snapshots.length,
};
}
diff --git a/client/src/hooks/useCityPlayback.test.jsx b/client/src/hooks/useCityPlayback.test.jsx
index 2f0f91cf13..8c09625561 100644
--- a/client/src/hooks/useCityPlayback.test.jsx
+++ b/client/src/hooks/useCityPlayback.test.jsx
@@ -30,6 +30,22 @@ describe('useCityPlayback', () => {
expect(result.current.currentFrame.ts).toBe('2026-06-05T02:00:00.000Z');
});
+ it('flags an error (distinct from empty) when the fetch fails', async () => {
+ getCitySnapshots.mockRejectedValue(new Error('network down'));
+ const { result } = renderHook(() => useCityPlayback());
+ await act(async () => { await result.current.enter(); });
+ expect(result.current.error).toBe(true);
+ expect(result.current.frameCount).toBe(0);
+ });
+
+ it('a real empty history is not an error', async () => {
+ getCitySnapshots.mockResolvedValue({ total: 0, snapshots: [] });
+ const { result } = renderHook(() => useCityPlayback());
+ await act(async () => { await result.current.enter(); });
+ expect(result.current.error).toBe(false);
+ expect(result.current.frameCount).toBe(0);
+ });
+
it('filters out frames with an unsupported schemaVersion', async () => {
getCitySnapshots.mockResolvedValue({
snapshots: [...mkFrames(2), { ts: 'x', schemaVersion: 99, apps: [] }],
diff --git a/client/src/lib/cityPlaybackFrame.js b/client/src/lib/cityPlaybackFrame.js
index c9192a2b06..f1d7a6f343 100644
--- a/client/src/lib/cityPlaybackFrame.js
+++ b/client/src/lib/cityPlaybackFrame.js
@@ -46,12 +46,15 @@ export function buildPlaybackApps(frame, liveApps = []) {
}
// Rebuild the agentMap (Map<appId, { app, agents }>) from the frame's compact
-// assignment list. Only running assignments are captured. A null assignments
-// array (failed capture) yields an empty map — playback shows no agent entities
-// rather than fabricating them.
-export function buildPlaybackAgentMap(frame, playbackApps = []) {
+// assignment list. Only running assignments are captured.
+//
+// Sentinel discipline: a `null` assignments array means "agent source failed at
+// capture time" — return the live agentMap (passed in) rather than an empty map,
+// so a transient capture failure doesn't read as "no agents were running." A
+// real empty array yields a real empty map (no agent entities).
+export function buildPlaybackAgentMap(frame, playbackApps = [], liveAgentMap = new Map()) {
+ if (!Array.isArray(frame?.assignments)) return liveAgentMap;
const map = new Map();
- if (!Array.isArray(frame?.assignments)) return map;
const appById = new Map((playbackApps || []).map((a) => [a.id, a]));
for (const asn of frame.assignments) {
if (!asn?.appId) continue;
@@ -64,58 +67,65 @@ export function buildPlaybackAgentMap(frame, playbackApps = []) {
return map;
}
-// Derive the count-driven scene props from a frame. Each value is null when the
-// frame recorded null (source unavailable) so the consuming component shows its
-// empty state rather than a fabricated zero.
-function deriveCountProps(frame) {
- const c = frame?.counts || {};
+// The CityScene props a snapshot frame can FAITHFULLY drive — i.e. scene elements
+// whose data the frame actually carries at the right granularity:
+// apps → buildings (per-app status)
+// agentMap → agent entities (assignments)
+// cosStatus → skyline automation state (running/paused/active)
+// backupStatus→ backup vault (status/lastRun)
+// character → artifact placement (level)
+//
+// Deliberately NOT returned (so the page leaves them at LIVE — "freeze unfed
+// landmarks at live"): the count-only landmarks (task queue, federation horizon,
+// health tower, memory, goals, jira, activity) render from rich per-item arrays
+// the snapshot doesn't carry, only aggregate counts. Faking array items from a
+// count would misrepresent history; instead the captured counts are surfaced as
+// numbers in the playback overlay via buildPlaybackStats(). Each value is null
+// when the frame recorded null (source unavailable at capture).
+//
+// Returns null when the frame isn't playable (wrong/absent schemaVersion) so the
+// caller can keep showing live data and flag the frame.
+export function mergeFrameIntoCityProps(frame, live = {}) {
+ if (!isPlayableFrame(frame)) return null;
+ const apps = buildPlaybackApps(frame, live.apps);
+ const agentMap = buildPlaybackAgentMap(frame, apps, live.agentMap);
return {
+ apps,
+ agentMap,
cosStatus: frame?.cos == null ? null : {
running: frame.cos.running ?? false,
paused: frame.cos.paused ?? false,
- activeAgents: c.agentsActive ?? null,
- pausedAgents: c.agentsPaused ?? null,
- stats: { tasksCompleted: c.tasksCompleted ?? null },
+ activeAgents: frame.counts?.agentsActive ?? null,
+ pausedAgents: frame.counts?.agentsPaused ?? null,
+ stats: { tasksCompleted: frame.counts?.tasksCompleted ?? null },
},
backupStatus: frame?.backup == null ? null : {
status: frame.backup.status ?? null,
lastRun: frame.backup.lastRun ?? null,
},
- // systemHealth shape mirrors what useCityData exposes (percent fields).
- systemHealth: (frame?.health && (frame.health.cpuPercent != null || frame.health.memPercent != null || frame.health.diskPercent != null))
- ? {
- system: {
- cpu: { usagePercent: frame.health.cpuPercent },
- memory: { usagePercent: frame.health.memPercent },
- disk: { usagePercent: frame.health.diskPercent },
- },
- }
- : null,
character: frame?.character == null ? null : { level: frame.character.level ?? null },
- instances: frame?.instance == null ? null : {
- self: { instanceId: frame.instance.id, name: frame.instance.name },
- peers: [],
- syncStatus: null,
- },
- reviewCounts: c.reviewTotal == null ? null : { total: c.reviewTotal },
- notificationCounts: c.notificationsUnread == null ? null : { unread: c.notificationsUnread },
};
}
-// The full set of CityScene/CityHud props a snapshot frame can drive. The page
-// spreads these OVER the live props, so any prop NOT returned here (memoryGraph,
-// goals, jiraTickets, activityCalendar, productivityData, chronotype, etc.) keeps
-// its live value — the deliberate "freeze unfed landmarks at live" behavior.
-//
-// Returns null when the frame isn't playable (wrong/absent schemaVersion) so the
-// caller can keep showing live data and flag the frame.
-export function mergeFrameIntoCityProps(frame, live = {}) {
+// Historical numbers the snapshot captured that don't drive a 3D landmark (their
+// landmarks render from rich arrays and stay live). Surfaced as a readout in the
+// playback overlay so the captured counts/health are still visible while
+// scrubbing. Preserves null (unavailable at capture) vs a real number — the
+// overlay renders null as "—". Returns null for an unplayable frame.
+export function buildPlaybackStats(frame) {
if (!isPlayableFrame(frame)) return null;
- const apps = buildPlaybackApps(frame, live.apps);
- const agentMap = buildPlaybackAgentMap(frame, apps);
+ const c = frame.counts || {};
+ const h = frame.health || {};
return {
- apps,
- agentMap,
- ...deriveCountProps(frame),
+ cpuPercent: h.cpuPercent ?? null,
+ memPercent: h.memPercent ?? null,
+ diskPercent: h.diskPercent ?? null,
+ agentsActive: c.agentsActive ?? null,
+ tasksPending: c.tasksPending ?? null,
+ tasksInProgress: c.tasksInProgress ?? null,
+ peersOnline: c.peersOnline ?? null,
+ peersTotal: c.peersTotal ?? null,
+ reviewTotal: c.reviewTotal ?? null,
+ notificationsUnread: c.notificationsUnread ?? null,
};
}
diff --git a/client/src/lib/cityPlaybackFrame.test.js b/client/src/lib/cityPlaybackFrame.test.js
index 7594e7f490..faaeb246e0 100644
--- a/client/src/lib/cityPlaybackFrame.test.js
+++ b/client/src/lib/cityPlaybackFrame.test.js
@@ -4,6 +4,7 @@ import {
buildPlaybackApps,
buildPlaybackAgentMap,
mergeFrameIntoCityProps,
+ buildPlaybackStats,
SUPPORTED_SNAPSHOT_SCHEMA_VERSION,
} from './cityPlaybackFrame.js';
@@ -80,11 +81,33 @@ describe('buildPlaybackAgentMap', () => {
expect(map.has('a2')).toBe(false);
});
- it('returns an empty map when assignments are null', () => {
+ it('returns an EMPTY map for a real empty assignments array (no agents running)', () => {
const apps = buildPlaybackApps(frame(), liveApps);
- const map = buildPlaybackAgentMap(frame({ assignments: null }), apps);
+ const map = buildPlaybackAgentMap(frame({ assignments: [] }), apps, new Map([['x', {}]]));
expect(map.size).toBe(0);
});
+
+ it('falls back to the LIVE agentMap when assignments are null (failed capture)', () => {
+ const apps = buildPlaybackApps(frame(), liveApps);
+ const live = new Map([['a1', { app: liveApps[0], agents: [{ agentId: 'live-1' }] }]]);
+ const map = buildPlaybackAgentMap(frame({ assignments: null }), apps, live);
+ expect(map).toBe(live);
+ });
+});
+
+describe('buildPlaybackStats', () => {
+ it('surfaces captured numbers, preserving null vs real values', () => {
+ const s = buildPlaybackStats(frame());
+ expect(s).toMatchObject({ cpuPercent: 12, memPercent: 40, diskPercent: 55, agentsActive: 1, tasksPending: 2, tasksInProgress: 1, peersOnline: 1, peersTotal: 2, reviewTotal: 4 });
+ });
+ it('returns null fields when the capture recorded null', () => {
+ const s = buildPlaybackStats(frame({ health: { cpuPercent: null, memPercent: null, diskPercent: null }, counts: { reviewTotal: null } }));
+ expect(s.cpuPercent).toBeNull();
+ expect(s.reviewTotal).toBeNull();
+ });
+ it('returns null for an unplayable frame', () => {
+ expect(buildPlaybackStats(frame({ schemaVersion: 99 }))).toBeNull();
+ });
});
describe('mergeFrameIntoCityProps', () => {
@@ -92,34 +115,30 @@ describe('mergeFrameIntoCityProps', () => {
expect(mergeFrameIntoCityProps(frame({ schemaVersion: 99 }), { apps: liveApps })).toBeNull();
});
- it('maps counts/health/cos/backup/character into scene props', () => {
+ it('maps the faithfully-driveable scene props (apps/agentMap/cos/backup/character)', () => {
const props = mergeFrameIntoCityProps(frame(), { apps: liveApps });
+ expect(props.apps).toHaveLength(2);
+ expect(props.agentMap.get('a1').agents).toEqual([{ agentId: 'agent-1', status: 'running' }]);
expect(props.cosStatus).toMatchObject({ running: true, activeAgents: 1, stats: { tasksCompleted: 7 } });
expect(props.backupStatus).toEqual({ status: 'success', lastRun: '2026-06-05T00:00:00.000Z' });
- expect(props.systemHealth.system.cpu.usagePercent).toBe(12);
- expect(props.systemHealth.system.disk.usagePercent).toBe(55);
expect(props.character).toEqual({ level: 4 });
- expect(props.reviewCounts).toEqual({ total: 4 });
- expect(props.notificationCounts).toEqual({ unread: 3 });
- expect(props.instances.self).toEqual({ instanceId: 'inst-1', name: 'void' });
});
- it('passes null (not a fabricated 0) when a frame field was unavailable at capture', () => {
+ it('passes null (not a fabricated 0/empty) when cos/backup/character were unavailable at capture', () => {
const props = mergeFrameIntoCityProps(
- frame({ cos: null, backup: null, character: null, health: { cpuPercent: null, memPercent: null, diskPercent: null }, counts: { reviewTotal: null, notificationsUnread: null } }),
+ frame({ cos: null, backup: null, character: null }),
{ apps: liveApps },
);
expect(props.cosStatus).toBeNull();
expect(props.backupStatus).toBeNull();
expect(props.character).toBeNull();
- expect(props.systemHealth).toBeNull();
- expect(props.reviewCounts).toBeNull();
- expect(props.notificationCounts).toBeNull();
});
- it('does NOT return unfed landmark props, so the page leaves them at live values', () => {
+ it('does NOT return count-only / unfed landmark props, so the page leaves them at live values', () => {
const props = mergeFrameIntoCityProps(frame(), { apps: liveApps });
- for (const key of ['memoryGraph', 'goals', 'jiraTickets', 'activityCalendar', 'productivityData', 'chronotype']) {
+ // count-driven landmarks (freeze at live; their numbers go to the overlay instead)
+ // + rich-array landmarks the frame never captured.
+ for (const key of ['instances', 'systemHealth', 'reviewCounts', 'notificationCounts', 'cosTasks', 'memoryGraph', 'goals', 'jiraTickets', 'activityCalendar', 'productivityData', 'chronotype']) {
expect(props).not.toHaveProperty(key);
}
});
diff --git a/client/src/pages/CyberCity.jsx b/client/src/pages/CyberCity.jsx
index b8417184cb..e377f3d6e4 100644
--- a/client/src/pages/CyberCity.jsx
+++ b/client/src/pages/CyberCity.jsx
@@ -297,8 +297,8 @@ function CyberCityInner() {
// at live" behavior. Returns null for an unplayable frame → keep live.
const playbackProps = useMemo(() => {
if (!playback.active || !playback.currentFrame) return null;
- return mergeFrameIntoCityProps(playback.currentFrame, { apps });
- }, [playback.active, playback.currentFrame, apps]);
+ return mergeFrameIntoCityProps(playback.currentFrame, { apps, agentMap });
+ }, [playback.active, playback.currentFrame, apps, agentMap]);
const v = useCallback((key, live) => (playbackProps && key in playbackProps ? playbackProps[key] : live), [playbackProps]);
@@ -392,9 +392,11 @@ function CyberCityInner() {
<CityPlaybackOverlay
active={playback.active}
loading={playback.loading}
+ error={playback.error}
snapshots={playback.snapshots}
frameIndex={playback.frameIndex}
currentFrame={playback.currentFrame}
+ stats={playback.stats}
playing={playback.playing}
speed={playback.speed}
onSeek={playback.seek}