You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Window position/size settings are not saved on multi-monitor setup (Tauri window state bug) #47534
The desktop application does not remember its size and position on a multi-monitor setup. On every launch, it ignores the saved coordinates in .window-state.json and opens on the wrong display or expands beyond the monitor screen boundaries.
This appears to be a known initialization race condition with tauri-plugin-window-state where the window initializes before reading the config.
Steps to Reproduce
Use a dual-monitor setup (Laptop + external display, with the external display set as primary).
Open OpenCode, move it to the left half of the external monitor, and close the app.
Reopen the app.
Expected Behavior
The window should accurately restore its position on the left half of the external monitor according to the .window-state.json file.
Actual Behavior
The application ignores the config (even if set to Read-only), resets isMaximized flags arbitrarily, and opens on the laptop screen or randomly across monitors.
Thanks for reporting the window-position problem on your dual-monitor Windows setup. In v2, the desktop app uses Electron rather than Tauri and reads the saved position and size before creating the window, retaining coordinates that fit an attached display. v1 now receives only critical fixes; please update the desktop app, or install the v2 CLI with npm i -g @opencode/cli@latest. If window placement still fails on v2, please open a new issue with your version and monitor layout.
Activity
neriousy commentedon Oct 20, 2026
Thanks for reporting the window-position problem on your dual-monitor Windows setup. In v2, the desktop app uses Electron rather than Tauri and reads the saved position and size before creating the window, retaining coordinates that fit an attached display. v1 now receives only critical fixes; please update the desktop app, or install the v2 CLI with
npm i -g @opencode/cli@latest. If window placement still fails on v2, please open a new issue with your version and monitor layout.