fix(feishu): hide meaningless 'main' card header in streaming and static cards#48385
fix(feishu): hide meaningless 'main' card header in streaming and static cards#48385Pengxiao-Wang wants to merge 2 commits intoopenclaw:mainfrom
Conversation
…tic cards When no agent identity name or emoji is configured, `resolveCardHeader` falls back to the raw `agentId`. For the default agent this produces a card titled "main", which is confusing for end users. Suppress the fallback when `agentId === "main"` and skip the header entirely when both name and emoji are empty. This applies to both streaming cards and static card replies. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Greptile SummaryThis PR fixes a UX issue in the Feishu integration where the raw string The change modifies Key observations:
Confidence Score: 4/5
|
When only emoji is set and name is empty (e.g. agentId === "main"),
the template literal `${emoji} ${name}` produces a trailing space.
Trim the composed title to avoid this cosmetic edge case.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Covered by #71542. Current main now omits the generic Closing this as superseded. Thanks for catching the default-header polish issue. |
Summary
"main"fallback inresolveCardHeaderwhenagentId === "main"and no identity name/emoji is configuredWhy
When no agent identity is configured (the common default setup), the card header displays the raw
agentIdvalue"main", which is confusing and provides no useful information to end users.Test plan
🤖 Generated with Claude Code