Sharing follows folders: workflows outside private folders are live while open
Replaces Share this tab / Stop sharing and the auto-share settings. The Live list shows workflows someone has open, the Files tab marks live files, private tabs offer Move to Shared, and deleting or moving a live file into a private folder closes its room on the server.
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@
|
||||
| **Edit** | Change shared workflows, save or rename workflow files, take and restore snapshots, upload files |
|
||||
| **Queue** | Queue prompts, interrupt, free memory |
|
||||
| **Manager** | Open ComfyUI Manager: install, update or remove custom nodes and models, snapshots, restart |
|
||||
| **Admin** | Everything, plus deleting workflow files, removing shared workflows, accounts and server settings |
|
||||
| **Admin** | Everything, plus deleting workflow files, accounts and server settings |
|
||||
|
||||
Queueing, uploads, and saving or deleting workflow files are checked by the server too, when *Enforce permissions on the ComfyUI API* is on (the default). A viewer cannot get around it with a script.
|
||||
|
||||
|
||||
+2
-4
@@ -6,14 +6,12 @@ In ComfyUI's settings dialog, under **RigShare**. They apply to your browser onl
|
||||
|
||||
| Setting | Default |
|
||||
|---|---|
|
||||
| Share saved workflows automatically | on |
|
||||
| Share unsaved tabs automatically once edited | on |
|
||||
| Show other people's cursors and selections | on |
|
||||
| Show names next to cursors | on |
|
||||
| Play a sound for new chat messages | on |
|
||||
| Show a notification for new chat messages | off |
|
||||
|
||||
Commands, bindable under *Keybindings*: **RigShare: Open chat** and **RigShare: Share this tab**.
|
||||
Commands, bindable under *Keybindings*: **RigShare: Open chat** and **Open from RigShare…** (Ctrl+Alt+O).
|
||||
|
||||
The **Server** tab's *Pop out* button toggles the floating monitor. Drag it by its title; its position is remembered.
|
||||
|
||||
@@ -32,7 +30,7 @@ Admins change these under **Admin → Server settings**. They are stored in `rig
|
||||
| `hide_api_templates` | `false` | Remove templates that need paid API nodes from the template browser |
|
||||
| `api_protection.enabled` | `true` | Server-side checks on queue, interrupt, free and upload calls |
|
||||
| `api_protection.trusted_ips` | `["127.0.0.1", "::1"]` | Addresses or networks that skip login and checks |
|
||||
| `room_expiry_days` | `14` | Forget shared workflows nobody opened for this long |
|
||||
| `room_expiry_days` | `14` | Forget the live state of workflows nobody opened for this long |
|
||||
| `snapshot_interval_sec` | `300` | Automatic snapshot interval while editing; `0` turns it off |
|
||||
| `snapshot_keep` | `30` | Automatic snapshots kept per workflow; named ones are always kept |
|
||||
| `chat_history` | `200` | Chat messages kept |
|
||||
|
||||
+14
-18
@@ -1,22 +1,23 @@
|
||||
# Sharing workflows
|
||||
|
||||
Every shared workflow is a *room* on the server. The server keeps the current version of each room and relays edits between everyone who has it open.
|
||||
Sharing follows folders, like a shared drive. There is nothing to share by hand: where a workflow is saved decides who works on it with you.
|
||||
|
||||
## Which tabs are shared
|
||||
## Which tabs are live
|
||||
|
||||
| Tab | Shared? |
|
||||
| Tab | Live? |
|
||||
|---|---|
|
||||
| A saved workflow file | Yes, automatically. Everyone who opens the same file lands in the same room. |
|
||||
| An unsaved tab | As soon as you edit it, or when you click **Share this tab**. Untouched tabs, such as the default workflow or tabs restored from your last visit, stay private. |
|
||||
| A workflow saved in **Shared** or at the top level of the workflows folder | Yes, while it is open. Everyone who opens the same file lands in the same room and edits it together. |
|
||||
| A workflow in **My files** (your private folder) | No. Only you (and admins) can open it. |
|
||||
| An unsaved tab | No. Save it outside your private folder to work on it with others. |
|
||||
| A snapshot opened as a copy | No, it is a private copy. |
|
||||
|
||||
Both automatic behaviours can be turned off in ComfyUI's settings under *RigShare*.
|
||||
To take a private workflow live, move it out of *My files*: **Move to Shared…** in the panel, **Move to…** in the Files tab, or save it somewhere shared.
|
||||
|
||||
Only the tab on screen is live. Switch to another tab and you leave the room; switch back and you rejoin. If the room changed meanwhile, you get the current version.
|
||||
Only the tab on screen is live. Switch to another tab and you leave the room; switch back and you rejoin. If the workflow changed meanwhile, you get the current version.
|
||||
|
||||
## The panel
|
||||
|
||||
**Workflows** shows the tab on screen: whether it is live, who else is in it, and buttons for **Snapshot**, **History** and **Stop sharing**. Below that is the list of shared workflows, with the people in each one. Open any of them with the arrow.
|
||||
**Live** shows the tab on screen: whether it is live, who else is in it, and buttons for **Snapshot** and **History**. For a private or unsaved tab it says why it is not live. Below that is the list of **live workflows**: those someone has open right now, with their folder and the people in each one. Open any of them with the arrow. The Files tab marks live files with a green dot.
|
||||
|
||||
**People** lists who is online and which workflow they are on. The eye button *follows* someone: it jumps to their tab and keeps your view on theirs until you click or scroll the canvas.
|
||||
|
||||
@@ -30,20 +31,15 @@ Only the tab on screen is live. Switch to another tab and you leave the room; sw
|
||||
|
||||
Viewers (no *Edit* permission) see a read-only canvas. Anything they change locally is put back.
|
||||
|
||||
## Stop sharing
|
||||
## When a workflow stops being live
|
||||
|
||||
**Stop sharing** takes the tab out of its room and keeps working on a private copy.
|
||||
|
||||
- For an **admin**, if nobody else is in the room, it is also removed from the shared list, and a *Before unshare* snapshot is kept in its history.
|
||||
- Otherwise, including for everyone who is not an admin, you just leave. It stays shared for the others.
|
||||
|
||||
Only admins can remove a shared workflow. Workflows nobody has open show a 🗑 button for them in the list. For a saved file, stopping sharing only applies to you. Anyone else who opens the file shares it again, unless they turned off automatic sharing.
|
||||
|
||||
Rooms nobody opens for 14 days are forgotten (`room_expiry_days`).
|
||||
- When everyone closes it, it leaves the live list. The server keeps its latest state, so the next person to open it picks up where the others left off, saved or not. That state is forgotten after 14 days without anyone opening it (`room_expiry_days`).
|
||||
- Moving it into a private folder takes it out of live sharing straight away.
|
||||
- Deleting it (admins, or the owner of its shared folder) closes it for the people who have it open. Their tabs stay as private copies, and a *Before delete* snapshot is kept.
|
||||
|
||||
## Who can open it
|
||||
|
||||
By default everyone with an account can open a shared workflow, with their usual permissions. The **Access** button under *This tab* lets its owner, whoever shared it first, or any admin choose *Only people I choose* and give each person **Can view** or **Can edit**.
|
||||
By default everyone who can open its folder can open a live workflow, with their usual permissions. The **Access** button under *This tab* lets its owner (whoever opened it first) or any admin choose *Only people I choose* and give each person **Can view** or **Can edit**.
|
||||
|
||||
- The owner and admins always have access.
|
||||
- A role can only narrow someone's account permissions: *Can edit* does nothing for an account without *Edit*.
|
||||
|
||||
Reference in New Issue
Block a user