openclaw - 💡(How to fix) Fix [Web UI] 会话页面加载时卡死,Loading data 卡住 [4 comments, 5 participants]

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…
GitHub stats
openclaw/openclaw#43649Fetched 2026-04-08 00:16:25
View on GitHub
Comments
4
Participants
5
Timeline
4
Reactions
0
Author
Timeline (top)
commented ×4
RAW_BUFFERClick to expand / collapse

环境

  • OpenClaw 版本:2026.3.8
  • 客户端:openclaw-control-ui (Web UI)

问题描述

通过 Web UI 访问时:

  1. 登录后在会话页面卡死,提示 "Loading data"
  2. 页面其他菜单无法点击
  3. 清除浏览器缓存后,进入"概览"页面配置 token
  4. 如果不进入"会话"页面,其他菜单(配置等)正常工作
  5. 一旦点击"会话"菜单,页面卡死,其他菜单也失效

复现步骤

  1. 清除浏览器缓存
  2. 打开 Web UI,配置 token
  3. 点击"会话"菜单
  4. 页面卡在 Loading data

备注

  • 飞书/TUI 客户端无此问题
  • 服务器端日志未见明显错误
  • 删除会话重新开始正常,但加载历史消息后复发

extent analysis

Fix Plan

The fix involves optimizing the session data loading process to prevent the page from freezing.

Steps to Fix

  • Optimize database queries: Limit the amount of session data loaded at once to prevent overloading the page.
  • Implement pagination: Load session data in smaller chunks, allowing the user to navigate through pages of data.
  • Add a loading indicator: Display a loading animation to indicate that data is being loaded, preventing the page from appearing frozen.

Example Code

// Limit session data loaded at once
const sessionData = await getSessionData(limit: 100, offset: 0);

// Implement pagination
const paginationButtons = [
  { text: 'Previous', onClick: () => loadPreviousPage() },
  { text: 'Next', onClick: () => loadNextPage() },
];

// Add a loading indicator
const loadingIndicator = <div>Loading data...</div>;

// Load session data in smaller chunks
async function loadSessionData(pageNumber) {
  const sessionData = await getSessionData(limit: 100, offset: pageNumber * 100);
  // Update the page with the loaded data
  updatePage(sessionData);
}

Verification

To verify the fix, follow these steps:

  • Clear browser cache
  • Open Web UI and configure token
  • Click on the "会话" menu
  • Verify that the page no longer freezes and that session data is loaded in smaller chunks

Extra Tips

  • Monitor server-side logs for any errors related to session data loading
  • Test the fix with different amounts of session data to ensure it scales properly
  • Consider implementing a caching mechanism to reduce the load on the server when loading session data.

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 [Web UI] 会话页面加载时卡死,Loading data 卡住 [4 comments, 5 participants]