codex - 💡(How to fix) Fix Codex Memories stage1 succeeds but global consolidation remains pending and no summary artifact is generated on Windows

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…

Codex Memories appears to be enabled and stage1 extraction is working, but global consolidation does not produce a summary artifact.

This may be related to #21884, but my local state is slightly different: stage1_outputs is not empty and raw memory files are being generated. The issue appears to be in the global consolidation / summary artifact step.

Error Message

The following files/directories exist and are populated:

Root Cause

This looks different from a complete memory extraction failure because stage1_outputs contains rows and raw_memories.md is populated. The problem seems to be at or after memory_consolidate_global.

Code Example

[features]
memories = true

[memories]
generate_memories = true
use_memories = true

---

Codex ran out of room in the model's context window. Start a new thread or clear earlier history before retrying.
RAW_BUFFERClick to expand / collapse

Summary

Codex Memories appears to be enabled and stage1 extraction is working, but global consolidation does not produce a summary artifact.

This may be related to #21884, but my local state is slightly different: stage1_outputs is not empty and raw memory files are being generated. The issue appears to be in the global consolidation / summary artifact step.

Environment

  • OS: Windows
  • Codex CLI: 0.130.0
  • Auth mode: ChatGPT
  • Memories feature: enabled

Config:

[features]
memories = true

[memories]
generate_memories = true
use_memories = true

Observed behavior

The following files/directories exist and are populated:

  • ~/.codex/memories/raw_memories.md
  • ~/.codex/memories/rollout_summaries/

The local state database also shows memory extraction output:

  • stage1_outputs: 24 rows
  • multiple memory_stage1 jobs are done

However, the following summary artifacts are not present:

  • ~/.codex/memories/MEMORY.md
  • ~/.codex/memories/memory_summary.md

The jobs table shows:

  • memory_consolidate_global with job_key = global
  • status: pending
  • last_success_watermark appears to be set
  • no generated summary artifact appears in ~/.codex/memories/

Some memory_stage1 jobs failed with:

Codex ran out of room in the model's context window. Start a new thread or clear earlier history before retrying.

Expected behavior

If stage1 memory extraction succeeds, Codex should either:

  1. generate/update the summary artifact used by future sessions, or
  2. surface a clear error explaining why global consolidation cannot complete.

Actual behavior

Raw memory files and rollout summaries are created, but the global summary artifact does not appear to be generated. The settings indicate Memories are enabled, but it is unclear whether future sessions can actually use the extracted memories.

Notes

This looks different from a complete memory extraction failure because stage1_outputs contains rows and raw_memories.md is populated. The problem seems to be at or after memory_consolidate_global.

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…

FAQ

Expected behavior

If stage1 memory extraction succeeds, Codex should either:

  1. generate/update the summary artifact used by future sessions, or
  2. surface a clear error explaining why global consolidation cannot complete.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex Memories stage1 succeeds but global consolidation remains pending and no summary artifact is generated on Windows