renderMessages 给 user 卡与有正文的 assistant 卡挂 .msg-actions 栏 (纯 tool_calls 轮/error 卡不挂),默认隐、hover/focus-within 现、 触屏常显淡态。复制经 #chat-stream 既有 click 委托据 data-idx 回 state.loadedMessages 取 payload.content(非渲染 HTML),Clipboard API 主路径 + execCommand 降级,按钮短暂反馈「✓ 已复制」。直播卡不带此栏 ——流结束 loadMessages 整屏重渲成持久卡自然带上。 本期只做零后端耦合的复制;重新生成/编辑重发需后端截断语义,另立项。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| js | ||
| vendor | ||
| admin.html | ||
| dev.html | ||
| wechat_bind.html | ||