janhq / jan

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer. Multiple engine support (llama.cpp, TensorRT-LLM)
https://jan.ai/
GNU Affero General Public License v3.0
23.3k stars 1.35k forks source link

bug: Jan application window unusable if last window position is outside monitor resolution [Windows 11] #3691

Closed MrKietho closed 3 weeks ago

MrKietho commented 1 month ago

Jan version

0.5.3 and 0.5.4

Describe the Bug

On Windows 11, when Jan is opened after disconnecting from a multi-monitor setup where Jan was not on the primary screen, the window does not show on screen and Jan cannot be used by moving the window back to the primary screen. The last used window location seems to be saved in %appdata%/Jan/config.json within the windowBounds x and y property. If these values fall outside the resolution of the current monitor setup, Jan cannot be opened, in my experience.

Steps to Reproduce

  1. Close Jan
  2. Open %appdata%/Jan/config.json file
  3. Change the x or y values of the windowBounds property outside of the resolution of your current monitor setup
  4. Save and close the file
  5. Open Jan

Screenshots / Logs

No response

What is your OS?

MrKietho commented 1 month ago

Normally you would expect to be able to move the window with Win key + arrows for example, but this also does not seem to work.

imtuyethan commented 1 month ago

I cannot reproduce this on my end. cc @urmauur to take a look instead.

prilosac commented 1 month ago

I am also having this issue and came to report it. Just wanted to add evidence that it's happening to more than one user