The best way to control Claude Code, Codex and more from any computer or phone
fix(web): editing a queued message into /btw no longer saves it to the main thread (#37228)
Julius Marminge committed
Nov 15, 2026 at 06:31 UTC
0de6ddb8235debee8c7119343e1a4da9cd8b5de8
2 files changed
+20
apps/mobile/src/state/use-thread-composer-state.ts
+8
@@ -495,6 +495,14 @@ export function useThreadComposerState(input: {
495
);
496
return;
497
}
498
+ // A queued message stays in its thread, so saving `/side` would send it to main.
499
+ if (parseSideChatCommand(text)) {
500
+ Dialog.alert(
501
+ "Queued message not updated",
502
+ "A queued message can't move to a side chat. Remove /side or /btw to save it.",
503
+ );
504
+ return;
505
+ }
506
const finishSave = startQueuedRunEditSave(threadKey);
507
if (finishSave === null) return;
508
savingQueuedEditRef.current = true;
apps/web/src/components/chat/useComposerSend.ts
+12
@@ -631,6 +631,18 @@ export function useComposerSend(input: ComposerSendInput) {
631
return;
632
}
633
if (queuedRunEdit.isEditing) {
634
+ // A queued message stays in its thread, so saving `/side` would send it to main.
635
+ if (!directAnnotation && parseSideChatCommand(promptAtSend)) {
636
+ toastManager.add(
637
+ stackedThreadToast({
638
+ type: "warning",
639
+ title: "Queued message not updated",
640
+ description:
641
+ "A queued message can't move to a side chat. Remove /side or /btw to save it.",
642
+ }),
643
+ );
644
+ return;
645
+ }
646
// Edit mode repurposes the composer: sending saves the queued message
647
// in place instead of dispatching a new turn.
648
await queuedRunEdit.saveEdit(