What version of the Codex App are you using?
See the diagnostic bundle associated with Feedback ID 019f9110-5e85-73a2-85fd-afe8c0c819b8.
What subscription do you have?
See the diagnostic bundle associated with Feedback ID 019f9110-5e85-73a2-85fd-afe8c0c819b8.
What platform is your computer?
Windows x64.
What issue are you seeing?
When a local project is checked out on its default branch, the Codex app can display a violet pull-request badge and PR context for an unrelated, historical PR that has already been merged and closed. The stale association appears in the sidebar or environment header for every unrelated chat that shares that local project environment, even though no open PR exists for the checked-out branch and the chats do not reference the old PR.
This appears to be a branch-resolution bug. If a repository has any historical PR whose head was the repository's default branch—for example, a reverse-direction synchronization PR from the default branch into a feature branch—the app may treat that merged PR as the current PR indefinitely whenever the local checkout is on the default branch.
This makes unrelated chats look connected to obsolete work and can surface irrelevant PR or review context.
What steps can reproduce the bug?
- Use a GitHub repository with a default branch such as
main or master.
- Ensure the repository has a historical PR where the default branch was the PR's head and another branch was its base.
- Merge or close that historical PR.
- Check out the default branch locally and confirm that it has no open PR.
- Open the local repository as a project in the Codex app.
- Create or open several unrelated chats that use the shared local project environment.
- Observe that the app displays PR context for the historical merged/closed PR across those chats.
Feedback ID: 019f9110-5e85-73a2-85fd-afe8c0c819b8
What is the expected behavior?
The app should display PR context only for a relevant open PR whose head matches the checked-out branch. Closed or merged PRs should not be treated as the current PR. If several historical PRs share the same head branch name, open PRs should be prioritized and closed/merged matches ignored. When the checked-out branch has no open PR, no PR badge or PR context should be shown.
Additional information
The repository-specific example has intentionally been omitted because the affected repository and its branches are private. The feedback bundle should contain the app diagnostics needed to identify the affected session without exposing project data.
What version of the Codex App are you using?
See the diagnostic bundle associated with Feedback ID
019f9110-5e85-73a2-85fd-afe8c0c819b8.What subscription do you have?
See the diagnostic bundle associated with Feedback ID
019f9110-5e85-73a2-85fd-afe8c0c819b8.What platform is your computer?
Windows x64.
What issue are you seeing?
When a local project is checked out on its default branch, the Codex app can display a violet pull-request badge and PR context for an unrelated, historical PR that has already been merged and closed. The stale association appears in the sidebar or environment header for every unrelated chat that shares that local project environment, even though no open PR exists for the checked-out branch and the chats do not reference the old PR.
This appears to be a branch-resolution bug. If a repository has any historical PR whose head was the repository's default branch—for example, a reverse-direction synchronization PR from the default branch into a feature branch—the app may treat that merged PR as the current PR indefinitely whenever the local checkout is on the default branch.
This makes unrelated chats look connected to obsolete work and can surface irrelevant PR or review context.
What steps can reproduce the bug?
mainormaster.Feedback ID:
019f9110-5e85-73a2-85fd-afe8c0c819b8What is the expected behavior?
The app should display PR context only for a relevant open PR whose head matches the checked-out branch. Closed or merged PRs should not be treated as the current PR. If several historical PRs share the same head branch name, open PRs should be prioritized and closed/merged matches ignored. When the checked-out branch has no open PR, no PR badge or PR context should be shown.
Additional information
The repository-specific example has intentionally been omitted because the affected repository and its branches are private. The feedback bundle should contain the app diagnostics needed to identify the affected session without exposing project data.