Hey everyone,
Ran into a weirdly frustrating bug today and wanted to share the fix in case anyone else is pulling their hair out.
I was right in the middle of a solid coding flow, and suddenly my Agent panel in AG just... died. Every message I sent was completely ignored. Couldn't undo anything, and the GitHub plugin flat-out refused to sync. Complete silent treatment.
Turns out, Codex quietly messes with your .git/config behind the scenes. It automatically upgrades the repo and enables worktreeConfig, which for some reason totally breaks the agent's ability to communicate.
The good news? The fix takes about 5 seconds, and you don't even need to restart AG. Just drop these three lines in your terminal:
Bash
git worktree prune
git config --unset extensions.worktreeConfig
git config core.repositoryformatversion 0
Boom. Everything instantly snaps back to normal.
Hope this saves your workflow if you ever run into it!