Skip to content

[bug]: Failed to add local project when gh CLI is authenticated via SSH key #1007

@yigitkonur

Description

@yigitkonur

Bug Description

here is the issue, i can't add local project:

CleanShot.2026-02-20.at.13.56.18.mp4

when I'm trying to add a local project, it fails to connect github:

Image

i've upgraded my gh by brew to most recent version: v2.87.0 already.


then i logged out all (my gh was auth by SSH key, probably it was root cause?) gh profiles and re-login by HTTPS, restarted emdash and problem fixes.

Steps to Reproduce

Steps to Reproduce

  1. Authenticate gh CLI via SSH key (not HTTPS)
    gh auth login
    # choose SSH when prompted
  2. Open Emdash
  3. Attempt to add a local project
  4. Observe the connection failure — Emdash fails to connect to GitHub and the local project cannot be added

Environment:

  • gh version: v2.87.0 (installed via Homebrew)
  • gh auth method: SSH key

Workaround / Fix:

Log out all gh profiles and re-authenticate using HTTPS, then restart Emdash:

gh auth logout
gh auth login
# choose HTTPS when prompted

After restarting Emdash, adding a local project works as expected.


Root Cause (suspected):
Emdash appears to not support gh CLI sessions authenticated via SSH key — only HTTPS-based authentication works correctly.

Actual vs Expected Behavior

Actual Behavior

When gh CLI is authenticated via SSH key, attempting to add a local project in Emdash fails silently — the app is unable to connect to GitHub and the project is never added.

Expected Behavior

Emdash should successfully connect to GitHub and add the local project regardless of the gh CLI authentication method (both SSH key and HTTPS should work).

emdash Version

latest emdash

Operating System

latest macos

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions