Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 16, 2026

This PR adds metadata capability and AZD_EXT_DEBUG debugger support to all azd extensions. These enhancements enable better telemetry tracking (via command path resolution) and improved debugging workflows for extension developers.

Changes

For Each Extension

  1. Metadata Capability: Added metadata command to expose extension command structure for telemetry (captures full extension command path, see tracing: capture full extension command path using metadata capability #6528)
  2. Debugger Support: Added azdext.WaitForDebugger() call to support AZD_EXT_DEBUG=true environment variable for debugging extensions (Add azdext.WaitForDebugger to extensions for improved debugging #6542)

For microsoft.azd.extensions (azd x)

  • Add metadata and framework service provider capabilities to azd x init wizard
  • Update Go scaffolding with metadata command, azdext.WaitForDebugger(), and ExtensionHost pattern

Testing

  • Built and tested all extensions locally
  • Verified metadata commands return correct command structure
  • Verified AZD_EXT_DEBUG=true prompts for debugger attachment
Original prompt

This section details on the original issue you should resolve

<issue_title>Add metadata capabilities to azure.ai.agents and azure.ai.finetune extensions</issue_title>
<issue_description>See #6496

We'll need to bump the github.com/azure/azure-dev/cli/azd dependency in go.mod</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 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.

Copilot AI changed the title [WIP] Add metadata capabilities to azure.ai.agents and azure.ai.finetune Add metadata capabilities to azure.ai.agents and azure.ai.finetune extensions Jan 16, 2026
Copilot AI requested a review from JeffreyCA January 16, 2026 02:25
Copy link
Contributor

@JeffreyCA JeffreyCA left a comment

Choose a reason for hiding this comment

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

@copilot can you make these changes, and in addition add improved debugging as described in #6542?

Copy link
Contributor Author

Copilot AI commented Jan 16, 2026

@copilot can you make these changes, and in addition add improved debugging as described in #6542?

All changes applied in commit 4664a22:

Version updates:

  • azure.coding-agent → 0.6.0
  • microsoft.azd.extensions → 0.9.0

WaitForDebugger (#6542) added to:

  • azure.ai.agents: init command
  • azure.ai.finetune: init, jobs submit, jobs show, jobs list commands
  • azure.coding-agent: config command
  • microsoft.azd.concurx: up command
  • microsoft.azd.extensions: init, release commands

Changelog entries simplified to "Add metadata capability" and "Add azdext.WaitForDebugger support for improved debugging".

Copilot AI requested a review from JeffreyCA January 16, 2026 19:16
@JeffreyCA JeffreyCA force-pushed the copilot/add-metadata-capabilities branch from 4c3d2b2 to 86e1276 Compare January 16, 2026 22:07
@JeffreyCA JeffreyCA changed the title Add metadata capabilities to azure.ai.agents and azure.ai.finetune extensions Add metadata capabilities and AZD_EXT_DEBUG support to extensions Jan 16, 2026
@JeffreyCA JeffreyCA force-pushed the copilot/add-metadata-capabilities branch 2 times, most recently from 5c64495 to 1222de8 Compare January 17, 2026 00:12
@JeffreyCA JeffreyCA force-pushed the copilot/add-metadata-capabilities branch from 5786072 to 5af9b53 Compare January 21, 2026 23:16
@JeffreyCA JeffreyCA marked this pull request as ready for review January 21, 2026 23:22
Copilot AI review requested due to automatic review settings January 21, 2026 23:22
Copy link
Contributor

Copilot AI left a comment

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 adds metadata capabilities and debugger support across all Azure Dev CLI extensions. The changes enable better telemetry tracking through command path resolution and improved debugging workflows via the AZD_EXT_DEBUG environment variable.

Changes:

  • Added metadata command to all Go-based extensions to expose command structure for telemetry
  • Integrated azdext.WaitForDebugger() support throughout extension commands for debugging with AZD_EXT_DEBUG=true
  • Updated microsoft.azd.extensions (azd x) scaffolding to include metadata and framework service provider capabilities

Reviewed changes

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

Show a summary per file
File Description
microsoft.azd.extensions/internal/resources/languages/go/internal/cmd/metadata.go.tmpl New template for metadata command generation
microsoft.azd.extensions/internal/resources/languages/go/internal/cmd/*.go.tmpl Added WaitForDebugger calls to command templates
microsoft.azd.extensions/internal/resources/languages/go/internal/cmd/listen.go.tmpl Refactored to use ExtensionHost pattern
microsoft.azd.extensions/internal/resources/languages/go/go.mod.tmpl Updated dependencies and Go version
microsoft.azd.extensions/internal/cmd/*.go Added metadata command and WaitForDebugger to core commands
microsoft.azd.extensions/internal/cmd/init.go Added metadata and framework service provider to capability wizard
microsoft.azd.extensions/extension.yaml Added metadata capability declaration
azure.coding-agent/*, azure.ai.finetune/*, azure.ai.agents/*, microsoft.azd.concurx/*, microsoft.azd.demo/* Applied metadata commands, WaitForDebugger support, and dependency updates across all extensions
*.go.mod, *.go.sum Updated azure-dev dependency versions and transitive dependencies

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rajeshkamal5050 rajeshkamal5050 merged commit 3e3b1fc into main Jan 22, 2026
79 checks passed
@JeffreyCA JeffreyCA linked an issue Jan 22, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add azdext.WaitForDebugger to extensions for improved debugging Add metadata capabilities to extensions

3 participants