fix(ai-agents): monitor agents outside azd projects - #9517
Open
Glenn Harper (glharper) wants to merge 1 commit into
Open
fix(ai-agents): monitor agents outside azd projects#9517Glenn Harper (glharper) wants to merge 1 commit into
Glenn Harper (glharper) wants to merge 1 commit into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: c40387ab-edb9-43f1-8bb1-a9cd9f1d0de2
📋 Prioritization NoteThanks for the contribution! The linked issue isn't in the current milestone yet. |
|
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. |
Contributor
There was a problem hiding this comment.
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 | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
azd ai agent monitor <agent-name>to target a hosted agent outside an azd projectazure.yamlservice and environment resolution when a project is availableValidation
go test ./... -count=1go build ./...golangci-lint run ./internal/cmd/...Fixes #9469