Codex Desktop Windows: Goal feature fails with "Failed to set goal" and "Failed to clear goal"
What version of the Codex App are you using (From “About Codex” dialog)?
26.519.31651
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
<img width="394" height="53" alt="Image" src="https://github.com/user-attachments/assets/dfe83289-32e1-4f50-85a7-a1517ac9cacf" />
<img width="562" height="46" alt="Image" src="https://github.com/user-attachments/assets/02c05ae5-a0c1-4dc6-a8c3-ee6179e24e5a" />
The new Goal feature in Codex Desktop does not work.
When I try to set a goal, the UI shows:
Failed to set goal
When I click X to clear the goal, the UI shows:
Failed to clear goal
The goal visually disappears after clicking X, but the operation still reports failure.
This started after I had authentication/login issues with Codex and ChatGPT. I tried logging out and back in through the CLI.
What I tried:
codex --logoutcodex login- restarted Codex Desktop
- killed all
Codex,codex,node, andnode_replprocesses - deleted/recreated:
C:\Users\quero\.codex\goals_1.sqliteC:\Users\quero\.codex\goals_1.sqlite-walC:\Users\quero\.codex\goals_1.sqlite-shm- checked SQLite integrity:
PRAGMA integrity_checkreturnsokthread_goalstable exists- database is not read-only
- Windows Apps → Codex → Repair/Reset did not fix it
Relevant local paths:
- Goal DB:
C:\Users\quero\.codex\goals_1.sqlite - Codex TUI log:
C:\Users\quero\codex\log\codex-tui.log - Desktop logs:
C:\Users\quero\AppData\Local\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs
Expected behavior:
Setting a goal should persist the goal for the current thread.
Clearing a goal should clear it without showing an error.
Actual behavior:
Both set and clear operations show failure messages.
What steps can reproduce the bug?
- Open Codex Desktop on Windows 11.
- Open any existing or new thread.
- Click the Goal control.
- Enter any goal text, for example:
Improve this app UI. - Submit/save the goal.
- Observe: Codex shows
Failed to set goal. - Click X to clear/disable the goal.
- Observe: Codex shows
Failed to clear goal.
This happens even after restarting Codex, logging out/in with codex --logout and codex login, and recreating goals_1.sqlite.
What is the expected behavior?
Setting a goal should persist it for the current thread without an error.
Clearing a goal should remove it without an error.
The Goal UI state should match the persisted state in the local goals database.
Additional information
Local goal database was recreated and appears valid:
C:\Users\quero\.codex\goals_1.sqlitePRAGMA integrity_checkreturnsokthread_goalstable exists- database files are not read-only
Relevant logs/paths:
C:\Users\quero\.codex\log\codex-tui.logC:\Users\quero\AppData\Local\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs
The issue appeared after login/auth problems with Codex and ChatGPT, but relogging did not fix it.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗