Skip to content

Conversation

@peterj
Copy link
Collaborator

@peterj peterj commented Jan 26, 2026

No description provided.

@peterj peterj requested a review from EItanya as a code owner January 26, 2026 22:18
Copilot AI review requested due to automatic review settings January 26, 2026 22:18
@peterj peterj requested a review from yuval-k as a code owner January 26, 2026 22:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for reading HOST and PORT configuration from environment variables in the kagent-adk CLI. The implementation introduces a resolve_host_port helper function that attempts to merge command-line arguments, environment variables, and default values. However, the implementation has critical issues with priority logic that contradict the documented behavior.

Changes:

  • Added resolve_host_port function to handle host/port resolution with environment variable support
  • Updated static and run CLI commands to accept optional host/port parameters with environment variable fallback
  • Modified parameter annotations to use typer.Option with envvar support

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants