mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-10-26 13:16:24 +00:00
The unsuccessful-upload branch called result.message.trim() directly. A gateway or proxy that omits message turns a handled upload failure into a TypeError while handling it, losing the clean "Upload failed" path. Coerce a non-string message to an empty string before trimming. The regression test sends success:false without a message and expects "Upload failed"; it throws a TypeError on main. Co-authored-by: Willem Jiang <willem.jiang@gmail.com>