Repository navigation
fix: stop advertising ? hint in agent init env prompts - #10445
Travis Angevine (trangevi) merged 3 commits into
Conversation
azd ai agent init prompted for missing azure.yaml environment variables with a HelpMessage while also setting IgnoreHintKeys, so the prompt showed [Type ? for hint] but typing '?' entered a literal '?' that could be persisted as the value. - ux: only auto-generate the '[Type ? for hint]' affordance when hint keys are enabled (IgnoreHintKeys already covers secret prompts). - azure.ai.agents: keep '?' as literal input (URLs, secrets), drop the unreachable HelpMessage, and print the storage guidance above the prompts. - Add regression tests for both. Fixes Azure#10289
|
Azure Pipelines: Successfully started running 3 pipeline(s). 22 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
🟡 Changes recommended
The prompt behavior needs required interactive-scenario coverage, and its public option documentation is stale.
2 open findings
What changed in this PR
Fixes misleading help hints while preserving literal ? characters in agent environment values.
Changes:
- Suppresses unreachable auto-generated hints.
- Moves storage guidance above environment prompts.
- Adds core and extension regression tests.
| File | Description |
|---|---|
cli/azd/pkg/ux/prompt.go |
Gates automatic hints on enabled hint keys. |
cli/azd/pkg/ux/confirm_prompt_test.go |
Tests hint suppression and custom hints. |
cli/azd/extensions/azure.ai.agents/internal/cmd/init_env.go |
Revises prompt guidance and preserves literal ?. |
cli/azd/extensions/azure.ai.agents/internal/cmd/init_env_test.go |
Tests prompt options and persisted URL values. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
azure.ai.agents PR buildNote This is an unsigned development build. Install it only if you trust this PR. Install the extension: azd ext install "https://azuresdkartifacts.z5.web.core.windows.net/azd/extensions/pr/10445/azure-ai-agents.zip"
|
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash: pwsh: WindowsPowerShell install MSI install Standalone Binary
MSI
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
JeffreyCA
left a comment
There was a problem hiding this comment.
Looks good, approving cli/azd/pkg/ux changes


azd ai agent init prompted for missing azure.yaml environment variables with a HelpMessage while also setting IgnoreHintKeys, so the prompt showed [Type ? for hint] but typing '?' entered a literal '?' that could be persisted as the value.
Fixes #10289