Repository navigation
Open
Labels
appIssues related to the Codex desktop appauthIssues related to authentication and accountsbugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)sandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Description
Summary
Git HTTPS remote operations fail inside Codex native Windows sandbox, even though the same Git commands work in normal Windows PowerShell.
Local Git commands inside Codex work correctly, including status, diff, add, commit, and branch operations. The failure is specific to remote HTTPS operations such as git ls-remote, git fetch, git pull, and git push.
Environment
- OS: Windows 11
- Codex: native Windows app
- Git: Git for Windows 2.48.1.windows.1
- Git path: C:\Program Files\Git\cmd\git.exe
- Git HTTPS helper: C:\Program Files\Git\mingw64\libexec\git-core\git-remote-https.exe
- GitHub CLI: C:\Program Files\GitHub CLI\gh.exe
- Remote protocol: HTTPS
- Codex config:
sandbox_mode = "workspace-write"
approval_policy = "on-request"
[sandbox_workspace_write]
network_access = true
[windows]
sandbox = "elevated"
Also tested:
[windows]
sandbox = "unelevated"
What works
From normal Windows PowerShell:
git ls-remote https://github.com/<owner>/<repo>.git HEAD
git push
Both work.
Inside Codex:
git status
git diff
git add
git commit
These local Git commands work.
Inside Codex, Python HTTPS also works against:
https://github.com/
https://api.github.com/
GitHub CLI can access the private repo inside Codex when proxy variables are cleared:
& "C:\Program Files\GitHub CLI\gh.exe" repo view <owner>/<repo> --json nameWithOwner,visibility
Public GitHub HTTPS works inside Codex when credential helpers are disabled:
git -c credential.helper= -c credential.https://github.com.helper= ls-remote https://github.com/git/git.git HEAD
Authenticated Git HTTPS also works inside Codex if the GitHub CLI token is passed directly to Git via an extraheader and credential helpers are bypassed.
What fails
In elevated sandbox mode:
Codex runs as codexsandboxonline.
git ls-remote and git push over HTTPS fail.
Windows shows a git-remote-https.exe - Application Error dialog: memory could not be read.
Schannel mode fails with:
schannel: AcquireCredentialsHandle failed: SEC_E_NO_CREDENTIALS
curl HTTPS also fails with the same Schannel SEC_E_NO_CREDENTIALS error.
In unelevated sandbox mode:
Codex runs as my normal Windows user.
The Codex shell starts with proxy variables pointing to 127.0.0.1:9:
HTTP_PROXY=http://127.0.0.1:9
HTTPS_PROXY=http://127.0.0.1:9
ALL_PROXY=http://127.0.0.1:9
GIT_HTTP_PROXY=http://127.0.0.1:9
GIT_HTTPS_PROXY=http://127.0.0.1:9
Clearing those variables removes the 127.0.0.1:9 failure.
GitHub CLI then works.
But normal Git HTTPS using the configured credential-helper handoff still fails/crashes.
Git credential configuration
General helper:
credential.helper = manager
GitHub-specific helper in global config:
credential.https://github.com.helper =
credential.https://github.com.helper = !'C:\Program Files\GitHub CLI\gh.exe' auth git-credential
Important diagnostic result
This does not appear to be a general GitHub network failure.
Inside Codex, after clearing proxy variables and bypassing credential helpers:
public GitHub HTTPS works
authenticated private Git HTTPS works when GitHub CLI token is passed directly through Git extraheader
GitHub CLI can access the private repo
The failure appears tied to native Windows Codex sandboxing plus Git for Windows / GitHub CLI / Git Credential Manager credential-helper handoff.
Expected behavior
When network_access = true is enabled in workspace-write mode, Codex should allow normal Git remote operations over HTTPS:
git fetch
git pull
git push
git ls-remote
These should work inside Codex the same way they work in normal Windows PowerShell.
Impact
Codex can edit files and make local commits, but it cannot reliably push/fetch/pull from GitHub over HTTPS in native Windows sandbox mode. The current clean workaround is to let Codex commit locally and manually push from normal Windows PowerShell.
Request
Please investigate:
Why unelevated Codex sessions inject 127.0.0.1:9 proxy variables even with network_access = true.
Why elevated Codex sandboxing causes Schannel/GCM failures with SEC_E_NO_CREDENTIALS.
Why normal Git HTTPS credential-helper handoff can crash git-remote-https.exe inside Codex, while normal PowerShell Git works.Metadata
Metadata
Assignees
Labels
appIssues related to the Codex desktop appauthIssues related to authentication and accountsbugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)sandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Activity
enouchi-dev commentedon Jul 14, 2026
OpenAI feedback ID:
019f57c9-fc6a-7b13-a049-0ba379e1e404
Additional diagnostic evidence
OpenAI feedback ID:
019f57c9-fc6a-7b13-a049-0ba379e1e404
I reproduced this in a fresh repository created from a verified Git bundle inside a Codex-owned writable workspace.
Recovery workspace:
C:\Users\Enouc\Documents\Codex\2026-07-14\c-users-enouc-documents-codex-2026-2\guided-investor-app-dev-recovery
Commit:
6ab66a97237fb089d7bb9cb29bb2f4e98026eea2
The following all passed inside Codex:
The following still fail:
Exact error:
schannel: AcquireCredentialsHandle failed:
SEC_E_NO_CREDENTIALS (0x8009030e)
Git Credential Manager diagnostics also reported:
C:\Users\Enouc\AppData\Local.IdentityService
Normal authenticated PowerShell can access the same GitHub repository successfully.
This appears isolated to Codex access to Windows credentials / Git Credential Manager, rather than repository corruption, workspace permissions, or Git metadata permissions.
enouchi-dev commentedon Jul 16, 2026
Post-update retest on ChatGPT/Codex Desktop version 26.707.19148
(released July 15, 2026):
This confirms the July 15 desktop update did not resolve the Windows Git credential-access failure.
enouchi-dev commentedon Jul 17, 2026
Retest on ChatGPT/Codex Desktop version 26.715.21425
(released July 16, 2026), using the correct active repository:
C:\Users\Enouc\Documents\Codex\2026-07-14\c-users-enouc-documents-codex-2026-2\guided-investor-app-dev-recovery
Local commands pass:
Remote commands still fail:
Exact error:
schannel: AcquireCredentialsHandle failed:
SEC_E_NO_CREDENTIALS (0x8009030e)
No credentials are available in the security package
The July 16 update did not resolve the Codex-side GitHub HTTPS credential failure.
VS Code integrated PowerShell remains the working fallback.
No source changes were made.
enouchi-dev commentedon Jul 19, 2026
Update after latest Codex release — reproduced in a fresh Codex chat
I retested this in a fresh Codex chat after installing the latest update.
The initial folder was not a Git repository, so the test was run in:
C:\Dev\guided-investor-app
Repository state:
Branch: develop
HEAD: 90c5c42
Remote: https://github.com/brightmarkworks/investment-app-prototype.git
Local branch: 43 commits ahead of origin/develop
Untracked files were present
Both network commands still failed with the same credential error:
git fetch origin
fatal: unable to access 'https://github.com/brightmarkworks/investment-app-prototype.git/':
schannel: AcquireCredentialsHandle failed: SEC_E_NO_CREDENTIALS (0x8009030e)
git push --dry-run origin develop
fatal: unable to access 'https://github.com/brightmarkworks/investment-app-prototype.git/':
schannel: AcquireCredentialsHandle failed: SEC_E_NO_CREDENTIALS (0x8009030e)
This confirms the issue still reproduces in a fresh Codex chat after the latest update. The failure affects both fetch and push authentication to GitHub from the Codex environment.
Please keep the issue open.
enouchi-dev commentedon Jul 20, 2026
Update after ChatGPT/Codex version 26.715.52143 — issue still reproduces
I retested in a fresh Codex chat after updating to version 26.715.52143.
Repository:
C:\Dev\guided-investor-app
Branch:
develop
Local HEAD:
90c5c42
In Codex:
git fetch origin
error: cannot open '.git/FETCH_HEAD': Permission denied
git push --dry-run origin develop
fatal: unable to access 'https://github.com/brightmarkworks/investment-app-prototype.git/':
schannel: AcquireCredentialsHandle failed: SEC_E_NO_CREDENTIALS (0x8009030e)
I then ran the same commands in VS Code integrated PowerShell using the same repository.
git fetch origin succeeded and updated the remote-tracking reference:
f05fb64..c142bcc develop -> origin/develop
git push --dry-run origin develop successfully authenticated to GitHub and was rejected only because the local branch was behind the remote:
[rejected] develop -> develop (non-fast-forward)
No GitHub sign-in prompt appeared in VS Code.
This confirms that GitHub credentials and repository write access work from VS Code, while Codex still fails to access credentials and cannot write .git/FETCH_HEAD.
Please keep the issue open.
enouchi-dev commentedon Jul 21, 2026
Retested after updating to ChatGPT/Codex version 26.715.61943
(released July 20, 2026).
The core issue remains unresolved.
Test environment:
C:\Dev\guided-investor-app
develop, 70 commits behind origin/develop
Results:
fatal: unable to access
'https://github.com/brightmarkworks/investment-app-prototype.git/':
schannel: AcquireCredentialsHandle failed:
SEC_E_NO_CREDENTIALS (0x8009030e)
Same SEC_E_NO_CREDENTIALS failure.
This appears improved compared with earlier tests.
fatal: Unable to create
'C:/Dev/guided-investor-app/.git/index.lock':
Permission denied
Same .git/index.lock permission failure.
Access to the path
'C:\Dev\guided-investor-app.git\index.lock'
is denied.
The temporary test file was removed. Final repository status matched
the initial state.
Interpretation:
The update appears to have changed one symptom because FETCH_HEAD is
now directly writable. However, the two main blockers remain:
for HTTPS operations.
stage, unstage, or commit reliably.
The same repository continues to work from normal Windows
PowerShell / VS Code under the same user account.
Please clarify:
Was version 26.715.61943 intended to address this issue?
Has the root cause been identified?
Is the remaining problem believed to involve:
What exact validation sequence should users run to confirm
the intended fix?
enouchi-dev commentedon Jul 22, 2026
Retested after updating to ChatGPT/Codex desktop version 26.715.72359
(released July 22, 2026).
The issue is still present.
Test environment:
C:\Users\Enouc\Documents\Codex\schema-source-remediation-v0a
tech/schema-source-remediation-v0a
f4b5c7c960a36e1c13beaf66f75c80247f9a744c
clean
none
Results:
Codex could read:
Latest commit:
f4b5c7c Update grant contract governance docs
git status — PASSED
Remote credential test — FAILED
Command:
git ls-remote origin HEAD
Error:
fatal: unable to access
'https://github.com/brightmarkworks/investment-app-prototype.git/':
schannel: AcquireCredentialsHandle failed:
SEC_E_NO_CREDENTIALS (0x8009030e) -
No credentials are available in the security package
Temporary file creation — PASSED
git add temporary file — FAILED
git restore --staged temporary file — FAILED
.git/index.lock creation — FAILED
Codex still could not create or use .git/index.lock for staging operations.
The temporary file was removed and the repository returned to a clean state.
Interpretation:
The July 22 update did not resolve the two main Windows sandbox failures:
The same repository continues to work from normal Windows PowerShell under the same user account.
Please keep this issue open.
Could you also confirm:
enouchi-dev commentedon Jul 23, 2026
Update after installing the July 23, 2026 ChatGPT desktop release.
Environment
ChatGPT desktop:
Closest installed OpenAI desktop package observed:
Repository:
Result
The issue is still reproducible after the update.
Workspace read:
PASS
Repository state:
git status --shortsucceedsRepository write probes:
FAIL
The attempted
.gitand source-root write/delete probes were blocked beforePowerShell execution with:
approval required by policy, but
AskForApproval::Granular.sandbox_approval is false
Git fetch:
FAIL
Exact error:
error: cannot open '.git/FETCH_HEAD': Permission denied
Git push dry run:
FAIL
Exact error:
fatal: unable to access
'https://github.com/brightmarkworks/investment-app-prototype.git/':
schannel: AcquireCredentialsHandle failed:
SEC_E_NO_CREDENTIALS (0x8009030e) -
No credentials are available in the security package
Codex executable:
FAIL
Command:
codex --version
Exact error:
Program 'codex.exe' failed to run: Access is denied
Additional context
The repository is readable, but Codex still cannot reliably:
The same repository operations succeed when run manually in a normal
PowerShell session, including branch creation, commit, merge, fetch, and push.
Because the core write, fetch, credential, and executable-access failures
remain, my current disposition is:
NOT FIXED
Possible areas to investigate:
The desktop sandbox or approval policy is denying repository writes before
PowerShell commands execute.
The Codex process appears unable to write to
.git, even when the repositoryworking tree is otherwise accessible.
Windows Schannel credentials available to normal PowerShell are not being
inherited or exposed to the Codex session.
codex.exeitself is returning Access denied inside the session.Related earlier issue:
#29797
Current primary thread:
#31073
Is there a diagnostic log, sandbox-policy report, or permission trace I can
collect from the desktop app that would show why:
.git/FETCH_HEADis not writable;enouchi-dev commentedon Jul 24, 2026
Update after installing the latest ChatGPT desktop build.
Environment
ChatGPT desktop:
Installed Codex package observed:
Repository tested:
C:\Users\Enouc\Documents\Codex\schema-source-remediation-v0a
Final repository state:
Result
The issue appears partially fixed.
What now works
Repository source-root write/delete:
PASS
Codex can now create, read, and remove ordinary files in the repository source tree.
What still fails in the normal sandbox
.git/index.lock create/delete:
FAIL
Exact error:
New-Item : Access to the path
'...\schema-source-remediation-v0a.git\index.lock'
is denied.
git fetch origin:
FAIL
Exact error:
error: cannot open '.git/FETCH_HEAD': Permission denied
git push --dry-run origin develop:
FAIL
Exact error:
fatal: unable to access
'https://github.com/brightmarkworks/investment-app-prototype.git/':
schannel: AcquireCredentialsHandle failed:
SEC_E_NO_CREDENTIALS (0x8009030e) -
No credentials are available in the security package
What works when escalated
.git/index.lock create/delete:
PASS
Observed:
True
False
git fetch origin:
PASS
Observed:
No error output
git push --dry-run origin develop:
PASS
Observed:
Everything up-to-date
What remains blocked even when escalated
codex --version:
FAIL
Exact error:
Program 'codex.exe' failed to run:
Access is denied
Detected executable:
C:\Program Files\WindowsApps
OpenAI.Codex_26.721.3996.0_x64__2p2nqsd0c76g0
app\resources\codex.exe
Current disposition
PARTIALLY FIXED
Practical behavior now:
This is an improvement over the previous build, where source-root writes were also blocked, but the repository Git workflow is not yet fully usable without escalation or manual PowerShell fallback.
Questions for maintainers
Is it expected that .git metadata operations require escalation while ordinary repository writes do not?
Is the Schannel credential failure caused by the sandbox not inheriting Windows Git credentials?
Is there a supported way to grant persistent repository Git metadata access without approving each operation?
Is the codex.exe Access denied failure expected for the WindowsApps package path, or does it indicate a separate packaging/ACL issue?
Related earlier issue:
#29797
Current primary thread:
#31073
7 remaining items
enouchi-dev commentedon Aug 11, 2026
Update after latest ChatGPT/Codex desktop release — issue still present in my environment
Thanks to everyone who has continued testing and sharing results here. The recent reports about approval/host-boundary routing have been especially helpful.
I retested after updating to the current ChatGPT/Codex desktop version:
ChatGPT/Codex Desktop: 26.803.61601
Windows: native Windows environment
Repository: normal local Git repository with HTTPS GitHub remote
My practical result remains similar to earlier tests:
ordinary repository/source access works;
Codex can perform the application/source work;
Git metadata operations still periodically require manual PowerShell intervention because Codex cannot reliably create the needed .git lock files;
authenticated Git HTTPS operations from the Codex environment still fail with the Windows credential/Schannel path;
normal account-owner PowerShell continues to work for the same repository.
The recurring Git HTTPS error remains:
schannel: AcquireCredentialsHandle failed:
SEC_E_NO_CREDENTIALS (0x8009030e)
No credentials are available in the security package
I have also continued seeing .git metadata permission failures during normal development work, for example when Codex attempts branch creation, staging, merges, or ref/lock updates. Those operations succeed when I perform them manually from normal Windows PowerShell.
The newer comments in this thread suggest an important distinction between:
commands that remain under CodexSandboxOffline / CodexSandboxOnline; and
commands that are successfully routed through an approved host boundary under the normal Windows user.
In my environment, I have not yet seen a reliable automatic transition to a usable normal-user credential context that removes the need for the PowerShell fallback.
I am continuing normal maintenance updates, but I am trying to avoid repeating broad blind retest cycles. If maintainers would like a specific focused test—particularly around whoami, approval routing, standalone Git commands, sandbox identity, .git lock creation, or Schannel credential acquisition—I’m happy to run it.
Thanks again to the other users who have posted reproductions and workarounds. Those reports are helping narrow this from a general Git/network problem toward the Windows sandbox identity / approval / credential-routing boundary.
Current disposition in my environment: still not resolved.
ale-arc commentedon Aug 26, 2026
Current reproduction: credentials exist; Codex sandbox misclassifies the failure
Reproduced on 2026-08-26 on Windows with the current Codex desktop environment and
sandbox_mode = workspace-write.The GitHub credentials are valid:
gh auth statussucceeds using the existing local login, without exposing account or token details.Differential test against the same repository and command:
An actual
git fetch origin mainoutside the sandbox also succeeded and updated the local remote-tracking ref. The repository and credentials were not broken.The additional Codex failure is diagnostic: after the sandbox command failed, the agent reported that GitHub credentials were absent. That conclusion is incorrect and can cause unnecessary credential repair or re-authentication guidance. The accurate classification is a sandbox/Schannel credential-context or host-boundary routing failure, with a valid credential available to the normal Windows user.
Expected behavior:
SEC_E_NO_CREDENTIALSfrom a sandboxed Schannel process as a sandbox transport/context failure, not proof that the user's GitHub credentials are absent.No token, secret, account identifier, private repository name, or credential material is included in this report.
iblis82 commentedon Aug 28, 2026
Additional controlled A/B evidence from Codex CLI on Windows.
I can reproduce the same
git-remote-https.exenative crash described in this issue, and a sandbox-on vs sandbox-off test appears to narrow the fault domain significantly.Environment
0.150.17.6.52.54.0.windows.1, then upgraded to2.55.0.windows.52.7.3, then upgraded to2.9.1manageropensslUpgrading both Git and GCM did not change the behavior.
Host vs Codex
Normal PowerShell:
Git Credential Manager diagnostics from normal PowerShell:
Inside a normal sandboxed Codex session:
The operator independently observed the Windows crash dialog while Codex only saw the silent exit 128.
Public GitHub HTTPS works inside Codex when credential helpers are bypassed:
For the configured authenticated origin, bypassing credential helpers changes the result from a native crash to a normal authentication failure:
This suggests that the credential/security handoff is involved in triggering the native crash.
GCM diagnostics inside Codex
With Git
2.55.0.windows.5and GCM2.9.1:Sanitized failures:
The same GCM installation reports 7/7 PASS immediately outside Codex.
Final controlled sandbox A/B
I then started Codex explicitly with:
/statusconfirmed:I ran exactly the same read-only command that crashes in the normal Codex environment:
Result:
So on the same machine, repository, remote, Git version, GCM version and Codex version:
Additional control: elevated vs non-elevated parent shell
One remaining variable was that the earlier normal-sandbox reproductions had been launched from an elevated PowerShell.
I therefore opened a fresh non-elevated PowerShell, launched Codex normally, and confirmed with
/status:I then ran exactly:
Result:
The current A/B matrix is therefore:
This rules out parent PowerShell elevation as a required condition on this machine. The failure continues to track the normal Codex Windows sandbox/security context.
This strongly suggests that the normal Codex Windows sandbox/security context is a necessary trigger for this reproduction.
It does not identify the precise internal crash mechanism, but it appears to rule out the repository, remote URL, general GitHub availability, parent-shell elevation, Git 2.54 specifically, and GCM 2.7 specifically as the primary cause.
Current safe workaround remains:
danger-full-accessas the routine workaroundHappy to provide additional sanitized diagnostics if useful.
brefledev commentedon Sep 6, 2026
On Codex with Git for Windows, the debugger captured
0xC0000005ingit-remote-https.exeat module offset0xA45FC: a read from address zero. A dummy shell credential helper reproduced the crash.Environment:
0.153.42.55.0.windows.3The matching Git source calls
locate_in_PATH("sh"), thenconvert_slashes(p)without checking for NULL.New evidence: the Windows process environment contained separate
PathandPATHentries with different values. Both omittedC:\Program Files\Git\usr\bin. Setting both spellings in Codex's persistentshell_environment_policy.setmade a freshly launched Codex backend execute the dummy helper. Three HTTPS attempts deliberately used a dummy helper that supplied no credentials, so authentication failure (exit 128) was expected. All three ran without the memory crash. Differing Path and PATH entries remained; their role in the earlier environment-propagation failure is still unproven.Credential access is another separate failure.
The dedicated sandbox account could not retrieve my existing GitHub credential. Approved host-account execution successfully fetched and pushed a disposable branch, verified its remote SHA, and deleted it. Fresh
codex exec --approve-for-mesessions also passed authenticated fetch and a push using explicit host escalation. This is a persistent local crash mitigation plus an authenticated host workaround; the native sandbox credential problem remains open.aboozar-droid commentedon Sep 13, 2026
Additional reproduction from Codex Desktop on Windows (2026-09-14):
I am seeing the same credential-context split described here.
Host PowerShell (normal Windows user):
gh auth logincompletes successfully.Inside the Codex execution environment:
gh auth statusfails and reports the GitHub token/account as invalid/unavailable.SEC_E_NO_CREDENTIALS.This strongly suggests that the host user's successful GitHub authentication is not being made available to the Codex Windows sandbox / credential-helper context, rather than an invalid GitHub login on the host itself.
Operationally this leaves local Git operations usable while authenticated remote Git operations from Codex are blocked. I am currently keeping the repository state unchanged and avoiding repeated push attempts.
I can provide
whoami, proxy-environment, credential-helper configuration, and sandbox-mode diagnostics if useful.aboozar-droid commentedon Sep 13, 2026
Additional reproduction evidence from Windows Codex Desktop (2026-09-14):
desktop-a18ufvq\codexsandboxofflineUSERNAME=adminUSERPROFILE=C:\Users\adminC:\Users\admin\.codex\config.tomlexistssandbox_mode: not explicitly setapproval_policy: not explicitly set[sandbox_workspace_write] network_access: not set[windows] sandbox = "elevated"C:\projectsis trustedgh auth statusinside Codex reports the activeaboozar-droidtoken as invalidSEC_E_NO_CREDENTIALSThis instance reproduces the same credential-context split: host PowerShell has valid GitHub authentication, while the elevated Codex sandbox runs as
CodexSandboxOfflineand cannot use the host user's GitHub/GCM credential context. No proxy injection is involved in this reproduction.aboozar-droid commentedon Sep 13, 2026
Additional reproduction from Windows Codex Desktop on 2026-09-14:
After explicitly adding:
sandbox_mode = "workspace-write"
[sandbox_workspace_write]
network_access = true
[windows]
sandbox = "elevated"
and fully restarting Codex Desktop, a fresh task still ran as:
desktop-a18ufvq\codexsandboxofflineObserved:
gh auth status-> FAIL, active GitHub token appears invalid/unavailable in sandboxgit -c credential.interactive=false ls-remote origin HEAD-> FAIL: could not resolvegithub.comThis indicates
network_access = truedid not yield an online sandbox for this task. The failure is earlier than credential-helper handoff in this run because DNS itself is unavailable fromCodexSandboxOffline.Normal host PowerShell authentication/networking remains functional.
aboozar-droid commentedon Sep 13, 2026
Additional reproduction from Codex Desktop on Windows:
elevatedtounelevated.CodexSandboxOffline.github.comDNS resolution succeeded.HTTP_PROXY,HTTPS_PROXY,ALL_PROXY,GIT_HTTP_PROXY, andGIT_HTTPS_PROXYashttp://127.0.0.1:9.ghconnectivity:gh auth statussucceeded andgh api userreturned the expected account.schannel: AcquireCredentialsHandle failed: SEC_E_NO_CREDENTIALS (0x8009030e) - No credentials are available in the security packagegit ls-remote origin HEADfor the private repository failed with the same Schannel error.This isolates two separate unelevated-path issues on this setup: injected loopback-deny proxy variables, and a remaining native Git/Schannel credential-context failure after those proxies are cleared.
ghitself works after the process-local proxy clear.aboozar-droid commentedon Sep 13, 2026
Additional reproduction / workaround confirmation on Windows Codex Desktop:
gh auth status: PASS for the active GitHub accountgh api user: PASShttp.sslBackend=schannel: FAILS withSEC_E_NO_CREDENTIALS-c http.sslBackend=opensslmakes public GitHubls-remotePASSls-remote origin HEADcomplete without errorThis strongly isolates the current failure to Schannel/SSPI inside the Codex Windows execution context. A command-scoped OpenSSL override is an effective workaround in this environment.
aboozar-droid commentedon Sep 13, 2026
Additional reproduction evidence from Codex Desktop on Windows:
Environment after prior isolation steps:
[windows] sandbox = "unelevated"modehttp.sslBackend=opensslgh auth statusandgh api userboth succeedgit ls-remoteover HTTPS succeeds with OpenSSLgit ls-remotealso succeeds with OpenSSLHowever,
git push --dry-runfrom Codex still crashesgit-remote-https.exewith a Windows application error dialog:The instruction at <address> referenced memory at 0x0000000000000000. The memory could not be read.The command exits 128 with no stdout/stderr.
Repository state is preserved:
engineering/search-vs04d-knowledge-source-adapter-2026-09-13cfdf191c308e90068af8ad5cdc74559a6dae56ad6a97218b853164108873a07db2730b337e0d0552This narrows the issue further: OpenSSL bypasses the Schannel/SEC_E_NO_CREDENTIALS failure for read operations, but the native
git-remote-https.exeprocess can still crash on the push path inside Codex Desktop. The same repository is expected to be tested next from normal host PowerShell as a control.aboozar-droid commentedon Sep 13, 2026
Additional confirmation from a current Windows Codex Desktop incident (2026-09-14):
gh auth statusandgh api usersucceed for the active GitHub account.schannelbackend fails withSEC_E_NO_CREDENTIALSeven for public GitHub.http.sslBackend=opensslmakes read-only Git HTTPS operations succeed.git push --dry-runstill crashesgit-remote-https.exewith a Windows Application Error ('memory could not be read') and exits 128 with no stdout/stderr.git push --dry-run origin HEAD:refs/heads/engineering/search-vs04d-knowledge-source-adapter-2026-09-13output:
6a97218..cfdf191 HEAD -> engineering/search-vs04d-knowledge-source-adapter-2026-09-13git -c credential.interactive=false ls-remote origin refs/heads/engineering/search-vs04d-knowledge-source-adapter-2026-09-13also succeeds in normal PowerShell and returns the current remote SHA.This further isolates the remaining push failure to the Codex Windows execution environment / git-remote-https helper path rather than repository state, GitHub authentication, or the branch itself. Normal PowerShell is a working transport fallback.
aboozar-droid commentedon Sep 13, 2026
Final reproduction / workaround confirmation from Windows Codex Desktop:
git push --dry-rununder the affected environment crashedgit-remote-https.exewith a Windows application error and exited 128 with no stdout/stderr.http.sslBackend=opensslgit push --dry-run: PASS, fast-forward6a97218..cfdf191git push: PASScfdf191c308e90068af8ad5cdc74559a6dae56adThis confirms the repository and GitHub credentials were healthy; the failure boundary remained inside the Codex Windows Git HTTPS execution path / native helper context. Practical workaround used successfully: perform the remote Git operation from normal host PowerShell, with OpenSSL selected for this repository.
dragon940111-bot commentedon Oct 6, 2026
Additional data point (desktop 26.930.7945.0 / engine 0.160.1, legacy Windows runtime). In the restricted execution (workspaceWrite, networkAccess=true) against the same public URL: curl.exe → schannel: AcquireCredentialsHandle failed: SEC_E_NO_CREDENTIALS (0x8009030e), PowerShell Invoke-WebRequest → Authentication failed, see inner exception.; Node fetch and Python urllib → HTTP 200 with normal certificate validation; the same curl.exe from an unrestricted shell → 200. The command runner logs show the sandbox account running with USERPROFILE=C:\Users\Default, and in windows-sandbox-rs/src the legacy path (LogonUserW → CreateRestrictedToken → CreateProcessAsUserW) never calls LoadUserProfileW (only the service's registered-runtime code does). Consistent with Schannel having no per-user key container when the profile isn't loaded. Workaround that works for us: route HTTPS through Node/Python in the sandbox.
NotoriousPyro commentedon Oct 12, 2026
Additional reproduction: GitHub auth differs between Codex command contexts
This post was partially written by Codex from an interaction I had with it to understand why it couldn't work in the workspace folder I had created for it. I had previously been using "full access" to work around this issue but now we came to a better workaround where the agent has permission to write to the workspace without full access being granted.
I ended up asking Codex to add this to the "codex instructions" (AGENTS.md) here:

On Windows,
gh auth statussucceeds in the Codex integrated terminal for this worktree. It reports the expected account, authenticated viakeyring, using HTTPS withreposcope.The same check from Codex’s sandboxed command runner reports the token invalid. A normal runner push then fails while invoking the configured GitHub CLI credential helper:
Retrying that push through Codex’s elevated command runner succeeds. In my case, it published the already committed branch codex/repo-workflow-rules.
I also saw a Windows sandbox setup failure during installation. Clicking “Try again” made the message disappear, but I haven’t checked sandbox logs or confirmed whether it’s related.
This seems consistent with a Windows sandbox / credential-helper interaction, though I can’t tell whether the cause is the sandbox identity, Git Bash/MSYS process creation, or their interaction.
Al-Geroth commentedon Oct 28, 2026
Additional read-only reproduction from Codex Desktop on Windows (2026-10-28; no credentials or Git settings were changed). Git 2.56.0.windows.4, GitHub CLI 2.94.0, Codex engine 0.165.0-alpha.1.2. Effective profile:
development, restricted workspace writes, network enabled,approval_policy=never; log reports Windowselevatedsandbox andMXC availability: false. Sandbox process iscodexsandboxonline, withUSERPROFILEpointing to the normal host profile path.The Git credential helper IS configured: the generic
credential.helperkey is absent, but the GitHub-specific helper list resets helpers and then invokesgh auth git-credential(normal Git behavior). This is not a missing-helper configuration issue.vaultcmd /list->Location: <No profile>.gh auth status --json hosts->state=error,tokenSource=default; no nonemptyoauth_tokeninhosts.yml.gh api user-> HTTP 401.git ls-remote origin HEAD-> exit 128,fatal: unable to get password from user; an earlier attempt tried/dev/ttyand could not prompt.GH_TOKEN,GITHUB_TOKEN,GH_CONFIG_DIR, askpass and HTTP proxy overrides are absent.GIT_CONFIG_COUNTentries affect onlysafe.directory.Schannel SEC_E_NO_CREDENTIALSvariant.The immediate failure boundary is Git -> configured gh credential helper -> no usable credential in this sandbox context. The CLI's “invalid token” message does not establish that the host user's underlying token was revoked: an unavailable keyring can also prevent token retrieval. Prior sessions have recorded successful Git push dry runs under a sandbox-online identity; those runs did not capture vault/token provenance, so the cause of variation remains unknown.
Request: support authenticated Git remote operations in network-enabled, workspace-restricted Windows Codex sessions with
approval_policy=never, without moving a long-lived credential into a repo or globally disabling isolation. No tokens, usernames, private repository names, machine names or host profile paths are included here.