codex - 💡(How to fix) Fix Codex triggers Git/SSH activity on app focus in SSH-backed repos, causing 1Password SSH key prompts without an explicit user action [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17655Fetched 2026-04-14 05:41:37
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×2
RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using (From “About Codex” dialog)?

26.409.20454

What subscription do you have?

Plus

What platform is your computer?

macOS: 26.4 (25E246)

What issue are you seeing?

When I open a project in the Codex desktop app, Codex appears to perform project-open refresh activity that correlates with internal Git worker activity. If the repository remote uses SSH, this causes my SSH agent/password manager to prompt for key access even though I did not explicitly run a remote Git command.

If I switch the exact same repository remote from SSH to HTTPS, the prompt goes away.

Environment

Codex desktop app version: 26.409.20454 macOS: 26.4 (25E246) SSH agent: external agent/password manager integrated through ~/.ssh/config Relevant SSH config

Host * IdentityAgent "/path/to/ssh-agent.sock" Repro steps

Set the repository remote to SSH: git remote set-url origin [email protected]:OWNER/REPO.git Launch Codex. Open the project in Codex. Wait for project-open initialization/refresh. An SSH credential/key prompt appears. Control test

Set the same repository remote to HTTPS: git remote set-url origin https://github.com/OWNER/REPO.git Launch Codex. Open the same project in Codex. No SSH credential/key prompt appears.

Expected behavior

Opening a project should not trigger SSH authentication or any remote Git check unless I explicitly initiate an action that requires it.

Actual behavior

When the project remote uses SSH, opening the project in Codex triggers behavior that surfaces an SSH credential/key prompt. When the same project uses HTTPS, the prompt does not appear.

Frequency

Reproduces consistently with SSH remote Does not reproduce with HTTPS remote What I checked

I could not find a user-facing Codex setting that explains or disables this behavior. Shell startup files are not the cause. Repository hooks are not the cause. The issue reproduces after a full reboot. The issue depends on the repository remote protocol: SSH reproduces, HTTPS does not. Relevant evidence

Codex logs show focus/app lifecycle activity and internal Git worker activity around project open/focus. I did not find an explicit git fetch line in the accessible logs, so the exact remote Git operation is still unconfirmed.

Short log slice

2026-04-13T14:28:42.960Z app.activate 2026-04-13T14:28:42.982Z window.focus 2026-04-13T14:28:45.755Z git_worker_invocations_total=249 2026-04-13T14:28:45.755Z git_worker_invocations_last_30s=50 Additional note

This appears to be tied to Codex project-open refresh behavior rather than a separately installed Git integration. From the user perspective, it looks like opening a project in an SSH-backed repository can trigger SSH key usage without explicit intent. I believe this is fetching marketplace and plugin updates

What steps can reproduce the bug?

Set the repository remote to SSH: git remote set-url origin [email protected]:OWNER/REPO.git Launch Codex. Open the project in Codex. Wait for project-open initialization/refresh. An SSH credential/key prompt appears. Control test

Set the same repository remote to HTTPS: git remote set-url origin https://github.com/OWNER/REPO.git Launch Codex. Open the same project in Codex. No SSH credential/key prompt appears.

What is the expected behavior?

No response

Additional information

No response

extent analysis

TL;DR

The issue can likely be mitigated by configuring Codex to avoid triggering SSH authentication during project-open refresh, possibly by adjusting Git worker settings or repository configurations.

Guidance

  • Investigate Codex settings or configurations that may control Git worker behavior or project-open refresh activity to see if there's an option to disable or modify this behavior.
  • Review the Codex logs more thoroughly to confirm the exact Git operation being performed during project-open refresh, which could help in identifying a more specific solution.
  • Consider testing with different SSH configurations or Git versions to see if the issue is specific to the current setup.
  • Look into whether there are any environment variables or flags that can be set to influence Codex's Git worker behavior, potentially preventing unnecessary SSH authentication prompts.

Example

No specific code snippet can be provided without more details on Codex's internal workings or APIs, but an example of how one might adjust Git configurations to avoid authentication prompts could involve setting up SSH keys with specific permissions or configuring the SSH agent to automatically handle certain repositories.

Notes

The solution may depend on specifics of the Codex application and its interaction with Git and SSH, which are not fully detailed in the provided information. Further investigation into Codex's documentation or support resources may be necessary.

Recommendation

Apply workaround: Given the current information, the best course of action seems to be finding a workaround, such as adjusting SSH configurations or using HTTPS for repository remotes when possible, until a more direct solution or fix from Codex is available.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING