Skip to content

v0.398 Non Interactive Mode Exits Immediately #1181

@t36campbell

Description

@t36campbell

Describe the bug

I am having a similar issue copilot -p flag exits silently without output in WSL2/VS Code terminal

  • Interactive mode (copilot) works without issue
  • Non-interactive mode (copilot -p "prompt") exits with code 0 but produces no output
  • Same command works on macOS

I installed when vscode auto installed with extension then reinstalled the CLI through npm and also the bash install script.

I also encountered weird issue when trying to installed a specific version on the cli. See: #1183

Affected version

GitHub Copilot CLI 0.0.398.

Steps to reproduce the behavior

  • Install Copilot (any method, extension, npm, etc)
  • Run copilot it should open and allow you to login
  • Run copilot with a prompt using `-p "prompt text"

Expected behavior

-p enables headless / non interactive mode allowing for use in scripting

Additional context

OS: Windows 11 (WSL2 - Ubuntu 24.04.2 LTS)
Kernel: 6.6.87.2-microsoft-standard-WSL2
Node.js: v22.16.0
npm: 11.4.2
GitHub Copilot CLI: 0.0.398
Terminal: VS Code 1.108.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions