fix(chat): remove regenerate action
Build Push and Deploy / docker-image (push) Successful in 1m7s
Build Push and Deploy / deploy-fallback-log (push) Has been skipped

This commit is contained in:
2026-06-08 19:33:06 +08:00
parent 36cdb1df8d
commit e5f13c3d46
9 changed files with 0 additions and 149 deletions
-15
View File
@@ -15,7 +15,6 @@ import {
useTheme,
} from "@mui/material";
import ContentCopyRounded from "@mui/icons-material/ContentCopyRounded";
import RefreshRounded from "@mui/icons-material/RefreshRounded";
import { TbArrowsSplit2 } from "react-icons/tb";
import type { PermissionReply } from "@/lib/chatStream";
import {
@@ -46,7 +45,6 @@ type AgentTurnProps = {
onResume: () => void;
onStopSpeech: () => void;
isTtsSupported: boolean;
onRegenerate: (messageId: string) => void;
onCreateBranch: (messageId: string) => void;
onReplyPermission: (requestId: string, reply: PermissionReply) => void;
onReplyQuestion: (requestId: string, answers: string[][]) => void;
@@ -62,7 +60,6 @@ export const AgentTurn = React.memo(
onResume,
onStopSpeech,
isTtsSupported,
onRegenerate,
onCreateBranch,
onReplyPermission,
onReplyQuestion,
@@ -316,18 +313,6 @@ export const AgentTurn = React.memo(
<ContentCopyRounded sx={{ fontSize: 16 }} />
</IconButton>
</Tooltip>
<Tooltip title="重新生成">
<IconButton
size="small"
aria-label="重新生成"
onClick={() => {
onRegenerate(message.id);
}}
sx={{ width: 28, height: 28, color: "text.secondary", "&:hover": { color: "#00acc1", bgcolor: alpha("#00acc1", 0.1) } }}
>
<RefreshRounded sx={{ fontSize: 16 }} />
</IconButton>
</Tooltip>
<Tooltip title="拆分为新会话">
<IconButton
size="small"