Repository navigation
fix(lark): 搜索无结果时提供清除搜索按钮,可回到全部会话 - #2607
Merged
deepcoldy merged 3 commits intoOct 30, 2026
Merged
Conversation
/relay、/quote、/adopt 选择卡片在搜索无匹配时只显示提示文字,飞书输入框提交空串不会触发回调, 用户无法回到未过滤的全量列表。无匹配时追加「清除搜索,显示全部」按钮,复用各卡片自身的 *_search 回调(按钮点击不带 input_value,handler 解析为空查询并重渲全量列表)。 同时对 relay/quote 无匹配提示里回显的查询词做 escapeMd。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
swtxbling
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
October 30, 2026 12:09
回应复审两条非阻断意见: - no-match 文案回显的查询词已做 escapeMd,但缺测试守护(摘掉转义 后全部用例仍绿);补 markdown 图片注入断言,与 relay/adopt 同口径 - 「候选为零的空态不显示清除按钮」无守护:向 entries.length===0 分支误加按钮时全部用例仍绿;补空态零 button、仅搜索输入回调的断言 Co-Authored-By: Claude Code <[email protected]>
Owner
|
你好,评审这边在你的分支上追加了两个仅测试的提交(maintainer 权限直接推到本分支,fast-forward,未改写你的提交):
功能代码与你原来的提交完全一致,合入时仍会保留你的署名。CI 通过、复审确认后即合入,无需你做任何事;如果你对这两条测试有不同想法,欢迎在本 PR 留言。 (自动评审流程的维护侧同步,最终以维护者审阅结论为准。) |
deepcoldy
pushed a commit
that referenced
this pull request
Oct 30, 2026
同步最新 master(含 #2548 wrapperCli 与文件沙盒可同时用、#2607 picker 清除 搜索、#2582 回复卡隐藏工具等 12 提交),并按复审修正 wrapper 态提示文案: #2548 后 wrapper 在本地 pty/tmux 沙盒内照常运行(worker buildsSandboxWrapperLaunch),不再是「开启后跳过 wrapper、直接启动底层 CLI」。中英四处文案(Dashboard + 配置卡)改为「wrapper 仍在沙盒内运行; 其依赖路径若不在白名单会明确报错拒绝启动,加进 sandboxPaths 只读/读写 即可」;纯函数字段注释同步更新;卡片与 Dashboard 组件测试断言新文案 (含「不得出现跳过 wrapper」负向断言)。 Co-Authored-By: Claude Code <[email protected]>
This was referenced Oct 30, 2026
|
@swtxbling @deepcoldy 合入 master 后的 Midscene E2E 失败:Feishu live Midscene 失败。 这次运行覆盖 54b28df…887309883(7 个提交),同批合入的还有 #2543 #2622 #2582 #2620 #2618 #2625,失败不一定由本 PR 引起。
|
This was referenced Oct 30, 2026
|
🚀 Released in v3.56.0 |
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.
改了什么
/relay选择卡片搜索无匹配时(例如搜「ja」),卡片只剩「没有匹配「ja」的会话,请换个关键词。」,飞书输入框清空后提交空串不会触发回调,用户没有办法回到未过滤的全部会话列表,只能重新发/relay。修复:无匹配时在提示下方追加「↩ 清除搜索,显示全部」按钮。按钮复用卡片自身的
relay_search回调值(与搜索框完全一致);按钮点击不带input_value,handler 解析为空查询、页码归零、清空选中,重渲全量列表。同样的死胡同也存在于
/quote、/adopt选择卡片,一并加上同款按钮(quote_search/adopt_search)。顺手把 relay / quote 无匹配提示里回显的查询词过一遍escapeMd(adopt 已有,注释里标注过 relay 有同样隐患)。影响面
card-builder.ts三个 picker 的「有条目但搜索无匹配」分支 + 新增 i18n keycard.picker.btn_clear_search(中英)。follow_up/exclude_ids等路径与原搜索一致。测试验证
🤖 Generated with Claude Code