[macOS][Pets] Pet becomes invisible after lock/unlock on a three-display setup (26.911.61220)
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What version of the Codex App are you using?
26.911.61220 (build 9647), as reported by the installed desktop app's Info.plist. The installed bundle is named ChatGPT.app (com.openai.codex).
What subscription do you have?
Not collected for this report.
What platform is your computer?
macOS 26.6.2 (25G83), with three displays: a built-in display and two external displays, one in portrait orientation. External displays extend above the built-in display in the desktop arrangement.
What issue are you seeing?
The desktop pet repeatedly becomes invisible after locking and unlocking macOS. The owner reports this happens on each lock/unlock cycle. During inspection after an affected cycle, the pet was absent from screenshots of all three displays, but its native overlay window still existed. Moving that window restored the rendered pet.
This may be another reproduction of #43404, specifically triggered by lock/unlock and still occurring on build 9647. Please merge/close as a duplicate if the underlying issue is the same.
What steps can reproduce the bug?
- Use the desktop app with the three-display arrangement described above.
- Enable the desktop pet and place it where it is visible.
- Lock macOS, then unlock and return to the desktop.
- Observe that the pet is no longer visible on any display.
- Manually reposition the existing pet overlay window; the pet renders again. The owner reports that a subsequent lock/unlock brings the problem back.
The exact lock duration and whether each occurrence includes system sleep were not recorded.
What is the expected behavior?
The pet remains visible on its intended display/Space after unlocking, without manual window repositioning.
Additional information
Observed native window geometry during one affected state, in macOS accessibility coordinates:
pet overlay: x=1180, y=-1437, width=772, height=5029
main window: x=1799, y=-863, width=1441, height=1265
Moving only the overlay to x=2130, y=-3380, while retaining its dimensions, made the pet visible on the portrait display. The large transparent window size alone is not proof of a bug; it may be intentional drawing padding. The useful observation is that repositioning the existing window restored visibility without changing pet assets or restarting the application.
Inspection of the shipped bundle found that the avatar overlay listens for suspend/resume and display changes. Its local power-monitor registration did not include lock-screen/unlock-screen. This is an investigation lead only: other application-level handlers may exist, and missing lock/unlock listeners have NOT been established as the root cause. Native window geometry and display/Space association are also plausible factors, especially given #43404.
A local polling workaround was installed after the observations above, but it has not passed a controlled lock/unlock regression test and should not be treated as a confirmed fix. No application bundle or pet assets were modified.
Screenshots are omitted because the desktops contain private work. No session content or credentials are included.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the lock/unlock cycle with the three-display arrangement and inspect the avatar overlay's suspend/resume, display-change, and power-monitor handlers. Compare the overlay's window geometry and display/Space association before and after unlocking, while checking whether issue #43404 covers the same path. Done means the pet remains visible after repeated lock/unlock cycles without manual repositioning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos
- Domain
- desktop-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100