Skip to content

fix(ai-agents): monitor agents outside azd projects - #9517

Open
Glenn Harper (glharper) wants to merge 1 commit into
mainfrom
copilot/issue-9469-monitor-outside-project
Open

fix(ai-agents): monitor agents outside azd projects#9517
Glenn Harper (glharper) wants to merge 1 commit into
mainfrom
copilot/issue-9469-monitor-outside-project

Conversation

@glharper

Copy link
Copy Markdown
Member

Summary

  • allow azd ai agent monitor <agent-name> to target a hosted agent outside an azd project
  • preserve existing azure.yaml service and environment resolution when a project is available
  • derive the remote session key from the resolved Foundry project endpoint so persisted sessions work outside a project
  • provide monitor-specific endpoint guidance and document the new command behavior

Validation

  • go test ./... -count=1
  • go build ./...
  • golangci-lint run ./internal/cmd/...

Fixes #9469

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: c40387ab-edb9-43f1-8bb1-a9cd9f1d0de2
@github-actions

Copy link
Copy Markdown

📋 Prioritization Note

Thanks for the contribution! The linked issue isn't in the current milestone yet.
Thank you for logging this issue; our team is reviewing it. If you need urgent prioritization, tag Rick Winter (@RickWinter) and Kristen Womack (@kristenwomack) to let us know.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
21 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Enables monitoring hosted agents outside azd projects while preserving project-based resolution.

Changes:

  • Adds direct hosted-agent resolution and endpoint guidance.
  • Derives persisted-session keys from Foundry endpoints.
  • Adds resolution, error, and session tests.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
monitor.go Implements external-project monitoring.
monitor_test.go Tests new resolution paths.
helpers_test.go Supports simulated project errors.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +165 to +167
if name != "" && isMissingAzdProjectError(err) {
return &AgentServiceInfo{AgentName: name}, nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ext-agents azure.ai.agents extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[azure.ai.agents] Allow azd ai agent monitor outside an azd project and improve the error

2 participants