macOS: ChatGPT/Codex Dock icon position resets after every app update

Open
#35,488 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
macos, rust

Research direction

Start with the update/migration startup path and the bundled launch-services-helper entry points named in the report: needs-renamed-dock-tile-repair and repair-renamed-dock-tile. Reproduce an update with ChatGPT pinned away from the leftmost Dock position, then inspect how persistent-apps is rewritten. Done means the renamed or repaired tile retains its original Dock array index across updates.

Written by the indexing model from the issue text.

Description

app bug
What version of the Codex App are you using (From “About Codex” dialog)?

ChatGPT/Codex Desktop 26.721.41059 (build 5848)

Installed bundle:

/Applications/ChatGPT.app
CFBundleDisplayName: ChatGPT
CFBundleIdentifier: com.openai.codex
What subscription do you have?

Not relevant to this local macOS Dock/update issue.

What platform is your computer?

macOS 26.5.2 (build 25F84)

What issue are you seeing?

After every ChatGPT/Codex desktop app update and the first relaunch, the pinned app icon is moved to the far-left position in the macOS Dock.

Manually moving the icon back to the desired position works only until the next app update. Ordinary relaunches after the update do not appear to reproduce the move; it is tied to the update/migration path.

Local checks show:

  • There is only one installed copy: /Applications/ChatGPT.app.
  • No duplicate Codex.app or ChatGPT Classic.app exists.
  • The Dock has only one ChatGPT entry.
  • The Dock entry uses bundle identifier com.openai.codex and URL file:///Applications/ChatGPT.app/.

The installed app contains an explicit renamed-Dock-tile repair path. Its startup code checks needs-renamed-dock-tile-repair, temporarily switches the activation policy to accessory, invokes repair-renamed-dock-tile, and then restores the regular activation policy.

The bundled native launch-services-helper directly references com.apple.dock, persistent-apps, and symbols including:

needsRenamedDockTileRepair
repairRenamedDockTile
renamedDockTileRepairCandidate
matchesLegacyPersistentTile
_RunRenamedDockTileTransaction
_DIAddFile
IFActionsDock

After the migration has run, this read-only check returns false:

launch-services-helper needs-renamed-dock-tile-repair /Applications/ChatGPT.app

This strongly suggests that the renamed Dock tile repair rewrites or re-adds the persistent Dock tile but does not preserve the tile's original array index, causing macOS to place it at the far-left position.

What steps can reproduce the bug?
  1. Pin ChatGPT/Codex in any non-leftmost Dock position.
  2. Install a desktop app update.
  3. Allow the app to relaunch after the update.
  4. Observe that the ChatGPT/Codex Dock icon has moved to the far-left position.
  5. Move it back manually.
  6. Install the next update and observe the same reset again.
What is the expected behavior?

The update/rename repair should preserve the existing Dock tile's user-selected position.

If the repair must replace the tile, it should capture the original index in persistent-apps and insert the repaired tile at that same index instead of adding it at the beginning.

Additional information

The app update time and Dock preference rewrite were consistent with this sequence during diagnosis:

  • App updated: July 25, 2026 at approximately 05:57 local time.
  • Dock preferences rewritten: July 26, 2026 at approximately 11:28 local time.

Related migration reports:

  • #31866 — self-update removed Codex.app and left stale Dock state.
  • #31961 — migration left a stale Notification Center path.
  • #32022 — migration left the unified app missing from Launchpad.

This report is narrower: the migrated app exists and works, but every subsequent update resets the Dock tile position.

Posted by Codex at the affected user's direction after the local Dock record, bundle identity, installed-app count, and bundled repair path were inspected.

Dominant language
Rust
Stars
125k
Forks
19.5k
Avg merge
1m
Merged PRs (30d)
1k

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.