reload_workspace
Reload the ComfyUI browser tab to apply changed extension JavaScript, then wait for it to reconnect before continuing. Use force to bypass the browser's unsaved-changes confirmation.
Instructions
Reload the ComfyUI browser tab, and wait for it to come back.
This is the fix for exactly one thing: changed extension JavaScript. The bridge's own JS, and every node pack's, is served from disk on each page load and never re-read otherwise, so editing it takes a reload and nothing else - restarting ComfyUI would cost minutes and achieve the same thing by accident. Installing or upgrading a node is the opposite case and needs restart_comfy, because Python packs are imported once at startup.
It waits for the tab to register again rather than firing and returning, for the reason open_workspace does: a page part-way through loading fails exactly like no page at all.
The browser can refuse. ComfyUI asks "Leave site?" when a workflow has
unsaved edits, and that dialog waits for a human - nothing here can dismiss
it. So a tab with edits is refused by default; force reloads anyway, having
first written the canvas to the export directory so nothing can be lost.
Opening a second tab is the other way round the problem: a new tab loads the
current JavaScript without disturbing this one.
Args: wait: seconds to wait for the tab to reconnect. 0 returns immediately. force: reload even though the browser may put a confirmation on screen. client_id: which tab, when several are open. Defaults to the focused one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | ||
| force | No | ||
| client_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||