这是indexloc提供的服务,不要输入任何密码
Skip to content

[Bug]: Kubectl-AI on PowerShell gives garbage characters #405

@nisranjan

Description

@nisranjan

Environment (please complete the following):

  • OS: Windows 11 Pro x64
  • Shell : PowerShell & DOS
  • kubectl-ai version (run kubectl-ai version): v0.0.15
  • LLM provider: gemini
  • LLM model: gemini-2.0-flash

Describe the bug
The command line interface for kubect ai is unusable when using Windows PowerShell since the output has lots of garbage characters, see below for output of simple kubectl-ai command after setting up GEMINIA_API_KEY

Image

Similarly when using kubectl-ai version

Image

Similarly when testing kubectl-ai with Windows DOS shell, we get similar issues (see below)

Image

To Reproduce
Steps to reproduce the behavior:

  1. Use a Windows 11 Pro Laptop and follow the steps for installing Kubectl-AI
  2. Add the GEMINI_API_KEY to environment variables using $env:GEMINI_API_KEY = "abcd_xyzw_123"
  3. Run command 'kubect-ai'
  4. See error

Expected behavior
The kubect-ai command interface asking questions

Additional context
None at the moment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions