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 (codex): drop no-op post-processing settings after removing CityEffects

[._.]/ Adam Eivya0cb99ee22f8
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 7bfa6efb24..378cdc0ae6 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -26,5 +26,5 @@
## Fixed
- **City daytime sky no longer washes out to white; night reads as a galaxy backdrop** — The bright-day sky and pavement were tuned so light, so the dome and ground turned into a near-white fog sheet over the city; daytime now keeps real blue in the horizon bands and a muted blue-gray street so the city stays legible in full sun. At night the bundled galaxy map is the backdrop (with an inner horizon wall so the star band stays visible behind the down-tilted default camera), the shader sky-dome gets out of the way, and the moon is a smaller, softer disc instead of an over-bright bloom. The experimental "Dreamworld" sky-theme picker (and its drifting clouds) has been removed — the City now has one canonical look that follows your theme's day/night mode; any previously-saved Dreamworld setting falls back to it automatically.
-- **City no longer flashes a blank white scene when the GPU drops the WebGL context** — Heavy post-processing plus an always-on frame-readback buffer made Chromium lose the City's WebGL context easily, leaving a white canvas with no recovery. The readback buffer is now only enabled while taking a postcard, the render resolution is capped to keep the context stable, and a lost context is detected and either recovered on restore or surfaced over the page background instead of a white void. Known THREE.js deprecation and expected context-loss console messages are also filtered out so the browser console stays usable.
+- **City no longer flashes a blank white scene when the GPU drops the WebGL context** — Heavy post-processing plus an always-on frame-readback buffer made Chromium lose the City's WebGL context easily, leaving a white canvas with no recovery. The readback buffer is now only enabled while taking a postcard, the render resolution is capped to keep the context stable, and a lost context is detected and either recovered on restore or surfaced over the page background instead of a white void. Known THREE.js deprecation and expected context-loss console messages are also filtered out so the browser console stays usable. With the post-processing pass gone, the City settings panel drops the now-inert Bloom, Film Grain, Chromatic Aberration, Color Grading, and Exposure controls so nothing toggles an effect that no longer renders.
- **Browser download keep-alive no longer spams JSON-parse errors** — The browser service's CDP keep-alive treated any `200 OK` on its DevTools port as a live Chrome endpoint and called `res.json()` on it unconditionally. When another process answers on that port with HTML (e.g. the Vite dev server auto-incrementing onto it), the parse threw `Unexpected token '<', "<!DOCTYPE "...`, which the reconnect loop logged every 2 seconds. The CDP check now validates the response is actually Chrome's JSON (`webSocketDebuggerUrl` present) and treats anything else as "not reachable." Separately, the Vite dev server now uses `strictPort` so it fails loudly instead of silently walking up onto a reserved PortOS port (5555 API, 5556 browser CDP).
diff --git a/client/src/components/city/CitySettingsPanel.jsx b/client/src/components/city/CitySettingsPanel.jsx
index 257fc34a09..9cd1c9f565 100644
--- a/client/src/components/city/CitySettingsPanel.jsx
+++ b/client/src/components/city/CitySettingsPanel.jsx
@@ -167,45 +167,13 @@ export default function CitySettingsPanel() {
{/* Visual Effects */}
<div>
- <SectionHeader title="VISUAL FX" subtitle="Post-processing and atmosphere" />
- <SettingToggle
- label="BLOOM"
- value={settings.bloomEnabled}
- onChange={(v) => updateSetting('bloomEnabled', v)}
- description="Glowing light bloom around bright surfaces"
- />
- {settings.bloomEnabled && (
- <SettingSlider
- label="STRENGTH"
- value={settings.bloomStrength}
- onChange={(v) => updateSetting('bloomStrength', v)}
- description="Intensity of the bloom glow effect"
- />
- )}
+ <SectionHeader title="VISUAL FX" subtitle="Reflections and atmosphere" />
<SettingToggle
label="REFLECTIONS"
value={settings.reflectionsEnabled}
onChange={(v) => updateSetting('reflectionsEnabled', v)}
description="Wet street reflections and puddles"
/>
- <SettingToggle
- label="CHROMATIC ABERRATION"
- value={settings.chromaticAberration}
- onChange={(v) => updateSetting('chromaticAberration', v)}
- description="Color fringing at screen edges"
- />
- <SettingToggle
- label="FILM GRAIN"
- value={settings.filmGrain}
- onChange={(v) => updateSetting('filmGrain', v)}
- description="Subtle animated noise overlay"
- />
- <SettingToggle
- label="COLOR GRADING"
- value={settings.colorGrading}
- onChange={(v) => updateSetting('colorGrading', v)}
- description="Cinematic color correction"
- />
<SettingToggle
label="SCANLINES"
value={settings.scanlineOverlay}
@@ -228,16 +196,6 @@ export default function CitySettingsPanel() {
{/* Scene Lighting */}
<div>
<SectionHeader title="SCENE LIGHTING" subtitle="Brightness and time of day" />
- <SettingSlider
- label="EXPOSURE"
- value={settings.sceneExposure ?? 1.0}
- onChange={(v) => updateSetting('sceneExposure', v)}
- min={0.5}
- max={2.5}
- step={0.1}
- format={(v) => `${v.toFixed(1)}x`}
- description="Post-bloom exposure adjustment — darkens or brightens assets without adding bloom"
- />
<SettingSlider
label="AMBIENT BRIGHTNESS"
value={settings.ambientBrightness}
diff --git a/client/src/hooks/useCitySettings.js b/client/src/hooks/useCitySettings.js
index 65f8cb3a31..c3bc32185d 100644
--- a/client/src/hooks/useCitySettings.js
+++ b/client/src/hooks/useCitySettings.js
@@ -7,43 +7,31 @@ export const TIME_OF_DAY_AUTO_EVENT = 'portos-city-timeofday-auto';
const QUALITY_PRESETS = {
low: {
- bloomEnabled: false, bloomStrength: 0,
- reflectionsEnabled: false, chromaticAberration: false,
- filmGrain: false, colorGrading: false,
+ reflectionsEnabled: false,
particleDensity: 0.5, scanlineOverlay: false,
ambientBrightness: 1.0,
neonBrightness: 1.0,
- sceneExposure: 1.0,
dpr: [1, 1],
},
medium: {
- bloomEnabled: true, bloomStrength: 0.3,
- reflectionsEnabled: true, chromaticAberration: false,
- filmGrain: false, colorGrading: true,
+ reflectionsEnabled: true,
particleDensity: 0.75, scanlineOverlay: true,
ambientBrightness: 1.0,
neonBrightness: 1.0,
- sceneExposure: 1.0,
dpr: [1, 1.25],
},
high: {
- bloomEnabled: true, bloomStrength: 0.5,
- reflectionsEnabled: true, chromaticAberration: true,
- filmGrain: true, colorGrading: true,
+ reflectionsEnabled: true,
particleDensity: 1.0, scanlineOverlay: true,
ambientBrightness: 1.2,
neonBrightness: 1.2,
- sceneExposure: 1.0,
dpr: [1, 1.25],
},
ultra: {
- bloomEnabled: true, bloomStrength: 0.7,
- reflectionsEnabled: true, chromaticAberration: true,
- filmGrain: true, colorGrading: true,
+ reflectionsEnabled: true,
particleDensity: 1.5, scanlineOverlay: true,
ambientBrightness: 1.5,
neonBrightness: 1.5,
- sceneExposure: 1.2,
dpr: [1, 1.5],
},
};