fix(ai): AI 命令更新消息时不显示"已编辑"标记

使用 change- 替代 update- 动作,避免消息显示编辑标记

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
kuaifan 2026-01-25 12:43:47 +00:00
parent 77ebdd2ccb
commit 28beb7fe5e

View File

@ -543,9 +543,9 @@ PROMPT;
$msg['type'] = 'md';
}
// 更新或发送新消息
// 更新或发送新消息(使用 change- 不显示"已编辑"标记)
WebSocketDialogMsg::sendMsg(
$pendingMsgId > 0 ? 'update-' . $pendingMsgId : null,
$pendingMsgId > 0 ? 'change-' . $pendingMsgId : null,
$dialog->id,
'text',
$msg,