Skip to content

fix(link-ref): 修复大列表链接登记和 Markdown 链接校验误判 - #3244

Merged
deepcoldy merged 2 commits into
deepcoldy:masterfrom
Kerminate:fix/dacu-link-ledger-overflow
Nov 9, 2026
Merged

deepcoldy merged 2 commits into
deepcoldy:masterfrom
Kerminate:fix/dacu-link-ledger-overflow

Conversation

@Kerminate

Copy link
Copy Markdown
Contributor

查询 76 条大促问题时,返回的 154 条链接超过原有 128 条登记上限,导致部分原始链接被误判为不一致。另外,**[标题](URL)** 中的 )** 会被提取为 URL 内容,造成最终结果拒发。本次修复使完整问题列表及加粗标题链接能够通过校验。

改动

  • 将每轮链接登记上限提升至 2048 条,引用映射展示上限设为 128 条,同时受单链接 8 KiB、总量 512 KiB 约束。
  • 持久化登记不完整标记,支持旧账本事务迁移。后续成功批次保留溢出记录;账本不完整时,仅接受已登记的原始 URL,其余返回 link_ref_limit_exceeded。
  • 按 Markdown 实际链接边界提取 URL,处理加粗、图片、表格、相邻链接、转义和嵌套括号,并保留原始字节。代码示例、跨段落文本及图片说明不会污染链接范围;同端点 URL 被改写时仍拒绝发送。
  • 完善定时回合的中英文发送提示:无发送者时使用明确的 --mention 或 --no-mention,避免误用 --mention-back。

验证

  • bun run test 定向运行链接与本地地址相关 22 个文件:441 项通过。
  • 真实 SQLite 与可控时钟覆盖旧库迁移、事务回滚、晚到结果、结算和 TTL 交叠;移除关键守卫的变异验证均能触发失败。
  • 构建产物回放完整 76 条加粗问题链接,全部与原账本中的 URL 精确匹配并通过最终校验。
  • bun run switch:here 构建通过,bun run daemon:restart 完成本地部署,飞书连接正常。

影响范围

涉及共用 LinkRef 提取、登记和最终发送链路,以及飞书自动回合发送提示。回归覆盖 MCP、引用/转发、沙箱、远程 runner 和本地地址过滤路径。

@deepcoldy
deepcoldy merged commit c53afd0 into deepcoldy:master Nov 9, 2026
12 checks passed
@deepcoldy

Copy link
Copy Markdown
Owner

感谢 @Kerminate 的贡献,这个 PR 已 squash 合入 master。

改动解决了两个真实误判:大结果集(76 条问题 / 154 条链接)超过旧的 128 条登记上限导致原始链接被误判不一致,以及 **[标题](URL)** 这类 Markdown 链接把 )** 并入 URL 导致校验拒发。登记上限提升到 2048、账本持久化「登记不完整」标记并 fail-closed、按 Markdown 真实边界保留 URL 原始字节,整体方案和测试(含旧库迁移、事务回滚、变异验证)都比较扎实。

合码评审中发现 7 条非阻断打磨项,已按子系统开成两个 follow-up issue,不影响本次合入:

欢迎继续参与,也可以认领上面任一 issue。

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

@Kerminate @deepcoldy 合入 master 后的 Midscene E2E 失败:Feishu live Midscene 失败。

这次运行覆盖 c53afd0…af0f83d7f(7 个提交),同批合入的还有 #3236 #3243 #3240 #2843 #3246 #3247,失败不一定由本 PR 引起。

用例 跑道 状态 失败信息
Claude basic bot flow feishu-core-claude failed waitFor timeout: Based on the screenshot, the main content area displays a chat interface. There is a streaming card (green header) located above the "ACK-e2e-clause..." text bubble. This card contai…
OpenCode basic bot flow feishu-core-clis failed waitFor timeout: Based on the screenshot, I am examining the main content area which displays a conversation thread. There is a prominent card (streaming card) located above the text bubble containin…
Pi basic bot flow feishu-core-clis failed waitFor timeout: Based on the screenshot, I am examining the main content area which displays a conversation thread. There is a prominent card (streaming card) located above the text bubble containin…
OhMyPi basic bot flow feishu-core-clis failed waitFor timeout: The current screenshot shows the main content area displaying a conversation topic titled "e2e-ohmypi-1794226089094". The visible message in this topic is a text instruction from use…
Kimi basic bot flow feishu-core-clis failed waitFor timeout: Based on the screenshot, I am examining the main content area (right panel) which displays a conversation thread. There is a prominent card component located above the text bubble co…
Antigravity basic bot flow feishu-core-clis failed waitFor timeout: Based on the screenshot, I am examining the main content area (right panel) which displays a chat topic. There is a specific card from "Antigravity" located above the text bubble con…
Grok basic bot flow feishu-core-clis failed waitFor timeout: Based on the screenshot, I am examining the main content area (right panel) which displays a conversation thread. There is a prominent card titled "Grok Build • e2e-grok-179422803607…

@github-actions

Copy link
Copy Markdown

🚀 Released in v3.59.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants