[BUG] Marketplace update fires unconditional `ssh -T git@github.com` probe despite CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1

Status Fixed / completed
Reported on v2.1.137
Maintainer reply ✓ Yes — claude[bot]
Activity 4 comments · opened May 16, 2026 · closed May 19, 2026
💡 Likely answer: A maintainer (claude[bot], contributor) responded on this thread — see the highlighted reply below.

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The plugin marketplace update path executes an unconditional ssh -T git@github.com connectivity probe before fetching a marketplace, even when
CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1 is set and the marketplace's origin is already an HTTPS URL. The probe doesn't affect functional outcome
(the HTTPS fetch succeeds either way), but it noisily wakes the user's SSH agent — for users on 1Password / gnome-keyring this means a popup or
authorization prompt every time the marketplace is refreshed.

What Should Happen?

When CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1 is set (or the resolved marketplace remote is already HTTPS), skip the ssh -T git@github.com probe
entirely.

Error Messages/Logs

strace -fe trace=execve,connect on the claude process tree captures the probe:

[pid 107447] execve("/run/current-system/sw/bin/ssh", ["ssh", "-T", "-o", "BatchMode=yes", "-o", "ConnectTimeout=2", "-o", "StrictHostKeyChecking=yes", "git@github.com"], ...) = 0
[pid 107447] connect(4, {sa_family=AF_UNIX, sun_path="/home/$USER/.1password/agent.sock"}, 110) = 0

Meanwhile, the actual fetch is pure HTTPS:
trace: run_command: GIT_DIR=.git git remote-https origin https://github.com//.git

So the SSH probe is purely informational — it never affects the fetch path.

Steps to Reproduce

  1. Configure a custom marketplace with a github source (HTTPS remote in the resulting marketplace clone).
  2. Set CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1.
  3. Click "Update marketplace" (or trigger marketplace auto-update).
  4. Observe an SSH agent authorization prompt every time, even though no SSH access is used for the actual fetch.

Claude Model

Not sure / Multiple models

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.137

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

4 Comments

github-actions[bot] · 3 months ago

Found 1 possible duplicate issue:

  1. https://github.com/anthropics/claude-code/issues/14485

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

mscharley · 3 months ago

That is a related ticket, but should be fixed now with CLAUDE_CODE_PLUGIN_PREFER_HTTPS. This isn't about any particular plugin marketplace clone, it's about the workflow surrounding the update process.

claude[bot] contributor · 3 months ago

This issue was fixed as of version 2.1.144.

github-actions[bot] · 1 month ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.