diff --git a/app/server/public/css/style.css b/app/server/public/css/style.css
index 129415f..f25e513 100644
--- a/app/server/public/css/style.css
+++ b/app/server/public/css/style.css
@@ -147,6 +147,11 @@ main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
transition: transform .15s; display: inline-block;
}
.msg-think[open] > summary::before { transform: rotate(90deg); }
+/* summary 右侧复制按钮:靠右对齐,点击只复制不折叠(onCopyClick 里 preventDefault) */
+.msg-think > summary .act-copy { margin-left: auto; display: inline-flex; color: var(--gray-light); padding: 2px; border-radius: 4px; }
+.msg-think > summary .act-copy svg { width: 12px; height: 12px; }
+.msg-think > summary .act-copy:hover { color: var(--ink); }
+.msg-think > summary .act-copy.copied { color: #2e7d32; }
.msg-think-body {
padding: 4px 12px 10px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
diff --git a/app/server/public/index.html b/app/server/public/index.html
index 0a971df..ec6b9a4 100644
--- a/app/server/public/index.html
+++ b/app/server/public/index.html
@@ -550,10 +550,14 @@
const bubble = text ? (() => { const r = mdHtml(m.content); return '
' + r.html + '
'; })() : '';
return '' + think + bubble + actionsHtml(m.created_at, m.content || '', m.id) + '
';
}
- // 思考过程折叠面板:summary 固定名「思考过程」,body 展示推理全文。
+ // 思考过程折叠面板:summary 固定名「思考过程」+ 右侧复制按钮,body 展示推理全文。
// 历史重渲染默认收起(与原设计一致),流式阶段的展开行为由 ensureStreamThinkPanel 显式控制。
+ // 复制按钮走 onCopyClick 统一代理:点击时从 DOM 取思考全文(不依赖 b64,流式增量也能复制)
+ const THINK_COPY_BTN = '';
function thinkPanelHtml(text) {
- return '思考过程
' + esc(text) + '
';
+ return '思考过程' + THINK_COPY_BTN + '
' + esc(text) + '
';
}
// 「压缩」摘要卡片:流式收尾与历史重渲染共用的头部(图标 + 标题 + 右侧说明)。
@@ -600,7 +604,7 @@
function toolCopyBtnHtml(text) {
if (!text) return '';
const b64 = btoa(unescape(encodeURIComponent(text)));
- return '