The Codex bot on GitHub searches for a branch in upstream, not a fork, when running a task in Codex Claude

Hi. I have a repository on GitHub, this repository is in my organization account. I have a fork of this repository in my account. I’m making a PR from a new branch of my fork to the main upstream branch. This is a common workflow.

The Codex bot is connected to upstream, which checks the code in PRs. When the Codex bot suggests changes, it recommends fixing them by running the command codex fix comments. I do this, and the task in Codex Claude is launched, but the task ends with errors like “Provided git ref feature/name-branch does not exist.” And at the top of the interface, you can see that Codex is trying to find a new branch to work on, not in the fork (which it also has access to), but in the upstream, but naturally, there’s no such branch in the upstream.

Please tell me how to fix this? I tried sending the bot something like ‘codex fix comments, branch … is a branch in the fork …’, but it doesn’t work.