openclaw - 💡(How to fix) Fix [Feature]: Feature Request: 优化心跳会话的显示标签 [1 participants]

Official PRs (…)
ON THIS PAGE

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…
GitHub stats
openclaw/openclaw#44488Fetched 2026-04-08 00:46:13
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
labeled ×1

问题现状:

  • 执行 /new 后,控制面板聊天窗口右上角显示 "Main Session"
  • 当系统发送心跳轮询(heartbeat poll)时,标签变为 "heartbeat"
  • 这让用户困惑,误以为是会话状态变化

期望行为:

  • 心跳轮询不应改变会话标签的显示
  • 标签应保持显示 "Main Session" 或用户可识别的会话名称
  • 心跳是后台系统行为,对用户应透明

建议方案(任选其一):

  1. 心跳会话继承主会话标签 — heartbeat 请求使用与主会话相同的标签
  2. 新增配置项 — 如 ui.showHeartbeatLabel: false 允许用户隐藏心跳标签
  3. UI 层面优化 — 控制面板在渲染会话标签时忽略心跳前缀

影响范围:

  • OpenClaw 控制面板 UI
  • 会话标签显示逻辑

优先级建议: 低(不影响功能,仅影响用户体验

Root Cause

问题现状:

  • 执行 /new 后,控制面板聊天窗口右上角显示 "Main Session"
  • 当系统发送心跳轮询(heartbeat poll)时,标签变为 "heartbeat"
  • 这让用户困惑,误以为是会话状态变化

期望行为:

  • 心跳轮询不应改变会话标签的显示
  • 标签应保持显示 "Main Session" 或用户可识别的会话名称
  • 心跳是后台系统行为,对用户应透明

建议方案(任选其一):

  1. 心跳会话继承主会话标签 — heartbeat 请求使用与主会话相同的标签
  2. 新增配置项 — 如 ui.showHeartbeatLabel: false 允许用户隐藏心跳标签
  3. UI 层面优化 — 控制面板在渲染会话标签时忽略心跳前缀

影响范围:

  • OpenClaw 控制面板 UI
  • 会话标签显示逻辑

优先级建议: 低(不影响功能,仅影响用户体验

RAW_BUFFERClick to expand / collapse

Summary

问题现状:

  • 执行 /new 后,控制面板聊天窗口右上角显示 "Main Session"
  • 当系统发送心跳轮询(heartbeat poll)时,标签变为 "heartbeat"
  • 这让用户困惑,误以为是会话状态变化

期望行为:

  • 心跳轮询不应改变会话标签的显示
  • 标签应保持显示 "Main Session" 或用户可识别的会话名称
  • 心跳是后台系统行为,对用户应透明

建议方案(任选其一):

  1. 心跳会话继承主会话标签 — heartbeat 请求使用与主会话相同的标签
  2. 新增配置项 — 如 ui.showHeartbeatLabel: false 允许用户隐藏心跳标签
  3. UI 层面优化 — 控制面板在渲染会话标签时忽略心跳前缀

影响范围:

  • OpenClaw 控制面板 UI
  • 会话标签显示逻辑

优先级建议: 低(不影响功能,仅影响用户体验

Problem to solve

问题现状:

  • 执行 /new 后,控制面板聊天窗口右上角显示 "Main Session"
  • 当系统发送心跳轮询(heartbeat poll)时,标签变为 "heartbeat"
  • 这让用户困惑,误以为是会话状态变化

期望行为:

  • 心跳轮询不应改变会话标签的显示
  • 标签应保持显示 "Main Session" 或用户可识别的会话名称
  • 心跳是后台系统行为,对用户应透明

建议方案(任选其一):

  1. 心跳会话继承主会话标签 — heartbeat 请求使用与主会话相同的标签
  2. 新增配置项 — 如 ui.showHeartbeatLabel: false 允许用户隐藏心跳标签
  3. UI 层面优化 — 控制面板在渲染会话标签时忽略心跳前缀

影响范围:

  • OpenClaw 控制面板 UI
  • 会话标签显示逻辑

优先级建议: 低(不影响功能,仅影响用户体验

Proposed solution

问题现状:

  • 执行 /new 后,控制面板聊天窗口右上角显示 "Main Session"
  • 当系统发送心跳轮询(heartbeat poll)时,标签变为 "heartbeat"
  • 这让用户困惑,误以为是会话状态变化

期望行为:

  • 心跳轮询不应改变会话标签的显示
  • 标签应保持显示 "Main Session" 或用户可识别的会话名称
  • 心跳是后台系统行为,对用户应透明

建议方案(任选其一):

  1. 心跳会话继承主会话标签 — heartbeat 请求使用与主会话相同的标签
  2. 新增配置项 — 如 ui.showHeartbeatLabel: false 允许用户隐藏心跳标签
  3. UI 层面优化 — 控制面板在渲染会话标签时忽略心跳前缀

影响范围:

  • OpenClaw 控制面板 UI
  • 会话标签显示逻辑

优先级建议: 低(不影响功能,仅影响用户体验

Alternatives considered

No response

Impact

问题现状:

  • 执行 /new 后,控制面板聊天窗口右上角显示 "Main Session"
  • 当系统发送心跳轮询(heartbeat poll)时,标签变为 "heartbeat"
  • 这让用户困惑,误以为是会话状态变化

期望行为:

  • 心跳轮询不应改变会话标签的显示
  • 标签应保持显示 "Main Session" 或用户可识别的会话名称
  • 心跳是后台系统行为,对用户应透明

建议方案(任选其一):

  1. 心跳会话继承主会话标签 — heartbeat 请求使用与主会话相同的标签
  2. 新增配置项 — 如 ui.showHeartbeatLabel: false 允许用户隐藏心跳标签
  3. UI 层面优化 — 控制面板在渲染会话标签时忽略心跳前缀

影响范围:

  • OpenClaw 控制面板 UI
  • 会话标签显示逻辑

优先级建议: 低(不影响功能,仅影响用户体验

Evidence/examples

No response

Additional information

No response

extent analysis

Fix Plan

To fix the issue of the session label changing to "heartbeat" during heartbeat polls, we can implement one of the suggested solutions. Here, we'll go with the UI 层面优化 (UI optimization) approach, where the control panel ignores the heartbeat prefix when rendering the session label.

Steps:

  • Identify the code responsible for rendering the session label in the OpenClaw control panel UI.
  • Modify the code to check if the session label starts with the heartbeat prefix.
  • If it does, ignore the prefix and display the original session label ("Main Session" or the user-recognizable session name).

Example Code (in JavaScript):

// Assume 'sessionLabel' is the variable holding the current session label
if (sessionLabel.startsWith('heartbeat')) {
  // Ignore the heartbeat prefix and display the original session label
  const originalLabel = sessionLabel.replace('heartbeat-', '');
  // Update the UI to display the original session label
  document.getElementById('session-label').innerText = originalLabel;
}

Verification

To verify that the fix worked:

  1. Execute the /new command to start a new session.
  2. Verify that the session label displays "Main Session" or the expected user-recognizable name.
  3. Trigger a heartbeat poll (either manually or by waiting for the system to send one automatically).
  4. Check that the session label remains unchanged, still displaying "Main Session" or the original name.

Extra Tips

  • When implementing the fix, ensure that the code change is backward compatible and does not introduce any regressions.
  • Consider adding a configuration option to allow users to customize the behavior of the session label during heartbeat polls.
  • Test the fix thoroughly to ensure it works as expected in different scenarios and edge cases.

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]: Feature Request: 优化心跳会话的显示标签 [1 participants]