H-16: align takeover with channel AI workflow (#2)

* feat(conversations): complete manual AI takeover

* fix(conversations): align AI takeover flow with channel AI

* fix(conversations): close takeover review gaps

---------

Co-authored-by: Rogee <rogee@ipao.vip>
This commit is contained in:
Rogee
2026-08-12 22:57:06 +08:00
committed by GitHub
co-authored by rogee
parent 4bf6ba6b20
commit 83a8ab315a
31 changed files with 604 additions and 201 deletions
@@ -885,10 +885,14 @@ export default {
copilotAcceptedMessage = ''
) {
try {
await this.$store.dispatch(
const sentMessage = await this.$store.dispatch(
'createPendingMessageAndSend',
messagePayload
);
if (sentMessage?.ai_takeover_exited) {
useAlert(this.$t('CONVERSATION.AI_TAKEOVER.EXIT_SUCCESS'));
await this.$store.dispatch('getConversation', this.conversationId);
}
emitter.emit(BUS_EVENTS.SCROLL_TO_MESSAGE);
emitter.emit(BUS_EVENTS.MESSAGE_SENT);
this.removeFromDraft();