mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
The copy button was absolutely positioned (right-0 top-0) over the entire message content area. When assistant messages contain both text and tool calls (e.g. TodoWrite), the button overlapped the tool card UI. Move the button from absolute positioning inside the content wrapper to an inline flex layout after the content. This places it at the bottom- right of the message, below all content (text + tool cards), so it never overlaps anything. The hover-to-reveal behavior is preserved. Also restores getAssistantCopyText to its original logic so mixed text+tool messages remain copyable (the previous fix of suppressing the button entirely for mixed messages was too aggressive). via [HAPI](https://hapi.run) Co-authored-by: HAPI <noreply@hapi.run>