Sessions and locking

RubyQuill allows one writer per project at a time so two tabs — or two computers — cannot corrupt the same files. That rule holds for ordinary projects and for Cloud drives and shared projects projects with Shared enabled.

How locking works (same computer)

  • Opening a project for write creates or claims .rq.lock.

  • Ownership is tied to your browser session and tab id.

  • Reloading the same tab can resume writing.

  • A second tab opens the project read-only.

Force acquire (non-shared)

If you are stuck read-only on a project that is not Shared, and you know no other tab is actively editing, use Force Acquire Lock in the header. That takes write ownership for the current tab.

Shared projects (cloud / collaborators)

When the project uses a custom path and Shared is on (Cloud drives and shared projects):

  • Read-only clients use Request Edit Lock instead of an immediate force.

  • The current holder is prompted to Save & Yield or Deny. Idle holders may auto-yield after a short timeout.

  • After a yield, wait for cloud sync; the requester then enters write mode.

  • If there is no response (asleep machine or paused sync), a cloud sync warning asks you to verify the drive before Take Over Lock.

Shared mode is still one person on one computer at a time. It coordinates handoff; it does not allow two people to edit simultaneously.

Stale locks

If the writer stops heartbeating (closed laptop, crashed tab), the lock becomes stale after the configured timeout (default on the order of thirty minutes). Another tab or machine can then take the lock without a full request dance. Exact timing comes from server / App Config — see INSTALL.md.

Closing cleanly

Use Close on the Project ribbon (or leave via home) so RubyQuill can create a Restore Point, release the lock, and disconnect cleanly. Prefer that over killing the browser tab when you can — a hard tab close still tries to flush unsaved HTML for crash safety, but it does not create a Restore Point. See Restore Points and Revision Compare.