Persist window size and last camera preset (#69, #70)#71
Merged
Conversation
Issue #69 — the controller body window now reopens at the size it was last left, with a clean 720×540 default for the single-controller mode so the user can frame it once for OBS and just hit "start recording" next time. Size is stored per mode (single/multi) in a small JSON file under userData, saved on resize (debounced) and on close, and sanity-checked on load so a corrupt or out-of-range value falls back to the default. Issue #70 — the selected camera preset (Front/Back/Left/Right/Player/Top) is persisted to localStorage and restored on launch, so reopening the overlay returns to the user's preferred view (e.g. Top) instead of always resetting to Player. The saved value is validated against the known preset list and re-applied to the 3D view once the overlay finishes initializing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017NiS2a4jZ877XgftkH1Dd1
…69-70-jrdy9p # Conflicts: # apps/overlay/electron/main.js
This was referenced Jun 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #69 and #70.
#69 — Save the last window size (default 720×540)
apps/overlay/electron/main.jswindow-state.jsonunder Electron'suserData), keyed per mode (single / multi) so the two layouts don't clobber each other.sanitizeSizeguard rejects corrupt / out-of-range values and falls back to the mode's default.#70 — Save the last camera position selected
apps/overlay/src/js/app.jslocalStorage(overlay:cameraPreset) on every pick, validated against the known list (front/back/left/right/player/top), and restored on launch.Testing
npm test— all 85controller-coretests pass.node --checkpasses on both modified files.Scope note
#70 is scoped to the main overlay — the multi-player demo (
multi-app.js) has no camera presets, so nothing changed there.🤖 Generated with Claude Code
https://claude.ai/code/session_017NiS2a4jZ877XgftkH1Dd1
Generated by Claude Code