mirror of
https://github.com/wu736139669/hapi.git
synced 2026-10-28 23:01:34 +00:00
The CLI wraps array-content user messages as agent output because isExternalUserMessage rejects non-string content. On the web side, detect text-only arrays in non-sidechain user output and emit them as role:'user' so they display in the user lane. Also handle sidechain user messages with mixed array content (e.g. tool_result + text) by extracting text parts into a sidechain block. Closes #407's original scope on top of the #402 base. via [HAPI](https://hapi.run) Co-authored-by: HAPI <noreply@hapi.run>