Skip to content

Restore multi-step error troubleshooting workflow in error middleware #7215

Description

@hemarina

Summary

PR #6883 consolidated the error middleware troubleshooting workflow from a multi-step flow (explain → guidance → brainstorm fix) into a single agent interaction (troubleshoot without fix). Based on PR review feedback (comment 1, comment 2), the original multi-step approach and fix with agent/Copilot SDK should be restored and updated.

Propose

Steps in troubleshooting:

A. Category selection

  1. Explain — What's happening and why
  2. Guidance — Step-by-step fix guidance
  3. Troubleshoot — Explain + Guidance
  4. Skip — Skip
  5. Always choice available for each selection

B. Fix (Agent-driven fix)

C. Retry azd command or exit

Problem

  1. Single summary is too long: Internal user feedback indicated the consolidated troubleshooting summary is too verbose. The multi-step approach lets users skip, explain, guidance or troubleshoot based on their experience with the error message.
  2. Lack of fix: The new flow generates a troubleshooting summary and asks if users want to retry. But the fix is never applied.

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions