Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Merge origin/main into keep-follow-up-on-retry

milind-soni9f865aa751bc
diff --cc src/components/Composer.tsx
index 06e9021fa6,3e00314ab6..6eba967835
--- a/src/components/Composer.tsx
+++ b/src/components/Composer.tsx
@@@ -554,9 -549,8 +549,9 @@@ export function Composer(
text: failed.text,
requestText: failed.requestText,
replyToId: failed.replyToId,
- threadId: failed.threadId,
+ threadId: failed.threadId, mentions: failed.mentions,
channelMode: failed.channelMode,
+ followUp: failed.followUp,
});
},
};
@@@ -590,8 -584,7 +585,7 @@@
reply: replyTo ?? null,
replyToId: replyTo?.id,
threadId,
- channelMode: effectiveChannelMode,
- followUp,
- channelMode: effectiveChannelMode, mentions: picks.ids(body),
++ channelMode: effectiveChannelMode, mentions: picks.ids(body), followUp,
};
if (group) {
dispatch({
diff --cc src/lib/drafts.ts
index b3898a7c0e,adec0c534d..8210469b29
--- a/src/lib/drafts.ts
+++ b/src/lib/drafts.ts
@@@ -24,7 -23,8 +24,9 @@@ export interface FailedComposerSend
replyToId?: string;
threadId: string;
channelMode?: "chat" | "goal";
+ /** Bot ids picked from the @ list. */
+ mentions?: string[];
+ followUp?: FollowUp;
}
type FailedComposerSendInput = Omit<FailedComposerSend, "id">;
export interface ComposerSendSnapshot extends FailedComposerSendInput {
@@@ -427,7 -427,7 +429,8 @@@ export function recoverFailedComposerSe
replyToId: sent.replyToId,
threadId: sent.threadId,
channelMode: sent.channelMode,
+ mentions: sent.mentions,
+ followUp: sent.followUp,
});
return "outbox";
}