openai / openai/codex

Agent often stops after compaction instead of continuing the active task

Open
#42,693 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug context model-behavior
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What version of the Codex App are you using (From “About Codex” dialog)?

26.901.22334

What subscription do you have?

Pro

What platform is your computer?

macOS: 26.5.2

What issue are you seeing?

Title:

Summary

With the experimental context_management feature enabled, Codex frequently stops after automatic context compaction and asks the user what to do next, even though the current task has a clear unfinished objective and the agent was progressing autonomously before compaction.

Environment
  • Codex CLI: 0.153.0
  • Model: gpt-5.6-sol
  • Configuration:
[features]
context_management = true
What steps can reproduce the bug?

Feedback ID: 01a066fe-556d-7610-827e-421fbbdfad30

What is the expected behavior?

I don't know. It doesn't stop, at least. 🤔

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in Codex CLI 0.153.0 with the experimental context_management feature enabled in the supplied TOML configuration, using feedback ID 01a066fe-556d-7610-827e-421fbbdfad30 as context. Investigate what happens after automatic compaction; done means the agent continues a clearly unfinished task instead of stopping and asking the user what to do next.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
ai, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.