After creating a new task in Codex the sysem first clones the GitHub repo to its virtual machine. Later I tell it to create the PR on GitHub. Work is not done though and I have pushed an update to that new branch. Now I want Codex to pull my last changes from the GitHub repo to its virtual machine again. However, Codex tells me this:
Because there is no origin (or any other remote) defined, git pull or git fetch cannot contact a remote repository. Thus, no, you cannot pull from origin in this environment.
root@1907cc1bc448:/workspace/test# git remote -v
root@1907cc1bc448:/workspace/test#
So apparently the GitHub remote has been deleted by Codex. Probably for security reason, the same as it cannot access the internet after setting up the virtual machine.
But this seems to be a bug in the design of this security system. I understand that access to the Internet is not allowed, but updating (pulling) from the very same repo Codex has originally cloned from in the first place seems like a must have for collaboration with the system. Or are we supposed to create a whole new task in Codex and thus a new branch and PR on GitHub everytime after we had updated something Codex has created on GitHub?
The issue is solved on web but the chatgpt app codex feature still keeps creating new PRS instead of updating them.
Can you extend this to the app as well please?
I’m not a very professional programmer and what I was looking for was if codex can update the repository if I make any change manually myself? or I should create a new environment every time I make a manual change? I’m not even sure if I’m here to the correct question, but it was the closest thing I could find. Can somebody maybe help me with that or answer me that I at least know if I’m fully wrong here or not?
how was it in any way solved if it just keeps defaulting to the original code? basically every additional thing i asked for it was applied to original code and when PR was submitted to github i would get an error on github saying do you want this or that, that it saw two things but one of them was already committed, so i had to manually remove the duplicate code from each PR, easier is to still just start a brand new task each time, which is kind of wild, I think Codex CLI handles this better from what i researched, but its also a pain to work with if i understood correctly