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 allow to configure the shell; then copilot
or
nix develop -c /bin/zsh; then copilot
It does not occur when:
- shell is Z shell and not using
direnv (direnv revoke); then copilot
or
- shell is
bash; then direnv allow to configure the shell; then copilot
or
- shell is arbitrary; then
nix develop to open Nix shell (default is bash); then copilot
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 develop shell (or nix-shell); this is a bash shell by default
- then start
copilot
or
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
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:
It occurs in these cases:
direnv allowto configure the shell; thencopilotor
nix develop -c /bin/zsh; thencopilotIt does not occur when:
direnv(direnv revoke); thencopilotor
bash; thendirenv allowto configure the shell; thencopilotor
nix developto open Nix shell (default isbash); thencopilotTherefore, I suspect the issue is the combination of Z shell and direnv.
The issue #640 does not mention
direnv, hence the new issue.Workaround
nix developshell (ornix-shell); this is abashshell by defaultcopilotor
bashdirenv allowThe
valid session IDerror should not happen.Affected version
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
Additional context
No response