Skip to content

Add structured platform API error reasons#38

Merged
Redth merged 1 commit intomainfrom
copilot/issue-37-platform-error-reasons
Mar 11, 2026
Merged

Add structured platform API error reasons#38
Redth merged 1 commit intomainfrom
copilot/issue-37-platform-error-reasons

Conversation

@Redth
Copy link
Copy Markdown
Owner

@Redth Redth commented Mar 11, 2026

Summary

  • add structured reason and details fields to platform API error payloads
  • classify platform failures into machine-readable reason codes such as missing_permission, not_supported, main_thread_required, timeout, and unknown
  • preserve error bodies for non-success platform GET responses in AgentClient so callers can inspect the structured payload
  • add regression tests and document the new platform error contract

Testing

  • dotnet test ci.slnf --nologo

Fixes #37

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Redth Redth merged commit 0630b5f into main Mar 11, 2026
2 checks passed
@Redth Redth deleted the copilot/issue-37-platform-error-reasons branch March 11, 2026 19:21
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.

Platform API: return structured error responses with reason codes

1 participant