Skip to content

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

fix(chat): describe steering without promising an interrupt

xiaofeilovecoding3d5c6a7880fe
diff --git a/src/components/ChatView.tsx b/src/components/ChatView.tsx
index 8b487164f6..5a3f8a7ed5 100644
--- a/src/components/ChatView.tsx
+++ b/src/components/ChatView.tsx
@@ -509,7 +509,7 @@ const Bubble = memo(function Bubble({
}}
/>}
{message.steered && (
- <div className="mt-1 text-[11px] text-ink-tertiary" title={t("chat.sentMidTurnHint")}>
+ <div className="mt-1 text-[11px] text-ink-tertiary">
{t("chat.sentMidTurn")}
</div>
)}
diff --git a/src/components/ChatView.user-bubble.test.ts b/src/components/ChatView.user-bubble.test.ts
index e3c8e82ea5..ff6075f00b 100644
--- a/src/components/ChatView.user-bubble.test.ts
+++ b/src/components/ChatView.user-bubble.test.ts
@@ -65,3 +65,14 @@ describe("bot-colored user bubbles", () => {
expect(html.slice(reply - 80, reply)).not.toContain(tone.background);
});
});
+
+it("marks a steered message as sent mid-turn without claiming the bot read it", () => {
+ const steered: Bot = {
+ ...bot,
+ messages: [{ ...bot.messages[0]!, steered: true }, bot.messages[1]!],
+ };
+ const html = renderToStaticMarkup(createElement(ChatView, { bot: steered }));
+
+ expect(html).toContain(">sent mid-turn</div>");
+ expect(html).not.toContain("It saw this before its next step");
+});
diff --git a/src/components/ComposerSendButton.tsx b/src/components/ComposerSendButton.tsx
index d5f159a1ee..15fdf28996 100644
--- a/src/components/ComposerSendButton.tsx
+++ b/src/components/ComposerSendButton.tsx
@@ -53,7 +53,7 @@ export function ComposerSendButton({ compact, waits, label, title, look, disable
return {
key: choice,
label: t(`composer.followUp.${choice}`),
- subtitle: t(`composer.followUp.${choice}Hint`, { name: menu.name }),
+ subtitle: choice === "steer" ? t("settings.followUp.steer") : t(`composer.followUp.${choice}Hint`, { name: menu.name }),
icon: <Icon size={16} aria-hidden="true" />,
active: index === 0,
value: index === 0 ? menu.sendKey : choice === alternate ? menu.alternateKey : undefined,
diff --git a/src/components/send-key.test.ts b/src/components/send-key.test.ts
index a59ef3f7ce..726472eb31 100644
--- a/src/components/send-key.test.ts
+++ b/src/components/send-key.test.ts
@@ -335,7 +335,7 @@ describe("a message sent while a one-to-one bot works", () => {
type(textarea(), "start again with this");
const choices = openChoices();
expect(choices.map((choice) => choice.textContent)).toEqual([
- "Steer nowInterrupt what Pepper is doingEnter",
+ "Steer nowSteer it into the running turnEnter",
"QueueRun after the current turnCtrl+Enter",
"Restart turnStart the turn over with this message. Also stops work it handed to other bots",
]);