Remove hardcoded invoke suggestion from azd ai agent run#7898
Draft
Remove hardcoded invoke suggestion from azd ai agent run#7898
azd ai agent run#7898Conversation
3 tasks
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/00b3c9aa-55ab-45f4-a96f-e75670bd89d1 Co-authored-by: therealjohn <1501196+therealjohn@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Remove incorrect payload suggestions on run command
Remove hardcoded invoke suggestion from Apr 23, 2026
azd ai agent run
jongio
reviewed
Apr 29, 2026
Member
jongio
left a comment
There was a problem hiding this comment.
Changes look correct - removes the hardcoded "Hello!" suggestion that doesn't match most agent protocols.
Both locations (the Long description and the runtime fmt.Printf output) are cleaned up. The remaining \n prefix on the Printf properly preserves blank-line spacing. No test impact.
Minor note: invoke.go:63 still shows azd ai agent invoke --local "Hello!" in the invoke command's own examples. That's a different context (documenting invoke's syntax vs suggesting a specific payload from run), but worth considering whether the invoke examples should also use a more protocol-appropriate placeholder.
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.
azd ai agent runwas printing a staticazd ai agent invoke --local "Hello!"suggestion that is incorrect for agents using the/invocationsprotocol — the payload shape is agent-specific and"Hello!"is not a valid invocation body in most cases, leading to confusing runtime errors.Changes
runRun(): Remove the three-line "After startup, in another terminal, try: …" block; retain only theStarting agent on http://localhost:<port> (Ctrl+C to stop)line.newRunCommand()Longdescription: Remove the trailing "Use a separate terminal to invoke the running agent: …" paragraph for the same reason.