[Linux][Pets] Floating desktop pet jitters and jumps during rapid back-and-forth dragging
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 (From “About Codex” dialog)?
26.901.31953 (installed Linux chatgpt package version).
What subscription do you have?
Not specified.
What platform is your computer?
- Ubuntu 26.04.1 LTS, x86_64
- GNOME Shell 50.1
- Wayland desktop session
uname -mprs:Linux 7.0.0-31-generic x86_64 unknown
What issue are you seeing?
When I grab the floating desktop pet and move it quickly left and right, it jitters and suddenly jumps to other positions instead of following the pointer smoothly.
What steps can reproduce the bug?
- Show the floating desktop pet in the ChatGPT/Codex desktop app.
- Press and hold the pet to drag it.
- Move the pointer quickly left and right, repeatedly reversing direction while holding the button.
- Observe the pet jittering and abruptly jumping during the drag.
What is the expected behavior?
The pet should follow the pointer smoothly and keep a stable grab offset. Any shake animation should stay around the intended drag position without making the pet drift or jump away.
Additional information
I maintain a separate native Linux desktop-pet project that uses three approaches which may be useful here:
- Keep a stable drag anchor. Save the grab offset when the mouse button goes down, then calculate the intended window position from the global pointer position minus that offset, using consistent coordinate units.
- Apply the latest movement once per tick. Keep only the latest pending drag target rather than moving the window for every pointer event.
- Avoid accumulating shake offsets. Apply each visual shake offset to the intended drag anchor, rather than adding it to an already displaced window position.
I hope these details help with tracking down the bug. Thanks for looking into it!
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
No source files or tests are named. First reproduce the drag on Ubuntu 26.04.1 under GNOME Wayland while rapidly reversing direction, then locate the Linux floating-pet drag handling and trace pointer coordinates, grab offset, and shake behavior. Done means the pet follows smoothly without jumping and preserves a stable grab offset.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, rust
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100