Why only output is included in the turn_input_messages

Resolved 💬 3 comments Opened Nov 2, 2025 by KaminariOS Closed Nov 3, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

https://github.com/openai/codex/blob/d5853d9c47b1badad183f62622745cf47e6ff0f4/codex-rs/core/src/codex.rs#L1784

Currently, when I get the notify JSON, the input_message field does not include any user input.

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 9 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #4954

Powered by Codex Action

etraut-openai contributor · 9 months ago

Thanks for the bug report. This appears to be a long-standing bug. The OutputText should not be passed here. Only the InputText should be. The logic should also apply a filter to include only messages with a "user" role. It should also filter out the message that contains the AGENTS.md contents and any other context that's injected by the harness, such as attached files.

I've prepared a PR that addresses the issue.

etraut-openai contributor · 9 months ago

This will be fixed in the next release.