feat(chat): queue repeated messages from trailing xN intent#341
Open
ijry wants to merge 3 commits into
Open
Conversation
added 2 commits
July 15, 2026 08:39
Capture the approved design for trailing xN/XN multiplier recognition, confirm dialog, and bulk enqueue into the pending message queue.
Detect trailing xN / XN multipliers in the composer, confirm with a dialog, and enqueue N identical base drafts into the pending message queue.
ijry
force-pushed
the
feat/repeat-intent-queue
branch
from
July 15, 2026 01:09
9703a47 to
44b9422
Compare
Collapse multi-line import, wrap cancel label, and drop extra blank lines so frontend eslint/prettier CI passes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Detect trailing repeat multipliers like
继续X10/continue x 3in the chat composer, confirm with a dialog, and enqueue N identical base messages into the existing pending queue.English
x/X+ digits (optional spaces) on sendenqueueManyFolder.chat.messageQueue中文
x/X+ 数字(兼容大小写与空格),例如继续X10、继续 x 10xN)enqueueMany一次性生成 N 条待发送基础消息Folder.chat.messageQueue下的文案Behavior examples
继续X10继续继续 x 10继续continue X 3continue继续x1/继续x51继续X10 请Test plan
pnpm exec vitest run src/lib/repeat-intent.test.tspnpm exec vitest run src/hooks/use-message-queue.test.tspnpm exec vitest run src/i18n/messages.test.tspnpm exec vitest run src/components/chat/message-input.test.tsx继续x10, confirm → 10 pending messages appearxNsuffix → saves edit, no dialog