Skip to content

Codex Desktop: setting a goal fails after thread title generation without inserting thread_goals row #24282

Closed

Description

@chac4l

What version of the Codex App are you using?

Codex Desktop 0.133.0-alpha.1.

What platform is your computer?

Windows.

What issue are you seeing?

Setting a goal in Codex Desktop fails with the generic UI message equivalent to:

Failed to set goal

A local inspection suggests this is not caused by the user's project/workspace. The goal storage database exists, but no goal row is written.

Sanitized local state:

  • <CODEX_HOME>/goals_1.sqlite exists.
  • The thread_goals table is empty after the failure.
  • Codex successfully generated a thread title before the failure.
  • The next step, setting/persisting the goal, failed before any thread_goals record was inserted.

There were also plugin/cache warnings in the same environment, including an invalid bundled plugin manifest and plugin sync warnings when git was unavailable on PATH. Those warnings may be unrelated; nothing observed locally pointed to them as the direct cause of goal persistence failing.

No project-specific code, repository data, local username, full local path, or thread id is included here. A thread id can be provided privately if maintainers need it.

Steps that can reproduce the bug

The exact minimal reproduction is still unknown, but the observed flow was:

  1. Open Codex Desktop on Windows.
  2. Attempt to set a thread goal.
  3. Codex generates a thread title.
  4. The UI reports that setting the goal failed.
  5. Inspect <CODEX_HOME>/goals_1.sqlite.
  6. Observe that thread_goals is still empty.

Expected behavior

If the thread title can be generated and goal storage is available, Codex Desktop should persist the goal into goals_1.sqlite.thread_goals and activate it for the thread.

If persistence fails, the UI should expose an actionable root cause, such as:

  • SQLite write failure or lock contention
  • missing/incompatible goal schema
  • stale app-server/Desktop process
  • disabled or unavailable goals feature
  • plugin/cache initialization failure, if that actually blocks goal writes

Actual behavior

The UI only shows a generic goal-setting failure, and no row is inserted into thread_goals.

Workaround

Continue using the conversation normally and put the objective in the first prompt, for example:

Goal: investigate why X fails and fix it.

Restarting or updating Codex Desktop may also help if this is caused by a stale process, local cache inconsistency, or an alpha regression.

Related

Possibly related to #23984, which tracks generic /goal failures and diagnostic gaps around goal storage changes. This report is narrower: Codex Desktop on Windows reaches thread title generation, then fails before inserting any row into goals_1.sqlite.thread_goals.

Activity

  1. added
    bugSomething isn't working
    appIssues related to the Codex desktop app
    windows-osIssues related to Codex on Windows systems
    sessionIssues involving session (thread) management, resuming, forking, naming, archiving
    on May 24, 2026
  2. github-actions commented on May 24, 2026

    @github-actions
    Contributor
  3. etraut-openai commented on May 24, 2026

    @etraut-openai
    Contributor

    If you're able to repro, plse use /feedback to upload your logs and post the session ID here. That will allow me to investigate further. Thanks!

  4. chac4l commented on May 24, 2026

    @chac4l
    Author

    I was able to repro this again in a fresh session.

    Important clarification: this is Codex Desktop running on Windows, but the workspace/session is a Remote SSH project, not a purely local Windows workspace.

    This time the Failed to set goal / Falha ao definir a meta popup appeared again, but the chat still started afterward. That makes it ambiguous whether the goal was partially set, failed only in the UI, or failed during persistence while the session continued.

    I ran /feedback immediately after the repro.

    Session ID: 019e5775-8e63-7ac2-95fc-c439e02587d1

  5. etraut-openai commented on May 30, 2026

    @etraut-openai
    Contributor

    You should no longer see this with the latest version.

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

    appIssues related to the Codex desktop appbugSomething isn't workingsessionIssues involving session (thread) management, resuming, forking, naming, archivingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions