Skip to content

🎨 Refine Agent Signal receipt cards#14558

Merged
AmAzing129 merged 2 commits into
canaryfrom
amazing/update-youtube-comment-skill
May 9, 2026
Merged

🎨 Refine Agent Signal receipt cards#14558
AmAzing129 merged 2 commits into
canaryfrom
amazing/update-youtube-comment-skill

Conversation

@AmAzing129

Copy link
Copy Markdown
Contributor

Summary

  • 将 Agent Signal receipt 统一抽成可复用的 PortalResourceCard,并按 kind 区分 icon 与描述
  • 仅在存在可打开 target 时才显示 Open,并让整张卡可点击;无目标时降级为纯状态卡
  • 继续沿用对话尾部的 receipt 展示位置,同时保留 anchored / unanchored 的现有渲染链路
  • 补充 receipt 卡片交互与无目标状态的测试

Testing

  • bunx vitest run --silent='passed-only' src/features/Conversation/ChatList/components/AgentSignalReceiptList.test.tsx
  • bun run type-check
  • 本地浏览器预览确认 receipt 卡片样式与点击行为

@dosubot dosubot Bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label May 9, 2026
@vercel

vercel Bot commented May 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lobehub Ready Ready Preview, Comment May 9, 2026 8:37am

Request Review

@dosubot dosubot Bot added the feature:agent Assistant/Agent configuration and behavior label May 9, 2026

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've reviewed this pull request using the Sourcery rules engine

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0ee2e048fb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +142 to +143
<MessageContent {...item} />
{footerRender}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Render receipt footer outside assistant error short-circuit

Placing footerRender inside ChatItem children causes receipts to disappear for assistant messages that surface an error with empty/placeholder content. In ChatItem, the error && isEmptyMessage branch renders only error UI and skips children, so cases like provider failures (message === LOADING_FLAT or blank) will no longer show Agent Signal receipts that previously rendered via endRender at MessageItem level. This is a user-visible regression specifically in error scenarios.

Useful? React with 👍 / 👎.

@codecov

codecov Bot commented May 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.28571% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.83%. Comparing base (cef69e9) to head (864d742).
⚠️ Report is 3 commits behind head on canary.

Additional details and impacted files
@@             Coverage Diff             @@
##           canary   #14558       +/-   ##
===========================================
- Coverage   83.05%   68.83%   -14.22%     
===========================================
  Files         437     2632     +2195     
  Lines       29931   232063   +202132     
  Branches     5822    28625    +22803     
===========================================
+ Hits        24858   159738   +134880     
- Misses       4941    72174    +67233     
- Partials      132      151       +19     
Flag Coverage Δ
app 63.49% <94.28%> (?)
database 92.03% <ø> (?)
packages/agent-runtime 80.50% <ø> (?)
packages/builtin-tool-lobe-agent 83.41% <ø> (?)
packages/context-engine 83.93% <ø> (ø)
packages/conversation-flow 92.43% <ø> (?)
packages/file-loaders 87.60% <ø> (ø)
packages/memory-user-memory 74.74% <ø> (?)
packages/model-bank 99.94% <ø> (?)
packages/model-runtime 83.68% <ø> (ø)
packages/prompts 70.16% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (?)
packages/types 4.86% <ø> (?)
packages/utils 88.02% <ø> (ø)
packages/web-crawler 88.29% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Store 66.94% <ø> (∅)
Services 54.11% <ø> (∅)
Server 70.55% <ø> (∅)
Libs 54.03% <ø> (∅)
Utils 79.95% <ø> (-13.53%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@AmAzing129

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 864d74294e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +95 to +99
const hasEmptyErrorMessage = Boolean(
errorContent &&
error &&
(message === LOADING_FLAT || !message || String(message).trim() === ''),
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3 Badge Use consistent empty-message check for error footers

footerRender is now injected via both belowMessage and messageExtra, but the guard for belowMessage treats whitespace-only content as empty (String(message).trim() === '') while the error prop still only checks message === LOADING_FLAT || !message || shouldForceShowError. When an assistant message contains only whitespace plus an error, belowMessage is enabled and ChatItem still renders messageExtra, so the receipt footer can render twice and the error-only layout is skipped. This regression comes from the mismatch between the new hasEmptyErrorMessage condition and the existing error condition.

Useful? React with 👍 / 👎.

@AmAzing129 AmAzing129 merged commit 2b165ec into canary May 9, 2026
39 checks passed
@AmAzing129 AmAzing129 deleted the amazing/update-youtube-comment-skill branch May 9, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature:agent Assistant/Agent configuration and behavior size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant