Repository navigation
chore: 忽略本机过程产物并补充讨论区输入框回归用例 - #406
Merged
Merged
Conversation
.codebuddy/plans(方案草稿)、.codebuddy/preview(设计预览图)、 .codebuddy/tmp(临时排查脚本)与 .playwright-cli(CLI 会话日志) 均为本机过程产物,不应入库。
锁定四点:含反斜杠的输入逐字一致、IME 组合输入不累积字符、 发送正文与输入框内容一致、超 500 字整段替换为 #clipboard(N行) 记号 (即用户反馈的「输入时闪一下」的真实机制)。
dearSocrates
approved these changes
Oct 27, 2026
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.
变更内容
为什么补这个用例
用户反馈「输入评论时先闪一下,随后冒出一长串反斜杠」。用例覆盖 4 点:含反斜杠输入逐字一致、IME 组合输入不累积字符、发送正文与输入框内容一致、超 500 字整段替换为 #clipboard(N行) 记号。最后一点正是「闪一下」的真实机制(超限转附件),不是转义 bug。
兼容性
测试
px vitest run src/shared/components/tests/DiscussionPanel.input.test.tsx 4 passed