codex - 💡(How to fix) Fix Allow stored Codex threads to be associated with a project cwd after planning

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

Please consider adding a supported way to update a stored Codex thread's project or workspace association after the thread has already been created. One small backend primitive for this would be allowing stored thread metadata updates to patch the thread cwd.

Today, the practical workaround is to ask Codex to generate context files and write them into the new repository. That helps, but it still leaves the original conversation detached from the workspace. A supported metadata update would make it possible for clients to build a more natural "attach", "move", or "promote this thread to a project" flow without touching local sqlite state directly.

The thread model already persists cwd, and thread/list already supports cwd-based filtering. The existing thread/metadata/update method also patches sqlite-backed thread metadata for gitInfo.

RAW_BUFFERClick to expand / collapse

Proposal

Please consider adding a supported way to update a stored Codex thread's project or workspace association after the thread has already been created. One small backend primitive for this would be allowing stored thread metadata updates to patch the thread cwd.

Motivation

A common workflow is to start with early planning in a standalone Codex conversation before the repository or project directory exists. After the project folder is created, the useful planning context can remain outside the project/workspace it now belongs to.

Today, the practical workaround is to ask Codex to generate context files and write them into the new repository. That helps, but it still leaves the original conversation detached from the workspace. A supported metadata update would make it possible for clients to build a more natural "attach", "move", or "promote this thread to a project" flow without touching local sqlite state directly.

Possible implementation direction

The thread model already persists cwd, and thread/list already supports cwd-based filtering. The existing thread/metadata/update method also patches sqlite-backed thread metadata for gitInfo.

One narrow approach would be to extend thread/metadata/update with an optional cwd field, resolve it consistently with existing cwd handling, and persist it through the existing thread metadata patch path.

Benefits

  • Preserves planning context when a project is created after the initial conversation.
  • Avoids direct client-side edits to local sqlite state.
  • Gives Codex clients a small backend primitive for future UI workflows that attach or move a thread into a workspace.
  • Keeps the behavior scoped to metadata rather than changing thread contents or replaying conversation history.

I understand that external code contributions are by invitation only. I am happy to keep this as a design discussion unless the Codex team thinks a small PR would be useful.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING