From be367c63412ad44896abbf22233a36d3e67dd9c7 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Wed, 28 Oct 2026 09:50:09 +0800 Subject: [PATCH] feat(agents): Drop the hover Copy button from agent messages --- src/features/agents/Session.module.css | 15 +-------------- src/features/agents/SessionEditor.tsx | 9 +-------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/src/features/agents/Session.module.css b/src/features/agents/Session.module.css index 98a628aa8..e4581ca4d 100644 --- a/src/features/agents/Session.module.css +++ b/src/features/agents/Session.module.css @@ -118,7 +118,7 @@ outline: none; } -/* A message with its actions, shown on hover. */ +/* Your message with its actions, shown on hover. */ .message { position: relative; } @@ -138,19 +138,6 @@ -webkit-user-select: none; user-select: none; } -/* Over the bottom-right corner of an agent message (code blocks keep the top one), taking no room of its own. */ -.floatingActions { - position: absolute; - z-index: 1; - bottom: -14px; - right: 0; - margin: 0; - padding: 1px; - border: 1px solid var(--border); - border-radius: var(--radius-small); - background: var(--bg-popup); - box-shadow: var(--shadow-tooltip); -} .message:hover .messageActions, .messageActions:focus-within { opacity: 1; diff --git a/src/features/agents/SessionEditor.tsx b/src/features/agents/SessionEditor.tsx index cb284eb45..a0feda8f9 100644 --- a/src/features/agents/SessionEditor.tsx +++ b/src/features/agents/SessionEditor.tsx @@ -368,14 +368,7 @@ function Entry({ task, entry }: { task: AgentTask; entry: AgentEntry }) { case "user": return ; case "agent": - return ( -
- -
- void copyText(entry.text)} /> -
-
- ); + return ; case "thought": return (