github / github/copilot-cli

NixOS keychain support is broken

オープン
#3,081 コメント 0 件 リアクション 3 件 担当者 0 名 GitHub で見る
area:authentication area:platform-linux
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

### Describe the bug

Copilot fails to access the system keychain despite libsecret, GNOME Keyring and Seahorse being installed.

```
$ copilot login
To authenticate, visit https://github.com/login/device and enter code XXXX-XXXX.
Waiting for authorization...
System keychain unavailable. Store token in plaintext config file? (y/N)
```

### Affected version

GitHub Copilot CLI 1.0.32

### Steps to reproduce the behavior

1. Install libsecret, GNOME Keyring, Seahorse, and Copilot CLI

Home Manager:
```
home.packages = with pkgs; [
libsecret
github-copilot-cli
]
```

NixOS:
```
services.gnome.gnome-keyring.enable = true;
programs.seahorse.enable = true;
```
2. `nixos-rebuild switch`, `reboot`
3. Run `copilot login`

### Expected behavior

That Copilot CLI stores the token with a keychain instead of prompting to store it in plaintext.

### Additional context

```
~ nix-info --markdown
- system: `"aarch64-linux"`
- host os: `Linux 6.18.24, NixOS, 26.05 (Yarara), 26.05.20260427.1c3fe55`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.34.6`
- channels(root): `"nixos-25.11"`
- nixpkgs: `/nix/store/l61vfkyy0qrnz9bmgx84fa7z3bjzhyp4-source`

~ fastfetch
...
Host: QEMU Virtual Machine (virt-10.0)
Kernel: Linux 6.18.24
Shell: fish 4.6.0
WM: niri 26.04 (Wayland)
Terminal: foot 1.26.1
CPU: Virtualized Apple Silicon (8)
GPU: RedHat Virtio 1.0 GPU

~ command -v secret-tool
/etc/profiles/per-user//bin/secret-tool
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

`copilot login` のエントリポイントから開始し、libsecret、GNOME Keyring、Seahorse、`secret-tool` がインストールされた NixOS 上で問題を再現します。システムキーリングが利用不可と報告される理由を追跡します。完了条件は、プレーンテキスト設定のプロンプトを表示せずにトークンがキーリングに保存されることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
linux, nixos, shell
領域
authentication, cli, security
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。