Skip to content

Commit 559ecfc

Browse files
committed
fix(web): keep slash side-chat selection from saving a queued edit
1 parent e6784c4 commit 559ecfc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎apps/web/src/components/chat/ChatComposer.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2086,6 +2086,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
20862086
if (item.command === "side" || item.command === "btw") {
20872087
if (props.sideChatDisabledReason) return;
20882088
const openImmediately =
2089+
!isEditingQueuedMessage &&
20892090
snapshot.value.slice(0, trigger.rangeStart).trim() === "" &&
20902091
snapshot.value.slice(trigger.rangeEnd).trim() === "";
20912092
const replacement = `/${item.command} `;

0 commit comments

Comments
 (0)