openclaw - ✅(Solved) Fix Control UI - Cannot switch back to chat after clicking other sidebar items (TypeError: Cannot read properties of undefined (reading 'kind')) [2 pull requests, 2 comments, 2 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#54439Fetched 2026-04-08 01:27:29
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Participants
Timeline (top)
commented ×2cross-referenced ×2labeled ×2

Error Message

Console Error

Console error screenshot attached Error occurs in app-render.ts line 348, seems to be a list rendering issue where an object's kind property is undefined without null check. This blocks the entire UI from switching views. Console error screenshot attached Error occurs in app-render.ts line 348, seems to be a list rendering issue where an object's kind property is undefined without null check. This blocks the entire UI from switching views. Console error screenshot attached Error occurs in app-render.ts line 348, seems to be a list rendering issue where an object's kind property is undefined without null check. This blocks the entire UI from switching views. Console error screenshot attached Error occurs in app-render.ts line 348, seems to be a list rendering issue where an object's kind property is undefined without null check. This blocks the entire UI from switching views.

PR fix notes

PR #54550: fix(ui): tolerate malformed cron payloads in chat nav

Description (problem / solution / changelog)

Summary

  • guard cron model suggestion generation against jobs with missing payloads
  • ignore malformed cron entries instead of crashing the Control UI render path
  • add a jsdom regression test that locks in the no-throw behavior

Verification

  • pnpm --dir ui test -- --project unit src/ui/app-render.test.ts
  • pnpm exec oxfmt --check ui/src/ui/app-render.ts ui/src/ui/app-render.test.ts

Closes #54439

Changed files

  • ui/src/ui/app-render.test.ts (added, +31/-0)
  • ui/src/ui/app-render.ts (modified, +3/-2)

PR #54552: fix(ui): tolerate malformed cron payloads in chat nav

Description (problem / solution / changelog)

Summary

  • guard cron model suggestion generation against jobs with missing payloads
  • ignore malformed cron entries instead of crashing the Control UI render path
  • add a jsdom regression test that locks in the no-throw behavior

Verification

  • pnpm --dir ui test -- --project unit src/ui/app-render.test.ts
  • pnpm exec oxfmt --check ui/src/ui/app-render.ts ui/src/ui/app-render.test.ts

Closes #54439

Changed files

  • ui/src/ui/app-render.test.ts (added, +31/-0)
  • ui/src/ui/app-render.ts (modified, +3/-2)
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Summary

Describe the bug

点击左侧控制栏的其他栏目(如定时任务/Cron)后,再点击聊天界面无反应,无法切换回聊天视图。

Console Error

Steps to reproduce

To Reproduce

Steps to reproduce the behavior:

  1. Open OpenClaw Control UI
  2. Click on any sidebar item (e.g., Cron/Sessions/Nodes)
  3. Click back on Chat/聊天
  4. UI does not respond, cannot switch back

Expected behavior

Should be able to switch back to chat view normally

Screenshots

Console error screenshot attached

Environment

  • OpenClaw version: 2026.3.23-2
  • Browser: Chrome/Edge
  • OS: Windows 10/11

Additional context

Error occurs in app-render.ts line 348, seems to be a list rendering issue where an object's kind property is undefined without null check. This blocks the entire UI from switching views.

Expected behavior

To Reproduce

Steps to reproduce the behavior:

  1. Open OpenClaw Control UI
  2. Click on any sidebar item (e.g., Cron/Sessions/Nodes)
  3. Click back on Chat/聊天
  4. UI does not respond, cannot switch back

Expected behavior

Should be able to switch back to chat view normally

Screenshots

Console error screenshot attached

Environment

  • OpenClaw version: 2026.3.23-2
  • Browser: Chrome/Edge
  • OS: Windows 10/11

Additional context

Error occurs in app-render.ts line 348, seems to be a list rendering issue where an object's kind property is undefined without null check. This blocks the entire UI from switching views.

Actual behavior

To Reproduce

Steps to reproduce the behavior:

  1. Open OpenClaw Control UI
  2. Click on any sidebar item (e.g., Cron/Sessions/Nodes)
  3. Click back on Chat/聊天
  4. UI does not respond, cannot switch back

Expected behavior

Should be able to switch back to chat view normally

Screenshots

Console error screenshot attached

Environment

  • OpenClaw version: 2026.3.23-2
  • Browser: Chrome/Edge
  • OS: Windows 10/11

Additional context

Error occurs in app-render.ts line 348, seems to be a list rendering issue where an object's kind property is undefined without null check. This blocks the entire UI from switching views.

OpenClaw version

2026.3.23

Operating system

windows 11

Install method

NPM

Model

qwen3.5-plus bailian

Provider / routing chain

OpenClaw -> Cloudflare-Al-Gateway -> qwen3.5

Additional provider/model setup details

To Reproduce

Steps to reproduce the behavior:

  1. Open OpenClaw Control UI
  2. Click on any sidebar item (e.g., Cron/Sessions/Nodes)
  3. Click back on Chat/聊天
  4. UI does not respond, cannot switch back

Expected behavior

Should be able to switch back to chat view normally

Screenshots

Console error screenshot attached

Environment

  • OpenClaw version: 2026.3.23-2
  • Browser: Chrome/Edge
  • OS: Windows 10/11

Additional context

Error occurs in app-render.ts line 348, seems to be a list rendering issue where an object's kind property is undefined without null check. This blocks the entire UI from switching views.

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

Fix Plan

To fix the issue, we need to add a null check for the kind property in the app-render.ts file.

  • Open the app-render.ts file and navigate to line 348.
  • Add a null check for the kind property before trying to access it.
  • Use the optional chaining operator (?.) or a simple if statement to check if the kind property is defined.

Example code:

// Before
const kind = item.kind;

// After
const kind = item?.kind;

or

// After
let kind;
if (item && item.kind) {
  kind = item.kind;
}
  • Save the changes and rebuild the application.

Verification

To verify that the fix worked, follow these steps:

  • Open the OpenClaw Control UI.
  • Click on any sidebar item (e.g., Cron/Sessions/Nodes).
  • Click back on Chat/聊天.
  • The UI should respond and switch back to the chat view normally.

Extra Tips

  • Make sure to test the application thoroughly after applying the fix to ensure that it works as expected.
  • Consider adding additional error handling and logging to help diagnose similar issues in the future.
  • Review the code to ensure that similar null checks are added in other places where necessary.

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…

FAQ

Expected behavior

Should be able to switch back to chat view normally

Still need to ship something?

×6

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

Back to top recommendations

TRENDING