Repository navigation
fix(lark): 回复耗时自动显示分和小时 - #2283
Merged
Merged
Conversation
wzomg
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
October 24, 2026 14:50
Owner
|
感谢贡献!这个 PR 已合入 master(squash 提交 一个可选的后续测试硬化建议(不影响本次合入,生产代码无需改动):
另外两个可选项,供参考:
再次感谢! |
|
🚀 Released in v3.51.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.
长任务的飞书回复卡片一直用秒显示耗时,例如
1195.6 秒。现在等待、执行耗时和执行至回复共用自适应格式:短耗时保留一位小数秒,较长耗时显示为19 分 55.6 秒、1 小时 20 分,并同步支持英文。先按 0.1 秒舍入再拆分单位,处理秒到分、分到小时的进位;省略较长时长中的零值单位。原始毫秒数据、计时起止和消息路由保持不变。影响范围限于飞书 Bot Session 的公共回复页脚,不修改 CLI 适配器或执行后端。
验证:
bun run build通过;Linux 自包含二进制构建及隔离 smoke 全部通过。sleep 65后,最终卡片显示 等待 4.5 秒 · 执行至回复 1 分 41.3 秒。下图为不含用户信息的展示示意: