Cannot destructure property 'gitRoot' of 'undefined' as it is undefined.

Resolved 💬 2 comments Opened Dec 18, 2025 by tzmbzt Closed Dec 18, 2025
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

0.4.52

What subscription do you have?

Pro

Which model were you using?

gpt-5.2

What platform is your computer?

_No response_

What issue are you seeing?

[error] Error fetching vscode://codex/git-current-branch: TypeError: Cannot destructure property 'gitRoot' of 'undefined' as it is undefined.

Getting this in VSCodium + Codex. Not in issue in the earlier versions. Started around 0.4.48 I think.

What steps can reproduce the bug?

It just happens, likely more common. Probably in regards to usage with Github.

What is the expected behavior?

Not crashing.

Additional information

_No response_

View original on GitHub ↗

2 Comments

etraut-openai contributor · 8 months ago

Thanks for reporting. This is the same issue as #8197, and it will be fixed in the next release.

tzmbzt · 8 months ago

It's still crashing, just not as often. You don't see this bug/error message, but it's still happening.