fix: simplify max-turns error message by removing contradictory example#18009
Merged
fix: simplify max-turns error message by removing contradictory example#18009
Conversation
… copilot Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix confusing error message for max-turns support
fix: correct max-turns error message to show claude example instead of copilot
Feb 24, 2026
Contributor
|
@copilot remove this part of the mssage |
Contributor
|
Commit pushed: |
Contributor
|
@copilot apply comment in #18009 (comment) |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Copilot
AI
changed the title
fix: correct max-turns error message to show claude example instead of copilot
fix: simplify max-turns error message by removing contradictory example
Feb 24, 2026
pelikhan
approved these changes
Feb 24, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a confusing and self-contradictory error message for the max-turns feature validation. The original error told users that the Copilot engine doesn't support max-turns, but then showed an example configuration that incorrectly used max-turns with the Copilot engine.
Changes:
- Simplified the error message in
agent_validation.goto remove the misleading example and contradictory guidance - Added a smoke test artifact file
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| smoke-test-22331673771.json | Smoke test artifact file (automated test output) |
| pkg/workflow/agent_validation.go | Simplified the max-turns not supported error message by removing the self-contradictory example |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
Author
Already applied in 7d7bb31. The error message is: |
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.
The
max-turns not supportederror for the Copilot engine was self-contradictory — it told users to removemax-turns, then showed an example usingcopilotwithmax-turns(which also doesn't support it).Change
Simplified the error message in
pkg/workflow/agent_validation.goto remove the misleading example entirely:Before:
After:
Original prompt
max-turns not supportedexample contradicts the error #17995💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
✨ PR Review Safe Output Test - Run 22331673771