stable-metadata git worker loops endlessly when workspace is not a git repo

Resolved 💬 3 comments Opened Apr 26, 2026 by janbugel Closed Apr 26, 2026

Extension: openai.chatgpt-26.422.30944-win32-x64
Platform: Windows 11 x64
Subscription: Plus

What's happening

Opening Codex in a folder that isn't a git repo causes the extension to hammer stable-metadata on the git worker in a tight retry loop — no backoff, no stop. It runs the entire time the extension is open, including when idle between conversations.

My log had 23,846 of these in 13 minutes (~30/sec):

\\\
[warning] worker_rpc_response_error error={} method=stable-metadata workerId=git
\
\\

First: 2026-04-26 20:59:47.184 — Last: 2026-04-26 21:12:50.124

Log: %APPDATA%\Code\logs\<session>\window1\exthost\openai.chatgpt\Codex.log

Reproducing

Open VS Code + Codex with cwd pointing to a non-git directory. CPU stays elevated the whole session.

Confirmed fix

Running git init in the workspace root drops the error count to zero immediately (23,846 → 0 in the next session).

Expected

If the git worker can't find a repo, it should either skip entirely or back off — not spin at 30 req/sec for the whole session.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗