You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
/goal slash command does not work in 0.128.0 #20591
This feature is still under development and is not generally ready for external use. We are testing and refining it internally, and we'll mark it as experimental in the next release. At that point, you'll be able to use the /experimental slash command to enable it.
Exactly same issue on codex-cli 0.128.0 even though I have enabled this from the experimental features. Weird part is that it worked for prompt with shorter text / single sentence. However, keeps failing continuosly even in new chat if I provide it a longer text of a plan I had made.
For now, I just saved the longer plan in file and asked it to work like /goal Read the complete development instructions as per -> "....md" and finalize.
I am not sure what you mean by failure mode. However, below is more context:
Tried multiple times keep happening
Occurs even after creating an entirely fresh session
Since normally, the /goal works. I expected something to be wrong with the text contents I am pasting after /goal. So I created a random markdown file with similar characters / lines my original plan had and it produced same error.
I have attached the markdown file as well whose content when pasted into the TUI produces the same error.
Appears to be some issue with the length of input character.
@weibeu, thanks for clarifying. The goal prompt cannot be that large. I will look at improving the error message. For a task like this, you should put the task description in a file, then refer to the file in the goal definition: /goal Implement the feature described in my_spec.md.
I get this same error with the goals = true config active, and a short prompt. v0.128.0, linux. Failed to read thread goal: thread/goal/get failed in TUI
@tonydavis629, yeah good call. I'm guessing that your state db was corrupted. By any chance, have you built Codex from source and/or run a custom fork at some point?
@etraut-openai no I haven't. I got the same issue again, but again I was able to resolve it by deleting the .codex folder. So seems like something in there is not cooperating with the /goal feature.
If you're able to repro, please open a new issue, use /feedback and post the session ID. That will give me access to your logs so I can diagnose. Thanks!
If it happens again, you can probably fix by simply renaming the ~/.codex/state_5.sqlite db file. That will be less painful than regenerating the entire .codex directory.
Reacted by Tony Davis, MiaoDX, Alecco and darlingm
Activity
github-actions commentedon May 1, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
etraut-openai commentedon May 1, 2026
Can you provide more details about what you're doing and what problem you're seeing? Repro steps would be appreciated.
josephferrero commentedon May 1, 2026
I am having the same issue on linux
codex --version codex-cli 0.128.0obahareth commentedon May 1, 2026
Also having the same issue on macOS, is it feature flagged perhaps?
Release notes mention that
/goalis available on this version but I don't have it.josephferrero commentedon May 1, 2026
@obahareth @amanshresthaa Are you using an enterprise sub?
obahareth commentedon May 1, 2026
No, personal.
A friend helped me enable it, apparently you need to do:
etraut-openai commentedon May 1, 2026
This feature is still under development and is not generally ready for external use. We are testing and refining it internally, and we'll mark it as experimental in the next release. At that point, you'll be able to use the
/experimentalslash command to enable it.waltstephen commentedon May 1, 2026
Same on my Codex too. Happened when using "/goal" in one session for second time. API-based account.
weibeu commentedon May 1, 2026
Exactly same issue on
codex-cli 0.128.0even though I have enabled this from the experimental features. Weird part is that it worked for prompt with shorter text / single sentence. However, keeps failing continuosly even in new chat if I provide it a longer text of a plan I had made.For now, I just saved the longer plan in file and asked it to work like
/goal Read the complete development instructions as per -> "....md" and finalize.etraut-openai commentedon May 1, 2026
@weibeu, when you say "keeps failing continuously", what do you mean? What is the failure mode?
weibeu commentedon May 1, 2026
I am not sure what you mean by failure mode. However, below is more context:
Since normally, the /goal works. I expected something to be wrong with the text contents I am pasting after /goal. So I created a random markdown file with similar characters / lines my original plan had and it produced same error.
I have attached the markdown file as well whose content when pasted into the TUI produces the same error.
Appears to be some issue with the length of input character.
codex-goal-issue-input-markdown.md
etraut-openai commentedon May 1, 2026
@weibeu, thanks for clarifying. The goal prompt cannot be that large. I will look at improving the error message. For a task like this, you should put the task description in a file, then refer to the file in the goal definition:
/goal Implement the feature described in my_spec.md.weibeu commentedon May 1, 2026
Right thanks. Exactly how I proceeded.
rgoggins commentedon May 1, 2026
workaround:
modify your config.toml and add
If you're on v0.128.0 , this should work.
[-]/Goal Broken[/-][+]`/goal` slash command does not work in 0.128.0[/+]tonydavis629 commentedon May 2, 2026
I get this same error with the goals = true config active, and a short prompt. v0.128.0, linux.
Failed to read thread goal: thread/goal/get failed in TUIetraut-openai commentedon May 2, 2026
@tonydavis629, please provide full repro steps, and I can take a look.
tonydavis629 commentedon May 2, 2026
./codex/config.toml:
@etraut-openai uploaded thread ID 019dea72-f690-70e0-bb75-ab8e4ddea277
tonydavis629 commentedon May 2, 2026
@etraut-openai I was able to resolve this by deleting and regenerating the .codex/ directory, but it reoccurs after the first use.
etraut-openai commentedon May 2, 2026
@tonydavis629, yeah good call. I'm guessing that your state db was corrupted. By any chance, have you built Codex from source and/or run a custom fork at some point?
tonydavis629 commentedon May 2, 2026
@etraut-openai no I haven't. I got the same issue again, but again I was able to resolve it by deleting the .codex folder. So seems like something in there is not cooperating with the /goal feature.
etraut-openai commentedon May 2, 2026
If you're able to repro, please open a new issue, use
/feedbackand post the session ID. That will give me access to your logs so I can diagnose. Thanks!If it happens again, you can probably fix by simply renaming the
~/.codex/state_5.sqlitedb file. That will be less painful than regenerating the entire.codexdirectory.MiaoDX commentedon May 4, 2026
@etraut-openai same here, works after remove
~/.codex/state_5.sqlitefile for 0.128.0, mac os. install via npm.