mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-20 19:33:28 +08:00
fix(feishu): make watch completion delivery reliable
This commit is contained in:
parent
4e325c62e0
commit
a199c65356
8 changed files with 634 additions and 328 deletions
|
|
@ -211,7 +211,15 @@ export function watchListCard(entries) {
|
|||
* turn-end kind (completed / stopped / aborted).
|
||||
*/
|
||||
export function completionCard(sessionId, title, reason) {
|
||||
const reasonText = reason === 'stopped' ? '已停止' : reason === 'aborted' ? '已中止' : '已完成';
|
||||
const reasonText = reason === 'completed'
|
||||
? '已完成'
|
||||
: reason === 'stopped'
|
||||
? '已停止'
|
||||
: reason === 'aborted'
|
||||
? '已中止'
|
||||
: reason === 'cancelled'
|
||||
? '已取消'
|
||||
: '已结束';
|
||||
return cardWith('✅ 任务完成', [
|
||||
{ tag: 'div', text: markdown(`**${safeTitle(title)}**\n\`${sessionId}\``) },
|
||||
{ tag: 'div', text: markdown(`**状态**:${reasonText}`) },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue