Skip to content

fix(aionui-ai-agent): preserve ACP internal error payloads (AIO-101)#384

Draft
TCP404 wants to merge 1 commit into
mainfrom
boii/fix-aio-101
Draft

fix(aionui-ai-agent): preserve ACP internal error payloads (AIO-101)#384
TCP404 wants to merge 1 commit into
mainfrom
boii/fix-aio-101

Conversation

@TCP404
Copy link
Copy Markdown
Collaborator

@TCP404 TCP404 commented Jun 1, 2026

Summary

  • Treat ACP JSON-RPC -32603 as a generic Agent internal error instead of letting lifecycle/provider heuristics hide the SDK payload.
  • Preserve concrete SDK error data such as Failed to connect MCP servers in stream error detail for frontend display/diagnostics.
  • Prefer populated -32603 payloads over later process-exit metadata in ACP close reason; exit code remains the fallback when no useful payload exists.

Multica Issue

AIO-101

Verification

  • cargo fmt --check
  • cargo test -p aionui-ai-agent
  • cargo clippy -p aionui-ai-agent -- -D warnings

@TCP404 TCP404 force-pushed the boii/fix-aio-101 branch 2 times, most recently from 2956835 to 47ec37a Compare June 2, 2026 03:35
@TCP404 TCP404 marked this pull request as draft June 4, 2026 12:14
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.

1 participant