Skip to content

[BUG] Claude Code triggers 1Password SSH prompts on local-only repositories #17537

Description

@azalea666

Preflight Checklist

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

What's Wrong?

Environment

  • OS: macOS (Darwin 24.6.0)
  • IDE: VSCodium
  • Claude Code Version: 2.0.75
  • Repository: Local only (no remote configured)

Description

Claude Code VSCode extension triggers 1Password SSH agent authentication prompts when opening a chat window, even for git repositories that have no remote configured.

The dialog appears 3 times consecutively:

  • Message: "Allow VSCodium to use sshkey"
  • Describes an SSH key configured for a completely different project
  • Occurs after the Claude Code window loads
  • If "Deny" is clicked, the prompt repeats 3 times

Actual Behavior

Claude Code appears to be running git commands that trigger the SSH agent, even though there's no remote to authenticate to.

Additional Context

  • The prompts appear after the Claude Code window loads (not during VSCodium startup)

  • Disabling GitLens has no effect

  • These VSCode settings have no effect:

    "git.autorefresh": false,
    "git.autofetch": false,
    "git.autoRepositoryDetection": false
  • The gitStatus context appears in conversations, suggesting Claude Code is running git commands on initialization

Impact

This creates unnecessary friction and security prompts for users working on local-only repositories, and inappropriately accesses SSH credentials for unrelated projects.

What Should Happen?

Claude Code should not trigger SSH authentication for:

  • Local-only repositories with no remote
  • Any git status checks that don't require network access

Error Messages/Logs

Steps to Reproduce

  1. Have a global SSH config with 1Password agent:

    Host *
      IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
    
  2. Open a git repository with no remote configured:

    git remote -v  # Returns nothing
    cat .git/config  # Shows no [remote] section
  3. Open Claude Code chat window in VSCodium

  4. Observe 1Password prompt appears 3 times

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.0.76

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions