codex - 💡(How to fix) Fix in goal last steer is re-included after each compaction [1 comments, 2 participants]

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…
GitHub stats
openai/codex#21291Fetched 2026-05-07 03:42:37
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

v0.129.0-alpha.8

What subscription do you have?

pro

Which model were you using?

No response

What platform is your computer?

No response

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

No response

What issue are you seeing?

After each compaction event agent is re-reacting to last sent steer message that is no longer relevant.

What steps can reproduce the bug?

  1. Start long running /goal
  2. At some point sent steer like, refactor X now
  3. Agent will address steer message as expected, and continue normally
  4. Compaction happens
  5. Agent re-recive last steer again and tries to address it again
  6. This will repeat after every future compaction

What is the expected behavior?

Steer should not be re-included after compaction or, next goal cycle should displace user messages in history

Additional information

Here is codex analysis of the issue:

  • turn/steer becomes pending input, then gets recorded as a normal user message once consumed.
  • Compaction preserves recent non-summary user messages. It does not know that an old user message was only a temporary steer.
  • /goal continuation prompts are injected as developer messages, not user messages, so they do not displace that old steer as the latest “real user” message.
  • After each compaction, the replacement history can still contain that old steer as the most recent real user message, plus a fresh summary. The model can then treat it as newly salient and react to it again.

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