openclaw - 💡(How to fix) Fix [Feature] sessions_list displayName 应优先使用 account name 而非 open_id [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

问题

在飞书多 bot 架构下,sessions_list 的 displayName 直接使用 session key 中的 open_id(飞书用户唯一标识),导致会话列表显示为无意义数字串。

现状

agent:main:feishu:direct:ou_802c30dd7131... → displayName: "ou_802c30dd..." agent:quote:feishu:direct:ou_8ad348410b... → displayName: "ou_8ad348..."

而 config 中每个 account 都有配好的 name:

  • main → 小龙瞎助手
  • quote → 报价专员
  • ai-trend → AI弄潮儿
  • marketing-data → 营销部数据专员
  • customer → 客户管理专员

建议方案

  1. displayName 优先从 session key 反查 account config 的 name 字段
  2. 对于有 label 的 session(如 cron 任务),保持现有逻辑
  3. Fallback 到 open_id(当前行为)

预期效果

session当前 displayName期望 displayName
main agent 私聊ou_802c30dd...小龙瞎助手
quote agent 私聊ou_8ad348...报价专员
ai-trend agent 私聊ou_1eda93...AI弄潮儿

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Feature] sessions_list displayName 应优先使用 account name 而非 open_id [1 pull requests]