Design & UI v1.0.0

openclaw-dashboard-skill-modal-patch

Repair the OpenClaw Control UI Skills modal when clicking a skill row does nothing and DevTools shows a showModal...

danrudy33 更新于 2026-04-05 1 浏览
下载 SKILL

技能说明

Repair the OpenClaw Control UI Skills modal when clicking a skill row does nothing and DevTools shows a showModal InvalidStateError because the dialog is not yet in the document.

使用场景

Use this skill when the OpenClaw dashboard Skills page becomes non-responsive and clicking a skill row fails to open the detail modal.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/openclaw-dashboard-skill-modal-patch
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 18 kB
SKILL.md text/markdown
---
name: openclaw-dashboard-skill-modal-patch
description: Repair the OpenClaw Control UI Skills modal when clicking a skill row does nothing and DevTools shows a showModal InvalidStateError because the dialog is not yet in the document.
---

# OpenClaw Dashboard Skill Modal Patch

Use this skill when the OpenClaw dashboard Skills page becomes non-responsive and clicking a skill row fails to open the detail modal.

## Trigger symptom

DevTools shows:

```text
InvalidStateError: Failed to execute 'showModal' on 'HTMLDialogElement': The element is not in a Document.
```

## Fix procedure

1. Open the live bundle:
   ```sh
   nano /opt/homebrew/lib/node_modules/openclaw/dist/control-ui/assets/skills-m2TVOQPH.js
   ```

2. Search for:
   ```text
   showModal()
   ```

3. Replace:
   ```js
   ${r(e=>{!(e instanceof HTMLDialogElement)||e.open||e.showModal()})}
   ```
   with:
   ```js
   ${r(e=>{if(!(e instanceof HTMLDialogElement)||e.open)return;let t=()=>{if(e.open)return;try{e.showModal()}catch{setTimeout(()=>{try{e.showModal()}catch{}},0)}};e.isConnected?t():setTimeout(t,0)})}
   ```

4. Save the file and exit.

5. Hard reload the dashboard:
   - `Cmd+Shift+R`

6. Click a skill row and confirm the modal opens.

## Notes

- This is a UI timing bug, not a skills backend failure.
- If the asset filename changes in a future OpenClaw build, apply the same patch to the current `skills-*.js` bundle referenced by DevTools.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。