Skip to content

/goal slash command does not work in 0.128.0 #20591

Closed

Description

@amanshresthaa

What version of Codex CLI is running?

OpenAI Codex (v0.128.0)

What subscription do you have?

Pro

Which model were you using?

gpt-5.5 high

What platform is your computer?

Darwin 25.4.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

terminal Mac

What issue are you seeing?

"status": 400

What steps can reproduce the bug?

Uploaded thread: 019de27a-a7bf-7761-a22a-8a67057fcddd

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bug
    on May 1, 2026
  2. added
    CLI
    TUI
    on May 1, 2026
  3. github-actions commented on May 1, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. etraut-openai commented on May 1, 2026

    @etraut-openai
    Contributor

    Can you provide more details about what you're doing and what problem you're seeing? Repro steps would be appreciated.

  5. josephferrero commented on May 1, 2026

    @josephferrero

    I am having the same issue on linux

    codex --version codex-cli 0.128.0

    Image
  6. obahareth commented on May 1, 2026

    @obahareth
    codex --version
    codex-cli 0.128.0
    

    Also having the same issue on macOS, is it feature flagged perhaps?

    Release notes mention that /goal is available on this version but I don't have it.

  7. josephferrero commented on May 1, 2026

    @josephferrero

    @obahareth @amanshresthaa Are you using an enterprise sub?

  8. obahareth commented on May 1, 2026

    @obahareth

    No, personal.

    A friend helped me enable it, apparently you need to do:

    codex features enable goals
    
  9. etraut-openai commented on May 1, 2026

    @etraut-openai
    Contributor

    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.

  10. waltstephen commented on May 1, 2026

    @waltstephen

    Same on my Codex too. Happened when using "/goal" in one session for second time. API-based account.

  11. weibeu commented on May 1, 2026

    @weibeu

    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.

  12. etraut-openai commented on May 1, 2026

    @etraut-openai
    Contributor

    @weibeu, when you say "keeps failing continuously", what do you mean? What is the failure mode?

  13. weibeu commented on May 1, 2026

    @weibeu

    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.

    Image 2. Image 3.

    codex-goal-issue-input-markdown.md

  14. etraut-openai commented on May 1, 2026

    @etraut-openai
    Contributor

    @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.

  15. weibeu commented on May 1, 2026

    @weibeu

    Right thanks. Exactly how I proceeded.

  16. rgoggins commented on May 1, 2026

    @rgoggins

    workaround:
    modify your config.toml and add

    [features] 
    goals = true
    

    If you're on v0.128.0 , this should work.

  17. changed the title [-]/Goal Broken[/-] [+]`/goal` slash command does not work in 0.128.0[/+] on May 1, 2026
  18. removed
    CLI
    on May 1, 2026
  19. tonydavis629 commented on May 2, 2026

    @tonydavis629

    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

  20. etraut-openai commented on May 2, 2026

    @etraut-openai
    Contributor

    @tonydavis629, please provide full repro steps, and I can take a look.

  21. tonydavis629 commented on May 2, 2026

    @tonydavis629
    ➜  ~ codex --version
    codex-cli 0.128.0
    ➜  ~ cat /etc/os-release 
    PRETTY_NAME="Ubuntu 24.04.2 LTS"
    NAME="Ubuntu"
    VERSION_ID="24.04"
    VERSION="24.04.2 LTS (Noble Numbat)"
    VERSION_CODENAME=noble
    ID=ubuntu
    ID_LIKE=debian
    HOME_URL="https://www.ubuntu.com/"
    SUPPORT_URL="https://help.ubuntu.com/"
    BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
    PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
    UBUNTU_CODENAME=noble
    LOGO=ubuntu-logo
    ➜  ~ codex          
    WARNING: failed to clean up stale arg0 temp dirs: Directory not empty (os error 39)
    ╭───────────────────────────────────────────────╮
    │ >_ OpenAI Codex (v0.128.0)                    │
    │                                               │
    │ model:       gpt-5.5 xhigh   /model to change │
    │ directory:   ~                                │
    │ permissions: YOLO mode                        │
    ╰───────────────────────────────────────────────╯
    
      Tip: You can run any shell command from Codex using ! (e.g. !ls)
    
    
    > /goal say hello
    
    ■ Failed to read thread goal: thread/goal/get failed in TUI
    

    ./codex/config.toml:

    preferred_auth_method = "chatgpt"
    
    [features]
    goals = true
    
    [tui.model_availability_nux]
    "gpt-5.5" = 1
    

    @etraut-openai uploaded thread ID 019dea72-f690-70e0-bb75-ab8e4ddea277

  22. tonydavis629 commented on May 2, 2026

    @tonydavis629

    @etraut-openai I was able to resolve this by deleting and regenerating the .codex/ directory, but it reoccurs after the first use.

  23. etraut-openai commented on May 2, 2026

    @etraut-openai
    Contributor

    @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?

  24. tonydavis629 commented on May 2, 2026

    @tonydavis629

    @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.

  25. etraut-openai commented on May 2, 2026

    @etraut-openai
    Contributor

    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.

  26. MiaoDX commented on May 4, 2026

    @MiaoDX

    @etraut-openai same here, works after remove ~/.codex/state_5.sqlite file for 0.128.0, mac os. install via npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions