mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
Fix two issues: 1. RPC DataError deserialization crash: When the database-manager returns a 400 for a Prisma DataError/UniqueViolationError, the client-side reconstruction crashes because DataError.__init__ expects a dict but exc.args only contains a string message. Wrap the string in the expected dict structure so the exception is properly caught by callers (e.g. workspace file overwrites). 2. Chat stream reconnection on page refresh: The AI SDK's built-in resume:true fires before message hydration completes, causing hydrated messages to overwrite the resumed stream. Replace with manual resumeStream() called after hydration + active_stream detection. Show the stop button immediately when an active stream is detected (isReconnecting flag) and prevent sending new messages until reconnected.