Skip to content

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

fix: a typed reply closes a bot's earlier questions in its own chat

AdityaUmale3b2f9895d8de
diff --git a/server/host/ask-cards.test.ts b/server/host/ask-cards.test.ts
index afae09c908..400b79dc48 100644
--- a/server/host/ask-cards.test.ts
+++ b/server/host/ask-cards.test.ts
@@ -3,6 +3,7 @@ import { describe, expect, it, vi } from "vitest";
import type { HandoffView } from "../coordinator.ts";
import type { Notification } from "../notify.ts";
import type { RequestAuth } from "../request-auth.ts";
+import { restingOnPerson } from "../../shared/person-wait.ts";
import type { BotRecord, Message } from "../store.ts";
import { askToolName, createAskCards, type AskCardsDeps } from "./ask-cards.ts";
@@ -245,6 +246,45 @@ describe("nothing stale waits on the person", () => {
});
});
+describe("a new line the person types instead of answering", () => {
+ const ask = (w: ReturnType<typeof world>, threadId: string, requestId: string, over: Partial<NonNullable<Message["card"]>> = {}, row: Partial<Message> = {}) =>
+ w.store.appendMessage(threadId, { role: "bot", kind: "options", text: "Should I?", ...row,
+ card: { title: "Your bot has a question", subtitle: "Should I?", options: ["Yes"], requestId, requestType: "question", ...over } });
+
+ it("settles the bot's earlier questions no turn waits on any more, so the conversation stops waiting on the person", () => {
+ const w = world();
+ ask(w, "chat", "req-1");
+ expect(restingOnPerson(w.rows("chat"))?.kind).toBe("question");
+ w.cards.typedOver("chat");
+ expect(w.rows("chat")[0]!.card).toMatchObject({ answered: "answer", answeredInChat: true });
+ expect(restingOnPerson(w.rows("chat"))).toBeUndefined();
+ });
+
+ it("settles a NEEDS INPUT card from the bot's own reply too", () => {
+ const w = world();
+ w.store.appendMessage("chat", { role: "bot", kind: "text", text: "NEEDS INPUT: Which one do you like?", turnId: "t1" });
+ w.cards.ownQuestion("ledger", "chat", "t1");
+ w.cards.typedOver("chat");
+ expect(w.rows("chat")[0]!.card).toMatchObject({ answered: "answer", answeredInChat: true });
+ expect(restingOnPerson(w.rows("chat"))).toBeUndefined();
+ });
+
+ it("leaves a card a turn or parked work still waits on, an approval, an inbox copy, a settled card and a room alone", () => {
+ const w = world({ live: ["req-live"] });
+ w.node({ id: "as_1", status: "waiting", question: QUESTION });
+ ask(w, "work", "req-live");
+ ask(w, "work", "needs-input-as_1-1");
+ ask(w, "work", "req-tool", { tool: "Bash", requestType: "permission" });
+ ask(w, "work", "req-copy", {}, { inbox: { botId: "ledger", threadId: "other", messageId: "x" } as unknown as Message["inbox"] });
+ ask(w, "work", "req-done", { answered: "answer", answeredText: "Yes" });
+ ask(w, "room", "req-room");
+ const before = [...w.rows("work"), ...w.rows("room")].map((row) => row.card);
+ w.cards.typedOver("work");
+ w.cards.typedOver("room");
+ expect([...w.rows("work"), ...w.rows("room")].map((row) => row.card)).toEqual(before);
+ });
+});
+
describe("how an open question card settles", () => {
const parked = () => {
const w = world();
diff --git a/server/host/ask-cards.ts b/server/host/ask-cards.ts
index 264b7f8845..11a89467f3 100644
--- a/server/host/ask-cards.ts
+++ b/server/host/ask-cards.ts
@@ -234,11 +234,28 @@ export function createAskCards(deps: AskCardsDeps) {
}
}
+ /** The parked work a NEEDS INPUT card asks for. */
+ const parkedNode = (requestId: string): HandoffView | undefined => {
+ const id = requestId.startsWith(OPEN_QUESTION) ? requestId.slice(OPEN_QUESTION.length).replace(/-\d+$/, "") : "";
+ return id ? deps.node(id) : undefined;
+ };
+
+ /** The person typed a new line in a bot's conversation instead of answering its earlier questions: those that no turn
+ * and no parked work waits on any more settle as answered in the chat, so the conversation stops waiting on them. */
+ function typedOver(threadId: string): void {
+ if (store.groupByThread(threadId)) return;
+ for (const message of store.messagesFor(threadId)) {
+ const card = message.card;
+ if (!card?.requestId || message.inbox || liveCardKind(card) !== "question" || deps.live(threadId, card.requestId)
+ || parkedNode(card.requestId)?.status === "waiting") continue;
+ store.patchMessage(threadId, message.id, { card: { ...card, answered: "answer", answeredInChat: true } });
+ }
+ }
+
/** The person answered a parked question's card, or its copy: the work it waits on carries their answer, whether it waits
* in a room or a bot's conversation. False when no work waits on that card. */
function answerParked(threadId: string, requestId: string, text: string): boolean {
- const id = requestId.startsWith(OPEN_QUESTION) ? requestId.slice(OPEN_QUESTION.length).replace(/-\d+$/, "") : "";
- const node = id ? deps.node(id) : undefined;
+ const node = parkedNode(requestId);
const message = store.messagesFor(threadId).find((candidate) => candidate.card?.requestId === requestId && !candidate.inbox);
if (!node || node.status !== "waiting" || node.question === undefined || node.cards?.length || !message?.card || !deps.answerNode(node.id, text)) return false;
store.patchMessage(threadId, message.id, { card: { ...message.card, answered: "answer", answeredText: text, answeredBy: undefined } });
@@ -277,5 +294,5 @@ export function createAskCards(deps: AskCardsDeps) {
questionCard({ id: `${botId}-${turnId}`, threadId, botId, executions: 1, createdAt: reply.at, startedAt: reply.at } as HandoffView, question);
}
- return { park, remind, decided, closed, askedAgain, answerParked, answeredInWords, typed, ownQuestion, showWaitingOnPersonChip, settleWaitingOnPersonChips };
+ return { park, remind, decided, closed, askedAgain, answerParked, answeredInWords, typed, typedOver, ownQuestion, showWaitingOnPersonChip, settleWaitingOnPersonChips };
}
diff --git a/server/index.ts b/server/index.ts
index f8906fd387..c8d7157da7 100644
--- a/server/index.ts
+++ b/server/index.ts
@@ -7685,7 +7685,7 @@ async function beginTurn(
queueMicrotask(drainQueuedSends);
return userMessage;
}
- const setupLine = takeSetupRequest(store, { botId: bot.id, threadId, line: userMessage, person: personLine, editedFrom: opts?.editedMessageId, mounted: instance.adapter.capabilities.agentsMcp === true }); if (setupLine) { userMessage = setupLine; providerText = setupTurnText(setupLine, usesNativeImageInput); } if (route.quickModel && !opts?.cardContinuation && userMessage.quickModel !== route.quickModel) userMessage = store.patchMessage(threadId, userMessage.id, { quickModel: route.quickModel }) ?? userMessage;
+ if (personLine && !userMessage.relayed) askCards.typedOver(threadId); const setupLine = takeSetupRequest(store, { botId: bot.id, threadId, line: userMessage, person: personLine, editedFrom: opts?.editedMessageId, mounted: instance.adapter.capabilities.agentsMcp === true }); if (setupLine) { userMessage = setupLine; providerText = setupTurnText(setupLine, usesNativeImageInput); } if (route.quickModel && !opts?.cardContinuation && userMessage.quickModel !== route.quickModel) userMessage = store.patchMessage(threadId, userMessage.id, { quickModel: route.quickModel }) ?? userMessage;
const recoveryUserMessageId = opts?.coordination
? store.activePath(threadId).findLast(m => m.role === "user" && m.kind === "text")?.id
: userMessage.id;
diff --git a/shared/wire.ts b/shared/wire.ts
index 290d8576c9..83cbcbd82f 100644
--- a/shared/wire.ts
+++ b/shared/wire.ts
@@ -657,8 +657,7 @@ export interface OptionCardData extends WaitCardField, ComputerAskField, AccessR
/** Distinguishes a provider question from an approval after its live run ends. */
requestType?: "permission" | "question";
answered?: string;
- /** What was actually answered, when the answer is words rather than a
- * verdict. */
+ /** What was actually answered, when the answer is words rather than a verdict. */
answeredText?: string;
dismissed?: boolean;
/** Who settled the card, when a person or service answered it. */
@@ -674,6 +673,7 @@ export interface OptionCardData extends WaitCardField, ComputerAskField, AccessR
expired?: boolean;
/** Stop ended the work that asked: nothing can answer it any more. */
stopped?: boolean;
+ /** The person wrote a new line instead of answering, after the asking turn had ended. */ answeredInChat?: boolean;
/** Catalog key for held when it is one of the fixed notes. */
heldCode?: string;
/** the narrow grant "always allow" remembers for a harness-native card. */
diff --git a/src/components/QuestionCard.tsx b/src/components/QuestionCard.tsx
index 9439bd6673..3a6464bfad 100644
--- a/src/components/QuestionCard.tsx
+++ b/src/components/QuestionCard.tsx
@@ -273,6 +273,7 @@ function SettledQuestion({ card, questions }: { card: NonNullable<Message["card"
const [open, setOpen] = useState(false);
if (card.stopped) return <AskSettledLine tone="stopped" ariaLabel={t("question.aria.card")}>{t("ask.settled.stopped")}</AskSettledLine>;
if (card.expired) return <AskSettledLine tone="expired" ariaLabel={t("question.aria.card")}>{t("ask.settled.expired")}</AskSettledLine>;
+ if (card.answeredInChat) return <AskSettledLine ariaLabel={t("question.aria.card")}>{t("ask.settled.answeredInChat")}</AskSettledLine>;
const answer = card.answeredText ?? (card.answered === "answer" ? null : undefined);
if (answer === undefined || card.answered === "unavailable" || card.dismissed && !card.answeredText) {
return <AskSettledLine tone="closed" ariaLabel={t("question.aria.card")}>{t("question.status.closed")}</AskSettledLine>;
diff --git a/src/locales/de.json b/src/locales/de.json
index 2ccdf09135..fa4112c80e 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -2839,6 +2839,7 @@
"ask.settled.answered": "Deine Antwort:",
"ask.settled.stopped": "Gestoppt, bevor du geantwortet hast",
"ask.settled.expired": "Abgelaufen, bevor jemand geantwortet hat",
+ "ask.settled.answeredInChat": "Im Chat beantwortet",
"ask.error": "Deine Antwort konnte nicht gesendet werden. Versuch es noch einmal.",
"ask.detail.more": "Alles anzeigen",
"inbox.action.closeQuestion": "Ohne Antwort schließen",
diff --git a/src/locales/en.json b/src/locales/en.json
index bf963b7654..d7e4ea221f 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -1111,6 +1111,7 @@
"ask.settled.answered": "You answered:",
"ask.settled.stopped": "Stopped before you answered",
"ask.settled.expired": "Expired before anyone answered",
+ "ask.settled.answeredInChat": "Answered in the chat",
"ask.error": "Couldn't send your answer. Try again.",
"ask.detail.more": "Show all",
"inbox.action.closeQuestion": "Close without answering",
diff --git a/src/locales/es.json b/src/locales/es.json
index 5f0623cac9..6118528970 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -5667,6 +5667,7 @@
"ask.settled.answered": "Respondiste:",
"ask.settled.stopped": "Se detuvo antes de que respondieras",
"ask.settled.expired": "Caducó antes de que alguien respondiera",
+ "ask.settled.answeredInChat": "Respondida en el chat",
"ask.error": "No se pudo enviar tu respuesta. Inténtalo de nuevo.",
"ask.detail.more": "Mostrar todo",
"inbox.action.closeQuestion": "Cerrar sin responder",
diff --git a/src/locales/fr.json b/src/locales/fr.json
index a2be4202bb..095914fc71 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -2745,6 +2745,7 @@
"ask.settled.answered": "Vous avez répondu :",
"ask.settled.stopped": "Arrêté avant votre réponse",
"ask.settled.expired": "Expiré avant toute réponse",
+ "ask.settled.answeredInChat": "Répondu dans le chat",
"ask.error": "Impossible d’envoyer votre réponse. Réessayez.",
"ask.detail.more": "Tout afficher",
"inbox.action.closeQuestion": "Fermer sans répondre",
diff --git a/src/locales/hi.json b/src/locales/hi.json
index 4bf4f1f854..b018e7c558 100644
--- a/src/locales/hi.json
+++ b/src/locales/hi.json
@@ -2745,6 +2745,7 @@
"ask.settled.answered": "आपका जवाब:",
"ask.settled.stopped": "आपके जवाब देने से पहले रोक दिया गया",
"ask.settled.expired": "किसी के जवाब देने से पहले समय समाप्त हो गया",
+ "ask.settled.answeredInChat": "चैट में जवाब दिया",
"ask.error": "आपका जवाब नहीं भेजा जा सका। फिर से कोशिश करें।",
"ask.detail.more": "सब दिखाएँ",
"inbox.action.closeQuestion": "बिना जवाब दिए बंद करें",
diff --git a/src/locales/it.json b/src/locales/it.json
index 72a8fe8bf3..85714108cc 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -6328,6 +6328,7 @@
"ask.settled.answered": "Hai risposto:",
"ask.settled.stopped": "Interrotto prima della tua risposta",
"ask.settled.expired": "Scaduto prima di una risposta",
+ "ask.settled.answeredInChat": "Risposto nella chat",
"ask.error": "Impossibile inviare la risposta. Riprova.",
"ask.detail.more": "Mostra tutto",
"inbox.action.closeQuestion": "Chiudi senza rispondere",
diff --git a/src/locales/ja.json b/src/locales/ja.json
index 29bac91d8b..2907c0d5ec 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -7337,6 +7337,7 @@
"ask.settled.answered": "あなたの回答:",
"ask.settled.stopped": "回答する前に停止しました",
"ask.settled.expired": "回答がないまま期限切れになりました",
+ "ask.settled.answeredInChat": "チャットで回答済み",
"ask.error": "回答を送信できませんでした。もう一度お試しください。",
"ask.detail.more": "すべて表示",
"inbox.action.closeQuestion": "回答せずに閉じる",
diff --git a/src/locales/ko.json b/src/locales/ko.json
index 5e8d32afa1..3d6304a30e 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -910,6 +910,7 @@
"ask.settled.answered": "내 답변:",
"ask.settled.stopped": "답변하기 전에 중지됨",
"ask.settled.expired": "아무도 답하기 전에 만료됨",
+ "ask.settled.answeredInChat": "채팅에서 답함",
"ask.error": "답변을 보내지 못했어요. 다시 시도하세요.",
"ask.detail.more": "모두 보기",
"inbox.action.closeQuestion": "답하지 않고 닫기",
diff --git a/src/locales/pl.json b/src/locales/pl.json
index 374882af57..9eabd36dbc 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -6468,6 +6468,7 @@
"ask.settled.answered": "Twoja odpowiedź:",
"ask.settled.stopped": "Zatrzymano przed twoją odpowiedzią",
"ask.settled.expired": "Wygasło, zanim ktoś odpowiedział",
+ "ask.settled.answeredInChat": "Odpowiedziano w czacie",
"ask.error": "Nie udało się wysłać odpowiedzi. Spróbuj ponownie.",
"ask.detail.more": "Pokaż wszystko",
"inbox.action.closeQuestion": "Zamknij bez odpowiedzi",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index c0b918a2a6..63e57f4198 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -7827,6 +7827,7 @@
"ask.settled.answered": "Você respondeu:",
"ask.settled.stopped": "Interrompido antes de você responder",
"ask.settled.expired": "Expirou antes de alguém responder",
+ "ask.settled.answeredInChat": "Respondida no chat",
"ask.error": "Não foi possível enviar a resposta. Tente novamente.",
"ask.detail.more": "Mostrar tudo",
"inbox.action.closeQuestion": "Fechar sem responder",
diff --git a/src/locales/ru.json b/src/locales/ru.json
index d9b38f1d5a..cbe1e76a62 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -6526,6 +6526,7 @@
"ask.settled.answered": "Ваш ответ:",
"ask.settled.stopped": "Остановлено до вашего ответа",
"ask.settled.expired": "Истекло, пока никто не ответил",
+ "ask.settled.answeredInChat": "Ответ дан в чате",
"ask.error": "Не удалось отправить ответ. Попробуйте ещё раз.",
"ask.detail.more": "Показать всё",
"inbox.action.closeQuestion": "Закрыть без ответа",
diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.json
index aefdc23670..888b54172f 100644
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@ -3939,7 +3939,8 @@
"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f",
"settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567",
"devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",
- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"
+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",
+ "ask.settled.answeredInChat": "29568f953b2b0256ed7bd24dcfe2a2eb896d1f21b8bddcce0599b4d6fb9b66b9"
},
"es": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -10416,7 +10417,8 @@
"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f",
"settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567",
"devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",
- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"
+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",
+ "ask.settled.answeredInChat": "29568f953b2b0256ed7bd24dcfe2a2eb896d1f21b8bddcce0599b4d6fb9b66b9"
},
"fr": {
"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",
@@ -14193,7 +14195,8 @@
"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f",
"settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567",
"devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",
- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"
+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",
+ "ask.settled.answeredInChat": "29568f953b2b0256ed7bd24dcfe2a2eb896d1f21b8bddcce0599b4d6fb9b66b9"
},
"hi": {
"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",
@@ -17824,7 +17827,8 @@
"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f",
"settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567",
"devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",
- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"
+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",
+ "ask.settled.answeredInChat": "29568f953b2b0256ed7bd24dcfe2a2eb896d1f21b8bddcce0599b4d6fb9b66b9"
},
"ja": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -25897,7 +25901,8 @@
"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f",
"settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567",
"devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",
- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"
+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",
+ "ask.settled.answeredInChat": "29568f953b2b0256ed7bd24dcfe2a2eb896d1f21b8bddcce0599b4d6fb9b66b9"
},
"pt-br": {
"voice.gemini.keyPlaceholder": "8c87ba2043a4a89d63c90cae8a6dafd5cbd193652e923b97988e381a74773e10",
@@ -36470,7 +36475,8 @@
"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f",
"settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567",
"devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",
- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"
+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",
+ "ask.settled.answeredInChat": "29568f953b2b0256ed7bd24dcfe2a2eb896d1f21b8bddcce0599b4d6fb9b66b9"
},
"zh": {
"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",
@@ -44435,7 +44441,8 @@
"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f",
"settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567",
"devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",
- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"
+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",
+ "ask.settled.answeredInChat": "29568f953b2b0256ed7bd24dcfe2a2eb896d1f21b8bddcce0599b4d6fb9b66b9"
},
"zh-tw": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -54696,7 +54703,8 @@
"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f",
"settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567",
"devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",
- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"
+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",
+ "ask.settled.answeredInChat": "29568f953b2b0256ed7bd24dcfe2a2eb896d1f21b8bddcce0599b4d6fb9b66b9"
},
"uk": {
"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",
@@ -58749,7 +58757,8 @@
"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f",
"settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567",
"devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",
- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"
+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",
+ "ask.settled.answeredInChat": "29568f953b2b0256ed7bd24dcfe2a2eb896d1f21b8bddcce0599b4d6fb9b66b9"
},
"vi": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -64730,7 +64739,8 @@
"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f",
"settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567",
"devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",
- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"
+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",
+ "ask.settled.answeredInChat": "29568f953b2b0256ed7bd24dcfe2a2eb896d1f21b8bddcce0599b4d6fb9b66b9"
},
"tr": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -70711,7 +70721,8 @@
"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f",
"settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567",
"devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",
- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"
+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",
+ "ask.settled.answeredInChat": "29568f953b2b0256ed7bd24dcfe2a2eb896d1f21b8bddcce0599b4d6fb9b66b9"
},
"pl": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -77953,7 +77964,8 @@
"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f",
"settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567",
"devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",
- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"
+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",
+ "ask.settled.answeredInChat": "29568f953b2b0256ed7bd24dcfe2a2eb896d1f21b8bddcce0599b4d6fb9b66b9"
},
"ru": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -85248,7 +85260,8 @@
"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f",
"settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567",
"devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",
- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"
+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",
+ "ask.settled.answeredInChat": "29568f953b2b0256ed7bd24dcfe2a2eb896d1f21b8bddcce0599b4d6fb9b66b9"
},
"it": {
"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",
@@ -92349,7 +92362,8 @@
"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f",
"settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567",
"devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",
- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"
+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",
+ "ask.settled.answeredInChat": "29568f953b2b0256ed7bd24dcfe2a2eb896d1f21b8bddcce0599b4d6fb9b66b9"
},
"ko": {
"connectedWorkspaces.localTitle": "7d6deafeab011d734c3fdd1bfd6f69544fbb746a004019269bdb48544b01164b",
@@ -100105,7 +100119,8 @@
"settings.domain.httpsFirst": "41486ac1d5f39e25ccf3835d520137ecac15a0f49a9dcb5b73f7523fe6df330f",
"settings.backTo": "ea37ec29c3865c359d3efb005bd252c35457976140bb718824f39d157ea32567",
"devices.route.httpsAccount": "518ed79b3110cf735bc507bd796cf5c9cd701c3b2dc72bd764e599d411e3baf5",
- "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c"
+ "backup.importAction": "ea94509e38cf6d6427db3a1b5a3b5816cba1e8f89b08f9739f6077ade188163c",
+ "ask.settled.answeredInChat": "29568f953b2b0256ed7bd24dcfe2a2eb896d1f21b8bddcce0599b4d6fb9b66b9"
}
}
}
diff --git a/src/locales/tr.json b/src/locales/tr.json
index 0fd92ab2e4..3b1e3c28e7 100644
--- a/src/locales/tr.json
+++ b/src/locales/tr.json
@@ -5163,6 +5163,7 @@
"ask.settled.answered": "Yanıtınız:",
"ask.settled.stopped": "Siz yanıtlamadan önce durduruldu",
"ask.settled.expired": "Kimse yanıtlamadan süresi doldu",
+ "ask.settled.answeredInChat": "Sohbette yanıtlandı",
"ask.error": "Yanıtınız gönderilemedi. Tekrar deneyin.",
"ask.detail.more": "Tümünü göster",
"inbox.action.closeQuestion": "Yanıtlamadan kapat",
diff --git a/src/locales/uk.json b/src/locales/uk.json
index d4b28a96b9..d79f670252 100644
--- a/src/locales/uk.json
+++ b/src/locales/uk.json
@@ -3183,6 +3183,7 @@
"ask.settled.answered": "Ваша відповідь:",
"ask.settled.stopped": "Зупинено до вашої відповіді",
"ask.settled.expired": "Час минув, відповіді не було",
+ "ask.settled.answeredInChat": "Відповідь дано в чаті",
"ask.error": "Не вдалося надіслати відповідь. Спробуйте ще раз.",
"ask.detail.more": "Показати все",
"inbox.action.closeQuestion": "Закрити без відповіді",
diff --git a/src/locales/vi.json b/src/locales/vi.json
index c3b7ecc0ee..ac87750355 100644
--- a/src/locales/vi.json
+++ b/src/locales/vi.json
@@ -5163,6 +5163,7 @@
"ask.settled.answered": "Bạn đã trả lời:",
"ask.settled.stopped": "Đã dừng trước khi bạn trả lời",
"ask.settled.expired": "Đã hết hạn trước khi có người trả lời",
+ "ask.settled.answeredInChat": "Đã trả lời trong cuộc trò chuyện",
"ask.error": "Không gửi được câu trả lời. Hãy thử lại.",
"ask.detail.more": "Hiện tất cả",
"inbox.action.closeQuestion": "Đóng mà không trả lời",
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index 0367326096..44439e5944 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -1063,6 +1063,7 @@
"ask.settled.answered": "你回答了:",
"ask.settled.stopped": "在你回答前已停止",
"ask.settled.expired": "無人回答,已逾時",
+ "ask.settled.answeredInChat": "已在聊天中回答",
"ask.error": "無法送出你的回答,請再試一次。",
"ask.detail.more": "顯示全部",
"inbox.action.closeQuestion": "不回答並關閉",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 9e80b78145..6e5079e114 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -976,6 +976,7 @@
"ask.settled.answered": "你回答了:",
"ask.settled.stopped": "在你回答前已停止",
"ask.settled.expired": "无人回答,已过期",
+ "ask.settled.answeredInChat": "已在聊天中回答",
"ask.error": "无法发送你的回答,请重试。",
"ask.detail.more": "显示全部",
"inbox.action.closeQuestion": "不回答并关闭",
diff --git a/src/state/store.tsx b/src/state/store.tsx
index a66fbbb808..fa6c81f23b 100644
--- a/src/state/store.tsx
+++ b/src/state/store.tsx
@@ -70,7 +70,7 @@ import { reconcileSnapshotQueues, rememberConsumedQueueId, replaceBotQueues } fr
export type { MausColor } from "@/lib/mascot";
export type { RoutineRunCardData } from "../../shared/routine-run";
-export interface OptionCardData extends Pick<WireOptionCard, "fixedOptions" | "lendingLift" | "webhookRequest" | "appTriggerRequest" | "yourComputer" | "computerAsk" | "waitRequest" | "stopped" | "accessRequest" | "mcpRequest" | "summaryCode" | "summaryParams"> {
+export interface OptionCardData extends Pick<WireOptionCard, "fixedOptions" | "lendingLift" | "webhookRequest" | "appTriggerRequest" | "yourComputer" | "computerAsk" | "waitRequest" | "stopped" | "answeredInChat" | "accessRequest" | "mcpRequest" | "summaryCode" | "summaryParams"> {
title: string;
subtitle: string;
options: string[];