Repository navigation
Quit the running ChatGPT app before removing it - #18799
Conversation
The ChatGPT desktop app rewrites ~/.config/Codex for as long as it runs, so removing the package and deleting the directory while it is open left the app running and the directory recreated within the same second, even though the removal claimed success. Quit it first with `pkill -x chatgpt || true`, matching the Claude and Amp removers, before dropping the package and deleting its config and cache.
[Medium impact] This update appears safe to merge. SummaryUpdates
Reviews (2) · Last reviewed commit: "Quit ChatGPT by the name it runs under" · Reviewed by Greptile |
The /usr/bin/chatgpt launcher execs /usr/lib/chatgpt/ChatGPT, so the running process is named ChatGPT, and pkill -x matches case-sensitively: `pkill -x chatgpt` found nothing and the app kept rewriting ~/.config/Codex after the removal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Pushed 7d51f21 on top of this branch, so this is ready for the maintainer. What changed. What was proved, on a worker built from the Omarchy ISO. With Tests. This PR has no test and gets none. It is a one-word fix, and a test asserting that a stub receives Second opinion. Codex Medium reviewed the new commit and found no defects. It agreed that no test is warranted. Its agreement is not guaranteed to be independent. |
Removing ChatGPT while it is still open prints "ChatGPT has been removed." but leaves
~/.config/Codexbehind, because the running app recreates it as soon asbin/omarchy-remove-ai-chatgptdeletes it.Screenshots
Reproduce
ls ~/.config/Codexandls ~/.cache/Codex.~/.config/Codexback withcomponent_crx_cacheandBrowserMetrics-spare.pma, even though the package and~/.cache/Codexare gone.More cases
Direct CLI removal with ChatGPT running
Related