fix(desktop): stop the main window growing taller on every launch (#9409)

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
This commit is contained in:
Asish Kumar
2026-05-26 21:49:22 +05:30
committed by GitHub
parent 27dc0d5f83
commit dcdc7f645b
+4 -1
View File
@@ -868,6 +868,10 @@ const createChat = async (app: App, options: CreateChatOptions = {}) => {
trafficLightPosition: process.platform === 'darwin' ? { x: 20, y: 16 } : undefined,
vibrancy: process.platform === 'darwin' ? 'window' : undefined,
frame: process.platform !== 'darwin',
// windowStateKeeper persists the outer window bounds (getBounds), so the
// window must be restored by outer bounds too. With useContentSize the saved
// outer height is reapplied as the content height, growing the window by the
// frame height on every launch on framed platforms (#9363).
x: mainWindowState.x,
y: mainWindowState.y,
width: mainWindowState.width,
@@ -875,7 +879,6 @@ const createChat = async (app: App, options: CreateChatOptions = {}) => {
minWidth: 480,
minHeight: 400,
resizable: true,
useContentSize: true,
icon: path.join(__dirname, '../images/icon.icns'),
webPreferences: {
spellcheck: settings.spellcheckEnabled ?? true,