-
Notifications
You must be signed in to change notification settings - Fork 639
Open
Labels
Description
Describe the bug
This issue is related to Z shell and https://github.com/direnv/direnv, and possibly https://github.com/nix-community/nix-direnv.
I think the issue is completely unrelated to Nix.
I have tested both Copilot CLI 0.0.365 and 0.0.367.
The error is:
Invalid session ID: 1. Please supply a valid session ID to read ...
It occurs in these cases:
- shell is Z shell; then
direnv allowto configure the shell; thencopilot
or nix develop -c /bin/zsh; thencopilot
It does not occur when:
- shell is Z shell and not using
direnv(direnv revoke); thencopilot
or - shell is
bash; thendirenv allowto configure the shell; thencopilot
or - shell is arbitrary; then
nix developto open Nix shell (default isbash); thencopilot
Therefore, I suspect the issue is the combination of Z shell and direnv.
The issue #640 does not mention direnv, hence the new issue.
Workaround
- Enter the
nix developshell (ornix-shell); this is abashshell by default - then start
copilot
or
bash- then
direnv allow
The valid session ID error should not happen.
Affected version
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
Additional context
No response