Skip to content

Switch error middleware and MCP command to Copilot SDK #6878

@wbreza

Description

@wbreza

Parent: #6876 | Epic: #6870

Description

Update error troubleshooting middleware and MCP command to use the Copilot SDK agent.

Tasks

  • Update cmd/middleware/error.go to use CopilotAgent for error troubleshooting
    • Wire ErrorOccurredHandler hook for automatic error recovery
    • Adapt 3-attempt retry loop to SDK session model
    • Update solution extraction for SDK response format
  • Update cmd/mcp.go to integrate Copilot SDK client lifecycle where needed
  • Update internal/agent/feedback/feedback.go for SDK session-based conversation
  • Update IoC container (cmd/container.go) to register new factory and client manager

Modified Files

  • cmd/middleware/error.go
  • cmd/mcp.go
  • internal/agent/feedback/feedback.go
  • cmd/container.go

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions