Skip to content

Fix placeholder warning to reference azure.yaml instead of agent.yaml#8867

Merged
therealjohn merged 3 commits into
mainfrom
trangevi/fix-8855-placeholder-warning-azure-yaml
Jun 30, 2026
Merged

Fix placeholder warning to reference azure.yaml instead of agent.yaml#8867
therealjohn merged 3 commits into
mainfrom
trangevi/fix-8855-placeholder-warning-azure-yaml

Conversation

@trangevi

Copy link
Copy Markdown
Member

The unresolved placeholder warning and nextstep suggestions still referenced agent.yaml, but agent definitions now live inline in azure.yaml. Users saw:

Warning: agent.yaml has 1 unresolved placeholder(s): TOOLBOX_ENDPOINT.
Edit agent.yaml and replace each `{{NAME}}` with the actual value before deploying.

This updates all user-facing strings (the warning message and the nextstep "edit ..." suggestions) to say azure.yaml, along with related code comments and test assertions.

Files changed:

  • parameters.go -- warning fmt.Printf and function doc comments
  • nextstep/resolver.go -- suggestion command/description strings and comments
  • nextstep/state.go -- comment describing the suggestion text
  • nextstep/resolver_test.go and format_test.go -- expected assertion strings

Fixes: #8855

…#8855)

The unresolved placeholder warning and nextstep suggestions still
referenced agent.yaml, but agent definitions now live inline in
azure.yaml. Update all user-facing strings and related comments.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 29, 2026 21:48
@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 @RickWinter and @kristenwomack to let us know.

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

This PR updates the azure.ai.agents extension’s unresolved-placeholder warning and related “Next:” guidance so users are directed to edit azure.yaml (where agent definitions now live) rather than the obsolete agent.yaml, aligning output with the current project shape and fixing #8855.

Changes:

  • Updated the unresolved placeholder warning text to reference azure.yaml.
  • Updated nextstep placeholder “edit …” suggestions to reference azure.yaml.
  • Updated related comments and test expectations to match the new wording.

Reviewed changes

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

Show a summary per file
File Description
cli/azd/extensions/azure.ai.agents/internal/pkg/agents/agent_yaml/parameters.go Updates the unresolved-placeholder warning and associated comments to reference azure.yaml.
cli/azd/extensions/azure.ai.agents/internal/cmd/nextstep/state.go Adjusts placeholder-related commentary to align with azure.yaml guidance.
cli/azd/extensions/azure.ai.agents/internal/cmd/nextstep/resolver.go Updates placeholder fix-up suggestion strings to reference azure.yaml.
cli/azd/extensions/azure.ai.agents/internal/cmd/nextstep/resolver_test.go Updates assertions expecting the placeholder fix-up suggestion text.
cli/azd/extensions/azure.ai.agents/internal/cmd/nextstep/format_test.go Updates formatting test fixtures/expected output for the azure.yaml placeholder suggestion text.

Comment thread cli/azd/extensions/azure.ai.agents/internal/cmd/nextstep/state.go

@jongio jongio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

resolver.go:242 still has a user-facing description shown in the "Next:" suggestions:

Description: "referenced by agent.yaml but not set in azd env",

This is the description for azd env set suggestions when manual vars are missing. If the intent is to update all user-visible references to agent.yaml, this one should also say azure.yaml (or whatever phrasing fits the new model).

…d state comments

- resolver.go:242 description string now says azure.yaml
- state.go comment block updated (lines 533, 537)
- resolver_test.go assertion updated

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

@jongio jongio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The new commit addresses my prior feedback: resolver.go:242 now correctly says "referenced by azure.yaml". Tests and comments in state.go are updated too.

One remaining inconsistency in format_test.go: the test fixture at line 211 and expected output at line 227 still reference "agent.yaml" while other strings in the same test case were updated to "azure.yaml".

Comment thread cli/azd/extensions/azure.ai.agents/internal/cmd/nextstep/format_test.go Outdated

@huimiu huimiu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good overall -- one stale cross-reference in a file outside the diff worth catching.

cli/azd/extensions/azure.ai.agents/internal/pkg/agents/agent_yaml/placeholders.go line 42: the comment reads "concrete 'edit agent.yaml' hint" but after this PR the nextstep guidance emits edit azure.yaml: replace ... instead. The comment explicitly says the two call sites must agree; updating it to 'edit azure.yaml' keeps that true.

(azd-code-reviewer)

- format_test.go lines 211/227: description now says azure.yaml
- placeholders.go line 42: comment cross-reference updated

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

@jongio jongio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

My earlier comments are addressed - format_test.go and placeholders.go now correctly reference azure.yaml.

One remaining stale comment in format.go (not in this diff): the highlightCommand doc comment still says "edit agent.yaml: ..." instructions (around line 195). The matching comment in format_test.go line 428 was updated to "edit azure.yaml: ..." but the source file wasn't. Trivial fix if you want to keep comments consistent.

@therealjohn therealjohn merged commit a48c2ab into main Jun 30, 2026
26 checks passed
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.

Warning on missing placeholders still mentions agent.yaml

5 participants