codex - 💡(How to fix) Fix Feature request: surface Git and GitHub lifecycle events as structured chat messages [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#18389Fetched 2026-04-18 05:55:00
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Root Cause

Right now these actions often happen outside the conversational context. That makes it harder for Codex to reason over what already happened, continue from the latest repository state, and refer back to prior Git or GitHub changes without the user re-explaining them.

If these events appeared in the thread as structured messages, Codex could:

  • use them as context for later turns
  • reference commit or pull request state reliably
  • avoid duplicate operations
  • produce better follow-up actions after a commit or pull request
  • improve auditability and reproducibility
RAW_BUFFERClick to expand / collapse

What feature would you like to see?

Codex should emit Git and GitHub lifecycle actions into the active chat as structured, first-class events, not only as side effects or out-of-band UI state.

Examples:

  • commit created
  • branch created or switched
  • push completed
  • pull request created or updated
  • pull request merged or closed
  • merge conflicts detected or resolved
  • review requested or received
  • revert, cherry-pick, or rebase completed
  • issue linked or closed by a pull request

Why this matters

Right now these actions often happen outside the conversational context. That makes it harder for Codex to reason over what already happened, continue from the latest repository state, and refer back to prior Git or GitHub changes without the user re-explaining them.

If these events appeared in the thread as structured messages, Codex could:

  • use them as context for later turns
  • reference commit or pull request state reliably
  • avoid duplicate operations
  • produce better follow-up actions after a commit or pull request
  • improve auditability and reproducibility

Proposed behavior

When Codex performs or observes a Git or GitHub action, append a compact chat event such as:

  • Commit created: abc123 - fix login race
  • Pull request created: #456
  • Pull request merged: #456
  • Branch switched: feature/auth-cleanup

These should be machine-readable to the agent but human-readable in the UI.

Privacy and safety

These events should avoid leaking personal information or local environment details by default:

  • redact or omit local folder paths
  • avoid exposing emails, tokens, or secret values
  • prefer repository-relative or GitHub-native identifiers
  • allow a privacy-safe summary mode

Related

Issue #2765 discusses persistent session transcripts. This request is narrower and more immediate: show Git and GitHub actions as structured chat events during the live session so the agent can use them in-context.

Acceptance criteria

  • Commit, branch, push, pull request, and merge actions appear in the chat as structured events.
  • The agent can reference those events in later turns without the user restating them.
  • Events are privacy-safe by default.
  • UI messages are concise and link to the relevant commit or pull request when available.

Are you interested in implementing this feature?

No response

extent analysis

TL;DR

To address the proposed feature, modify Codex to emit Git and GitHub lifecycle actions as structured, first-class events in the active chat.

Guidance

  • Identify the specific Git and GitHub actions that need to be emitted as events, such as commit created, branch switched, and pull request merged.
  • Design a compact and machine-readable event format, like Commit created: abc123 - fix login race, that can be displayed in the UI.
  • Ensure events are privacy-safe by default, redacting or omitting local folder paths and avoiding exposure of personal information or secret values.
  • Develop a mechanism for the agent to reference these events in later turns without requiring the user to restate them.

Example

A potential event format could be a JSON object with relevant details, such as {"event": "commit_created", "commit_id": "abc123", "message": "fix login race"}.

Notes

The implementation should consider the related issue #2765 and ensure that the solution aligns with the acceptance criteria provided.

Recommendation

Apply a workaround by modifying the existing Codex event handling to include Git and GitHub actions as structured events, allowing for better context and reference in later turns. This approach will improve the agent's ability to reason over repository state and provide more accurate follow-up actions.

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