CommandCodeAI / CommandCodeAI/command-code
Login fails on sandboxed WSL instance
Nessuno ha ancora preso questa issue.
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 4k
- Fork
- 350
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Summary
Command Code immediately quits after launching the first time on an WSL sandboxed image where it does not have access to the host volumes.
Expected Behavior
I disable mounting host volumes in WSL to sandbox my image, install commandcode, and run it to get started. I expect to paste in my API key and go.
Actual Behavior
~$ cmdc
✔ Ready to log in
┌ Command Code Authentication
✖ CRITICAL: Uncaught Exception!
This is an unexpected error. Please file a bug report at https://github.com/CommandCodeAI/command-code/issues/new
✖ ERROR → Error
ℹ REASON → spawn /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe ENOENT
ℹ ERROR STACK ↓
Error: spawn /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:507:16)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
ℹ Trace ID: unknown
Share this ID with support to help debug your issue.
… Complete login in your browser...
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ API Key: Paste your API key... │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Authorize in browser, or paste API key here
If your browser doesn't open, go to this link:
https://commandcode.ai/studio/auth/cli?callback=rest_of_link
Ctrl+C to cancel
~$
Steps to reproduce the issue
- Install WSL
wsl -u root- Disable auto mounting & appending of Windows paths by setting /etc/wsl.conf to the following:
[boot]
systemd=true
[automount]
enabled=false
[interop]
appendWindowsPath=false
wsl --shutdownwsl- install nvm, then node, then commandcode
- run cmdc for the first time.
Command Code Version
0.35.0
Operating System
Windows
Terminal/IDE
PowerShell
Shell
bash
Additional context
No response
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo il flusso di autenticazione alla prima esecuzione di cmdc con le impostazioni /etc/wsl.conf mostrate e ispeziona il punto di ingresso che avvia il browser o crea il processo PowerShell. Il lavoro è completato quando il login può procedere in un'istanza WSL sandboxed senza accesso ai percorsi Windows montati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- bash, node.js, powershell
- Ambito
- authentication, cli, operating-systems
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100