Skip to content

[BUG] Background refresh in devconatiner does not result in SSH key forwarding prompt if not yet done #635

@brykgroup-andrews

Description

@brykgroup-andrews

Describe the bug
When using inside a devcontainer, the IDE can forward the SSH key to the remote host via the agent.
When the IDE attempts to hit the SSH agent, but the forwarding has not happened yet, the IDE shows a prompt to forward the key.

While gittoolbox can use this forwarded key, it does not prompt for access to this key, and as a result will just show that fetch has failed until it is explicitly allowed by another process.

The prompt looks like this:
Image

To Reproduce
Steps to reproduce the behavior:

  1. Have an SSH agent for git auth
  2. Start a devcontainer with mounted sources on a git repo, with the project already configured in IDEA
  3. Wait for gittoolbox to trigger background refresh, see it fails due to bad auth
  4. Allow forwarding via explicit refresh
  5. Gittoolbox's background refresh works correctly.

Expected behavior
Gittoolbox should either prompt for key access, suppress the error, or provide a clickable notification action to trigger key forwarding

Plugin version
600.1.13+243

IDE version
RubyMine 2025.2.4 (reproduces with any up to date IDE, both recent and not)
Arch Linux latest
Gateway host can be any platform supported by the official devcontainers extension (so anything basically)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions