OpenClaw Dashboard Skill Modal Patch
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...
Latest: v1.0.0
- Initial release of the openclaw-dashboard-skill-modal-patch skill.
- Fixes the issue where the Skills page modal does not open and DevTools reports "showModal InvalidStateError" due to the dialog not being in the document.
- Provides step-by-step instructions to patch the UI bundle and resolve the modal open bug.
- Includes troubleshooting notes for future OpenClaw builds if asset filenames change.
Full 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:
InvalidStateError: Failed to execute 'showModal' on 'HTMLDialogElement': The element is not in a Document.
Fix procedure
-
Open the live bundle:
sh nano /opt/homebrew/lib/node_modules/openclaw/dist/control-ui/assets/skills-m2TVOQPH.js -
Search for:
text showModal() -
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)})} -
Save the file and exit.
-
Hard reload the dashboard:
Cmd+Shift+R
-
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-*.jsbundle referenced by DevTools.
