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.
Workspace layout (webview tabs, panel splits) does not persist across ah restarts, H web parity gap
Reported by Ray via gchat 2026-09-01: "all my webviews in the right panel are gone, that feels like a downgrade from H web where they always persisted." He is right, and it is structural, not a one-off.
Root cause, from the code: hd-proxy's workspace state is a process-local in-memory value and nothing ever writes it to disk or to carbon.
- src-tauri/crates/hydrogen-proxy/src/lib.rs:38:
static WORKSPACE: LazyLock<WorkspaceState>withworkspace: RwLock::new(Value::Null). - No save/load path exists anywhere in the crate or the frontend (grepped both; the only hits are the 3D molecule layout and the dock LED memo).
- Web Hydrogen persists the same layout server-side in carbon, which is why webview tabs survive there. ah replaced carbon's workspace API with hd-proxy but only kept the in-memory half.
So every HD restart rebuilds the default layout (VS Code + Wiki) and every webview tab the user added is silently dropped. An app update or image migration makes it look like the update ate their layout, which is exactly how Ray read it.
Proposed fix: persist the layout host-side at %APPDATA%\hydrogen-desktop\workspace-layout.json, debounced write on every layout mutation, load at proxy init. Host-side survives app updates AND image migrations (it is outside the distro). Carbon KV sync can come later for cross-machine parity; the file ends the data loss now. The existing panel-id re-resolve logic (hydrogen-proxy lib.rs:2048, "layout likely re-created after a restart") already handles stale panel ids, which is most of the restore risk.
Deliberately NOT jammed into 1.0.159 (that release is the dialog/Escape + first-run fixes); this needs its own tested change.