Adom Hydrogen
Public Made by Adomby adom
The whole Adom experience as one signed native app: your editor, your AI agent, and the full electronics design toolchain, running locally on your own machine.
HD update-restart brings VS Code up in a light theme despite settings.json = 'Dark 2026' (dark-default violation)
Type: Bug report
Symptom: After restarting HD to apply an app update (2026-07-31, new build 458c322, built 8:34 AM), the VS Code workspace came up in a light theme. The user had to switch it back to dark by hand. This violates Adom's dark-by-default principle: a fallback should never be light.
What the workspace state shows (inspected in the container):
- The user's setting is correct and was never changed to light:
~/.local/share/code-server/User/settings.jsonhas"workbench.colorTheme": "Dark 2026". Its only local-history snapshot also reads"Dark 2026". So this was not a settings reset. - Both
Dark 2026and a siblingLight 2026are built-in themes in this code-server build (1.124.2), shipped by the bundledtheme-defaultsextension (vs-darkandvs). Being built-in,Dark 2026needs no third-party extension to resolve, so a missing extension is not the cause. - The
adom.adom-vscodeextension was intact (unchanged since Jul 27) and the workspace-updater did not run. So nothing in the workspace was reinstalled. This was the HD app update reloading code-server, not a workspace change. product.jsonsets no forced default color theme (only anonboardingThemespicker list), so an unset theme falls to VS Code's compiled default.
What this points to: HD's update-restart reloads the code-server iframe (the same full workbench reload seen on sleep/resume, #60). On that reload VS Code did not apply the configured Dark 2026 from settings and painted a light theme instead, and it stuck until the user reselected dark. The user's setting was correct the whole time, so the theme the workbench applied came from cleared/booted state, not from settings.json.
The exact internal step that failed is not fully provable after the fact: the pre-reload workbench state that would show it lives in the WebView2 store and is gone. The confirmed part is that a correct Dark 2026 setting plus a built-in Dark 2026 theme still rendered light after an HD-update reload.
Asks:
- Never fall back to light. Per dark-default, if the workbench boots without a resolved theme, the fallback must be a dark theme (
Dark 2026), notLight 2026or a light default. - Preserve or reassert the theme across an update-restart. Either keep the code-server workbench state through the reload so the applied theme survives, or after the reload force-apply
workbench.colorThemefromsettings.json(which was correct here) so a boot race cannot leave the user on the wrong theme. - Since this rides the same full-workbench-reload path as the sleep/resume session loss (#60), a general fix that preserves workbench state across HD-driven reloads would address both.
Env: HD build 458c32216028151df03955b3c9f0e822c4dd7535 (Jul 31 8:34 AM), code-server 1.124.2, settings intact at Dark 2026.