Skip to content

[BUG] cli: kagent version should not fail when controller is unavailable #868

@marcinkubica

Description

@marcinkubica

📋 Prerequisites

  • I have searched the existing issues to avoid creating a duplicate
  • By submitting this issue, you agree to follow our Code of Conduct
  • I am using the latest version of the software
  • I have tried to clear cache/cookies or used incognito mode (if ui-related)
  • I can consistently reproduce this issue

🎯 Affected Service(s)

Not Sure

🚦 Impact/Severity

Minor inconvenience

🐛 Bug Description

❯ kagent version
Error starting port-forward: failed to establish connection to kagent-controller. error connecting to server. Please run 'install' command first

🔄 Steps To Reproduce

run version when not able to port forward locally to the controller

🤔 Expected Behavior

should warn is unable to determine backend (no connection) and not fail

📱 Actual Behavior

No response

💻 Environment

No response

🔧 CLI Bug Report

No response

🔍 Additional Context

No response

📋 Logs

📷 Screenshots

No response

🙋 Are you willing to contribute?

  • I am willing to submit a PR to fix this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions