lencx / ChatGPT

🔮 ChatGPT Desktop Application (Mac, Windows and Linux)
https://nofwl.com
52.36k stars 5.89k forks source link

[Bug] Window resizing after prolonged inactivity for several hours #313

Open reorx opened 1 year ago

reorx commented 1 year ago

Version

0.10.3

Bug description

The default window size is too small for my preference, so I regularly resize it to a larger size after launching the application. However, after prolonged inactivity for a few hours, I've noticed that the window resets back to the default size randomly, usually once or twice a day. I've determined that this was not due to any manual changes I made or application restarts. Attached are the logs from the most recent occurance of the automatic window size reset.

[2023-02-03][15:02:48][chatgpt::utils][INFO] run_check_update: silent=false has_msg=None
[2023-02-03][15:02:48][attohttpc][DEBUG] trying to connect to lencx.github.io:443
[2023-02-03][15:02:48][attohttpc][DEBUG] DNS returned only one address, using fast path
[2023-02-03][15:02:49][attohttpc][DEBUG] GET /ChatGPT/install.json HTTP/1.1
[2023-02-03][15:02:49][attohttpc][DEBUG] creating a length body reader
[2023-02-03][15:02:49][attohttpc][DEBUG] creating gzip decoder
[2023-02-03][15:02:49][attohttpc][DEBUG] status code 200
[2023-02-03][15:02:49][chatgpt::utils][INFO] prompt_for_install
[2023-02-03][15:02:52][attohttpc][DEBUG] trying to connect to github.com:443
[2023-02-03][15:02:52][attohttpc][DEBUG] DNS returned only one address, using fast path
[2023-02-03][15:02:52][attohttpc][DEBUG] GET /lencx/ChatGPT/releases/download/v0.10.3/ChatGPT.app.tar.gz HTTP/1.1
[2023-02-03][15:02:53][attohttpc][DEBUG] creating a length body reader
[2023-02-03][15:02:53][attohttpc][DEBUG] creating plain reader
[2023-02-03][15:02:53][attohttpc][DEBUG] status code 302
[2023-02-03][15:02:53][attohttpc][DEBUG] redirected to https://objects.githubusercontent.com/github-production-release-asset-2e65be/575340621/53e67ac2-0d
1c-4702-b828-a268e0cfa49d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230203%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20
230203T150252Z&X-Amz-Expires=300&X-Amz-Signature=0695858a6c4facff8ab9704c9a01cd1e8ff485d7dfb89806c39852b65e1ffb98&X-Amz-SignedHeaders=host&actor_id=0&key
_id=0&repo_id=575340621&response-content-disposition=attachment%3B%20filename%3DChatGPT.app.tar.gz&response-content-type=application%2Foctet-stream givin
g url https://objects.githubusercontent.com/github-production-release-asset-2e65be/575340621/53e67ac2-0d1c-4702-b828-a268e0cfa49d?X-Amz-Algorithm=AWS4-HM
AC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230203%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230203T150252Z&X-Amz-Expires=300&X-Amz-Signature=
0695858a6c4facff8ab9704c9a01cd1e8ff485d7dfb89806c39852b65e1ffb98&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=575340621&response-content-disposit
ion=attachment%3B%20filename%3DChatGPT.app.tar.gz&response-content-type=application%2Foctet-stream
[2023-02-03][15:02:53][attohttpc][DEBUG] trying to connect to objects.githubusercontent.com:443
[2023-02-03][15:02:53][attohttpc][DEBUG] DNS returned only one address, using fast path
[2023-02-03][15:02:53][attohttpc][DEBUG] GET /github-production-release-asset-2e65be/575340621/53e67ac2-0d1c-4702-b828-a268e0cfa49d?X-Amz-Algorithm=AWS4-
HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230203%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230203T150252Z&X-Amz-Expires=300&X-Amz-Signatur
e=0695858a6c4facff8ab9704c9a01cd1e8ff485d7dfb89806c39852b65e1ffb98&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=575340621&response-content-dispos
ition=attachment%3B%20filename%3DChatGPT.app.tar.gz&response-content-type=application%2Foctet-stream HTTP/1.1
[2023-02-03][15:02:54][attohttpc][DEBUG] creating a length body reader
[2023-02-03][15:02:54][attohttpc][DEBUG] creating plain reader
[2023-02-03][15:02:54][attohttpc][DEBUG] status code 200
[2023-02-03][15:02:57][chatgpt::app::setup][INFO] stepup
[2023-02-03][15:02:57][chatgpt::app::setup][INFO] global_shortcut: ``
[2023-02-03][15:02:57][chatgpt::app::setup][INFO] stepup_tray
[2023-02-03][15:02:57][chatgpt::app::setup][ERROR] global_shortcut_parse_error: [AcceleratorParseError]: Unexpected empty token while parsing accelerator
[2023-02-03][15:02:57][chatgpt::app::setup][INFO] run_check_update
[2023-02-03][15:02:57][chatgpt::app::setup][INFO] main_window: https://chat.openai.com
[2023-02-03][15:02:57][chatgpt::utils][INFO] run_check_update: silent=false has_msg=None
[2023-02-03][15:02:57][attohttpc][DEBUG] trying to connect to lencx.github.io:443
[2023-02-03][15:02:57][attohttpc][DEBUG] DNS returned only one address, using fast path
[2023-02-03][15:02:57][attohttpc][DEBUG] GET /ChatGPT/install.json HTTP/1.1
[2023-02-03][15:02:57][attohttpc][DEBUG] creating a length body reader
[2023-02-03][15:02:57][attohttpc][DEBUG] creating gzip decoder
[2023-02-03][15:02:57][attohttpc][DEBUG] status code 200
[2023-02-04][14:39:48][chatgpt::app::setup][INFO] stepup
[2023-02-04][14:39:48][chatgpt::app::setup][INFO] global_shortcut: ``
[2023-02-04][14:39:48][chatgpt::app::setup][ERROR] global_shortcut_parse_error: [AcceleratorParseError]: Unexpected empty token while parsing accelerator
[2023-02-04][14:39:48][chatgpt::app::setup][INFO] run_check_update
[2023-02-04][14:39:48][chatgpt::utils][INFO] run_check_update: silent=false has_msg=None
[2023-02-04][14:39:48][chatgpt::app::setup][INFO] stepup_tray
[2023-02-04][14:39:48][chatgpt::app::setup][INFO] main_window: https://chat.openai.com
[2023-02-04][14:39:48][attohttpc][DEBUG] trying to connect to lencx.github.io:443
[2023-02-04][14:39:48][attohttpc][DEBUG] DNS returned only one address, using fast path
[2023-02-04][14:39:48][attohttpc][DEBUG] GET /ChatGPT/install.json HTTP/1.1
[2023-02-04][14:39:48][attohttpc][DEBUG] creating a length body reader
[2023-02-04][14:39:48][attohttpc][DEBUG] creating gzip decoder
[2023-02-04][14:39:48][attohttpc][DEBUG] status code 200

OS

macOS 13.1 (22C65)

Environment

No response

lencx commented 1 year ago

The next version can add a configuration item to set the default window size.