Skip to content

Chat window cannot be restored from the menu after it is minimized #181

Open

Description

@iis-MarkKuang

myCat version

0.1.38, from the source checkout (commit 3d509db, before the fix)

Installation method

source (pip install -e ., then mycat)

Operating system

macOS 15.5 (Darwin 24.5.0)

Steps to reproduce

  1. Start myCat with LLM chat enabled.
  2. Right-click the cat and choose Chat.
  3. Click the chat window's minimize button.
  4. Right-click the cat and choose Chat again.

Expected and actual result

Expected: the chat window comes back beside the cat.

Actual: it does not. The chat dialog is parented to the cat window, so minimizing it leaves no Dock icon of its own. Qt still reports the minimized window as visible, and the Chat menu treats that as "already open" and hides it. A later show() does not clear the minimized state, so the panel cannot be opened again. The process keeps running and the log has no exception.

Logs or screenshots (optional)

No traceback. Screen capture of the desktop did not include the always-on-top chat window, so there is no useful screenshot.

Activity

  1. iis-MarkKuang commented on Nov 3, 2026

    @iis-MarkKuang
    Author

    Fixed by #180.

  2. fabianleonaressi95 commented on Nov 5, 2026

    @fabianleonaressi95

    hi, I'd like to help verify the fix associated with PR #180.

    In particular, I suggest checking the following regression scenarios:

    1. Minimize the chat window and restore it from the tray/menu.
    2. Repeat the minimize/restore cycle several times.
    3. Restore the window while the main character window is still visible.
    4. Verify that restoring the chat does not unexpectedly reposition it.
    5. Verify that closing or hiding the chat still behaves correctly after restoration.
    6. Check that the restored window retains its expected size and visibility state.

    If these cases are not already covered, I can contribute focused regression tests for the window state transitions.

    Has anyone tested this sequence on Linux, in addition to the existing offscreen Qt test suite?

  3. iis-MarkKuang commented on Nov 5, 2026

    @iis-MarkKuang
    Author

    Recorded the manual check on this Mac (macOS 15.8.2, mycat 0.1.38 from this branch).

    Sequence: open Chat from the cat's menu, minimize with the yellow window button, open Chat again, repeat that once, then close with the red button. The cat stayed visible the whole time.

    After each minimize the chat window left the screen. It does not get its own Dock icon, because the dialog belongs to the cat window. Choosing Chat brought it back both times, at the same place and size: 919,258, 360×448, delta 0. Close hid it again.

    Chat minimize and restore on macOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions