Pull requests only use the last message context for writing the PR title + description

Open 💬 2 comments Opened Oct 4, 2025 by ImLunaHey

What version of Codex is running?

_No response_

Which model were you using?

_No response_

What platform is your computer?

_No response_

What steps can reproduce the bug?

  • send multiple messages
  • create a PR

What is the expected behavior?

all messages are taken into context instead of just the last one.

What do you see instead?

only the last message is taken into context.

Additional information

for example instead of setting the title + description about the feature that was added i often get a PR created that only talks about the issue we fixed towards the end of the thread.

View original on GitHub ↗

2 Comments

tom-takeru · 10 months ago

The same thing happened to me on my Codex Web after I edited the code via chat. The last changes made on Codex Web are only referred to generate PR title and description when I click the 'Create PR' button 🫤

H1ghSyst3m · 3 months ago

I can reproduce a similar issue.

Workflow:

  1. Ask Codex to refactor several files for a feature.
  2. After that work is done, ask Codex to make a small documentation update.
  3. Click the Codex PR creation action.
  4. The generated PR title and description only mention the documentation update, even though the branch also contains the earlier refactor.

Expected:
The PR title and description should be generated from the full branch diff against the base branch, not from only the last user message or most recent Codex change.

Actual:
The PR title/description summarize only the final docs follow-up, which makes the PR misleading.

This also affects commit naming when the commit includes the full accumulated diff but the generated title only reflects the last change.