Windows native sandbox: Git HTTPS remote operations fail/crash inside Codex but work in normal PowerShell
Open 💬 18 comments Opened Jul 4, 2026 by yorten
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.
18 Comments
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.
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.
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.
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.
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.
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:
the intended fix?
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
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
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:
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:
PowerShell commands execute.
.git, even when the repositoryworking tree is otherwise accessible.
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;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
Related earlier issue:
#29797
Current primary thread:
#31073
Request for human review / escalation
Over the past two weeks, we have posted nine separate comments documenting repeated Windows tests across multiple ChatGPT/Codex desktop updates.
The latest full repeat test is complete, and the issue remains NOT FIXED.
At this point, we are requesting escalation to a human engineer or support reviewer. Continued end-user update-and-retest cycles are no longer productive without someone reviewing the sandbox, credential, and executable-permission behavior directly.
Latest tested environment
ChatGPT desktop:
Installed Codex package:
Repository:
C:\Users\Enouc\Documents\Codex\schema-source-remediation-v0a
GitHub remote:
https://github.com/brightmarkworks/investment-app-prototype.git
Repository baseline:
Latest repeat-test result
Overall issue status:
NOT FIXED
Workspace read:
PASS
Source-root write/read/delete:
BLOCKED BY POLICY
Exact error:
approval required by policy, but AskForApproval::Granular.sandbox_approval is false
.git temporary-file write/delete:
BLOCKED BY POLICY
Exact error:
approval required by policy, but AskForApproval::Granular.sandbox_approval is false
Escalation for the .git temporary-file test:
NOT AVAILABLE
.git/index.lock safety precheck:
.git/index.lock create/delete:
BLOCKED BY POLICY
Exact error:
approval required by policy, but AskForApproval::Granular.sandbox_approval is false
Escalation for the index-lock test:
NOT AVAILABLE
Final .git/index.lock state:
False
git fetch origin:
FAIL, both non-escalated and escalated
Exact error:
error: cannot open '.git/FETCH_HEAD': Permission denied
git push --dry-run origin develop:
FAIL, both non-escalated and escalated
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
SEC_E_NO_CREDENTIALS still present:
YES
Detected Codex paths:
C:\Program Files\WindowsApps\OpenAI.Codex_26.721.4979.0_x64__2p2nqsd0c76g0\app\resources\codex
C:\Program Files\WindowsApps\OpenAI.Codex_26.721.4979.0_x64__2p2nqsd0c76g0\app\resources\codex.exe
codex --version:
FAIL
Exact error:
Program 'codex.exe' failed to run: Access is denied
Escalated codex --version:
NOT AVAILABLE
Exact policy response:
approval policy is Granular(GranularApprovalConfig {
sandbox_approval: false,
rules: false,
skill_approval: false,
request_permissions: true,
mcp_elicitations: true
});
reject command — you should not ask for escalated permissions if the approval policy is Granular(...)
Final cleanup
Temporary artifacts remaining:
NONE
Final branch:
develop
Final HEAD:
7fe702775a15d1084beba5b9542670d30b6b94ca
Final working tree:
CLEAN
Practical impact
Normal development work still requires frequent manual PowerShell intervention outside Codex for:
Codex can read the repository, but the Git workflow remains unreliable or unusable inside the normal desktop sandbox.
Requested human review
Please escalate this issue to a human engineer or support reviewer who can directly inspect:
We are willing to provide:
However, after nine comments and repeated retesting across multiple updates, we are requesting that further testing be guided by a human reviewer rather than continuing blind update-and-retest cycles.
Please confirm:
Related earlier issue:
#29797
Current primary thread:
#31073
Follow-up on human-review request
It has now been five days since the human-review/escalation request above, and there has been no maintainer response or assignment.
The issue remains active in current development work. The latest reproduction occurred during Step 7 Package 2:
Current practical impact:
Every implementation cycle requires a manual transfer and authenticated Git workflow outside Codex.
We are not requesting another blind update-and-retest cycle. We are requesting confirmation of one of the following:
Please advise before asking for another full retest.
Post-update retest — normal updates welcome, human review still requested
ChatGPT desktop version shown in the app:
26.727.40816
Released July 30, 2026
Detected Codex package:
OpenAI.Codex_26.727.4816.0_x64__2p2nqsd0c76g0
Test repository:
C:\Dev\guided-investor-app
Result:
NOT FIXED
Bounded validation results:
Program 'codex.exe' failed to run: Access is denied.
Detected executable:
C:\Program Files\WindowsApps\OpenAI.Codex_26.727.4816.0_x64__2p2nqsd0c76g0\app\resources\codex.exe
Repository readable.
Branch: develop
Existing repository state remained unchanged.
A temporary source-root file was created and removed successfully.
Access to .git\index.lock was denied.
No lock file remained after the test.
Exact error:
schannel: AcquireCredentialsHandle failed:
SEC_E_NO_CREDENTIALS
Same SEC_E_NO_CREDENTIALS failure.
No temporary test files remained.
The working tree returned to its original state.
Current practical result:
Normal maintenance updates are welcome and should continue. We are not asking for updates to be withheld.
However, this issue still requires human review and triage. Repeated automatic update-and-retest cycles have not resolved the underlying Windows sandbox, credential, Git metadata, and executable-access failures.
Please confirm:
We will continue installing normal maintenance updates, but further issue-specific testing should be guided by a human reviewer rather than repeated blindly after every release.
Related earlier issue:
#29797
Current primary issue:
#31073
Independent reproduction on 2026-08-02 — current Store build still affected
I independently reproduced this on another Windows installation.
Environment
OpenAI.Codex 26.727.6591.0(Status: Ok)0.146.02.48.1.windows.1<machine>\CodexSandboxOfflineMicrosoft Store reports:
Inside the normal sandbox
gh auth statusfails before it can use the authenticated account:git ls-remote --exit-code origin HEADfails with:codex --versionalso fails inside the sandbox:The executable resolves into the packaged
C:\Program Files\WindowsApps\OpenAI.Codex_26.727.6591.0...directory.Approved host-boundary controls
The same operations succeed when explicitly retried through approved execution outside the sandbox:
codex --versionreturnscodex-cli 0.146.0gh auth statusreports the existing keyring-backed login as activegh repo viewsuccessfully reads private repository metadata and reports the expected permissiongit ls-remote --exit-code origin HEADsucceeds and returns the remote HEADNo push or repository mutation was performed.
ACL/setup observations
Read-only ACL inspection found:
CodexSandboxOfflineandCodexSandboxOnlineboth exist and are enabled.CodexSandboxUserswith modify access.%APPDATA%\GitHub CLIhas the normal owner/SYSTEM/Administrators ACL and noCodexSandboxUsersentry.Impact / expected behavior
The approved host-boundary workaround is functional, but credentialed GitHub commands first run in the offline sandbox and fail. With automatic approval enabled, Codex should ideally recognize
ghand authenticated remote Git operations as needing approved execution before the failed attempt, or provide a supported scoped credential/network broker for the elevated Windows sandbox.A clean reinstall appears unlikely to help because the dedicated sandbox accounts and workspace ACLs are present and behaving as designed; the missing credential/profile access is the remaining boundary.
No credentials, usernames, private repository names, or tokens are included in this report.
Update from the original reporter — the issue is no longer reproducing in my environment
I am no longer experiencing the original GitHub HTTPS and credential-access problem on my computer. However, I do not know which desktop release changed the behavior, and I do not consider this confirmation that the issue is fixed for everyone.
Several ChatGPT/Codex desktop updates were installed between my original failures and the successful tests. Before the successful test, I also completely exited the desktop app from the system tray and used Task Manager to terminate five remaining ChatGPT Classic processes.
Because multiple desktop updates and the complete process cleanup occurred before the successful test, I cannot determine whether:
The most useful behavioral difference I observed was the Windows execution identity.
Before the recovery, GitHub-related commands ran as:
desktop-pplbrda\codexsandboxoffline
In that state:
After the updates, full application shutdown, background-process cleanup, and a fresh Codex session, Codex began requesting permission for GitHub network and credential access.
After I approved the request, the command ran as:
desktop-pplbrda\tc
GitHub CLI then recognized my existing authenticated GitHub account:
I subsequently completed an end-to-end native GitHub workflow from Codex:
No workaround was used during that successful workflow:
I have continued using Codex through several additional desktop updates and have not noticed the original problem returning.
The reports from other users appear consistent with an important distinction:
This suggests that the remaining issue may involve inconsistent approval or host-boundary routing rather than broken GitHub credentials themselves.
For affected users, one low-risk troubleshooting test may be:
whoami
gh auth status --hostname github.com
gh api user --jq .login
git ls-remote --exit-code origin HEAD
The important observation is whether Codex requests approval and whether approved execution changes the identity from CodexSandboxOffline to the normal Windows user.
I am sharing this as a successful recovery case and a possible diagnostic lead. I cannot attribute the recovery to a specific desktop version, and the independent reproductions in this thread show that the behavior is not yet resolved consistently for every user.
Post-update retest and approval-routing workaround — 2026-08-09
The issue still reproduces in the ordinary native Windows sandbox after updating:
OpenAI.Codex 26.803.5235.00.147.0-alpha.6.5<machine>\CodexSandboxOfflinegh auth statusfails to read%APPDATA%\GitHub CLI\config.ymlwithAccess is deniedgit ls-remoteover HTTPS fail withSEC_E_NO_CREDENTIALScodex --versionthrough the packaged WindowsApps executable still fails withAccess is deniedThe documented
unelevatedfallback has been tried repeatedly on this machine and has not provided a durable fix.New diagnostic result
Approval/host-boundary routing is sensitive to how the command is issued:
CodexSandboxOffline; every credentialed operation failed.Successful standalone controls:
gh auth status --hostname github.comrecognized the existing keyring-backed login.gh repo view <private-repo> --json ...read private repository metadata with the expected permission.git ls-remote https://github.com/<private-repo>.git HEADreturned the remote HEAD.Repeating
gh auth statuswithout explicit host escalation immediately returns to the original AppDataAccess is deniedfailure.This further isolates the problem to command classification and approval/host-boundary routing, rather than a broken GitHub login, repository, network connection, or Windows credential store.
Practical workaround
For this affected installation, Codex can perform GitHub work if it emits
ghand remotegitoperations as separate, explicitly escalated tool calls with narrowly scoped command rules. Implicit retries and compound PowerShell batches remain unreliable.Please investigate why an approved compound command can remain inside
CodexSandboxOffline, while an equivalent standalone scoped command correctly crosses to the host user. No credentials, tokens, usernames, or private repository names are included here.Corroboration from another current Windows 11 installation (2026-08-10).
Environment:
CodexSandboxOnlineRedacted
codex doctor --jsonreports:AcquireCredentialsHandle failed: SEC_E_NO_CREDENTIALS (0x8009030e);Additional isolation:
gh auth statuscurrently also reports its stored token invalid, so that is a separate local auth fact rather than proof of the Schannel root cause;whoamistill returnsCodexSandboxOnline. The host-routing workaround reported above is therefore unavailable in this permission profile.Please document or implement a supported brokered path for approved Git/GitHub commands to execute with the normal user's authorized credential context, without copying tokens into repositories/environment files, disabling the sandbox, or requiring WSL.
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.
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.