Skip to content

Shared Tasks 0.4.0-beta.19

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 14 Oct 13:31
· 531 commits to main since this release

Shared Tasks 0.4.0-beta.19: the nineteenth beta with shared sections, and
the candidate for 0.4.0. (0.4.0-beta.18 was never released: everything in
it is here.)

A pre-release for testers through BRAT: the community directory and
Obsidian's own updates keep offering 0.3.x.

New since 0.4.0-beta.17

A section after a collaborator was removed loads for newcomers. When
someone's access to a section was removed, a collaborator invited
afterwards could stay at "no shared section on this device yet" for good,
in a section where nobody edited since. The section now loads for them
within seconds.

A new member who can't insert a section yet because of an unresolved
conflict is told what to do.
"Insert shared section…" said only that the
section "cannot be shown here yet". It now says that the section has a
conflict to resolve first: ask a member who already has it in a note to
open its details and choose "Review conflicts…", then insert it again.

"1 local update waiting" no longer stays after everything was sent.
After going offline or a server restart, a section could keep saying an
update was waiting although it had been sent and accepted. It now says the
section is up to date.

Reconnecting within 15 seconds. After the sync server or the network
was unreachable for a few minutes, Shared Tasks could take up to a minute
to reconnect after it came back. It now tries again at most every 15
seconds, and at once when you switch back to Obsidian's window.

Moving a task by cut and paste no longer deletes it for collaborators
when Obsidian is busy.
If you cut a task and pasted it elsewhere in the
section while Shared Tasks was still writing a change into the note, the
task could be deleted for your collaborators while your note still showed
it, and the section said it needed attention. The paste now always moves
the task.

New tasks next to an unresolved conflict are saved. While a conflict
in a section waited for "Review conflicts…", new tasks you typed next to
it could fail with "Local save failed", and every task typed after them
too. They are now placed next to the nearest task that can take them, and
saved.

No false "needs attention" after a collaborator deletes a task. When a
collaborator deleted a task, your section could say it differs from the
shared version, and "Review conflicts" offered to restore a task your note
no longer showed, until you next typed in that note. The task is now
removed and the section is up to date.

Review conflicts no longer offers a place it cannot apply. When a task
was moved by one collaborator while another deleted the task it was moved
under, "Review conflicts" offered to put it under the deleted task;
choosing that said it could not be applied, and the question stayed. Only
places that can be applied are offered now, and the top of the section
when no other is left.

A copy that differs says so when the shared version hides a task. A
task your note showed under another task that the shared version no
longer shows could stay in your note while your collaborators did not
have it, and the section said it was up to date. It now says your note
differs from the shared version.

No "Server confirmation unavailable" for changes that were saved.
After a long pause in Obsidian, a section could say "Server confirmation
unavailable" for changes the server had saved. It now says they are
confirmed.

A section with deleted tasks stays fast as its history grows. In a
section where tasks had been deleted, each change took longer the more
the section had been edited: after a few thousand changes, a second or
more, and the status could lag for several seconds. It now stays about
as fast as in a new section.

Memory stays flat as a section's history grows. A section's memory
grew with every change (in long sessions, hundreds of megabytes), and
editing slowed down with it. It now stays the same however long the
section's history is.

Tested before release. The full native suite on Obsidian 1.13.4 and
1.14.4 with a collaborator: sharing, joining, editing on both sides,
offline work and restarts, conflicts, removing someone and inviting
someone new, cut and paste, undo, the Reading view and the desktop
matrix (themes, views, split view, the Tasks plugin, copying).

Requires Obsidian 1.13.4 or later.

What it is

The features of 0.4.0, described in 0.4.0.md: share a whole
section of a note ("Share section…"), with its tasks, paragraphs and lists,
end-to-end encrypted, each section its own collaboration. Shared sections
are on in this beta: there is nothing to turn on.

Before you install

No way back to 0.3.x on this device. The first start of 0.4 upgrades
Shared Tasks' sync data on the device and encrypts it at rest. A 0.3.x
plugin can no longer open it ("Shared Tasks could not start:
VersionError"); install 0.4.x again and the data is intact. Your notes are
not affected.

  • Try it in a test vault first, or keep a copy of your vault.
  • A collaborator still on 0.3.x cannot join a shared section; their shared
    tasks keep working with yours.
  • Collaborators on a shared section should all update to this beta. A
    member on a beta before 0.4.0-beta.14 can keep undoing the others' edits
    while their note is open, and a member on a beta before 0.4.0-beta.4
    keeps seeing "Needs your attention" after someone else chose Keep it
    deleted
    .

Install with BRAT

  1. Install BRAT from the community plugins.
  2. Run "BRAT: Add a beta plugin for testing" with openlfcp/obsidian. In
    the version field choose Latest version: a specific version stays
    installed, and BRAT will not update it.
  3. Enable Shared Tasks. Settings → Community plugins lists it as
    version 0.4.0-beta.19. If it lists an earlier version, see below.

If an earlier 0.4.0 beta is installed, BRAT updates it ("BRAT: Check for
updates to all beta plugins"); your identity, collaborations and settings
are kept.

Stuck on an older beta? In BRAT's settings, find openlfcp/obsidian in
the beta plugin list. If it shows a version, it is pinned there: edit it and
choose Latest version (or remove it and add it again with Latest
version), then run "BRAT: Check for updates to all beta plugins". BRAT's
setting "Select latest plugin version by default" saves choosing.

To turn shared sections off, quit Obsidian, add "sectionsDisabled": true
to .obsidian/plugins/shared-tasks/data.json, and start it again.

What to report

"Export diagnostics…" prepares a report without note text, names, paths,
keys or links, and shows it to you first. Attach it to an issue at
https://github.com/openlfcp/obsidian/issues with what you did and what you
saw.

Known limits

The limits of 0.4.0.md apply: about 200 tasks per
section is the qualified size, sections are read-only on mobile, and there
are no headings inside a section.

  • Rejoining a section you were removed from isn't supported yet. Your
    local copy stays on your device.
  • Project server quotas. The project server (sync.openlfcp.org)
    currently lets one identity host up to 200 collaborations (each shared
    section is one), up to 50 new ones a day from one network, 256 MiB of
    stored data in all and 128 MiB per collaboration. Past a limit, the
    action is refused with "quota exceeded"; nothing already shared is lost.
    These values may change, and the server's operator can set other limits
    for an identity. A server you run yourself sets its own.

Under the hood

  • A member who may publish Snapshots publishes one as soon as the current
    Data Epoch (past 0) has none on this device, checked every 10 s: a
    member who joins after a removal receives only the new epoch's key and
    loads the history from that Snapshot. An invitation waits until the
    server has it.
  • The SDK status the host keeps (SdkStatusTracker) checks a batch in
    storage after each receipt release and each report that is not final: a
    batch the SDK no longer holds leaves the pending ones.
  • The reconnect policy waits 1 s, doubling, at most 15 s, each wait
    within ±20 %; focusing the window connects at once.
  • A pass's result describes the note as written: a node its remote patch
    removes is not reported shown again. A pass that wrote a collaborator's
    change and still reports the note as differing is followed by exactly
    one more pass, never a loop.
  • A paste made while a pass is still writing is not dropped: the source
    coordinator counts each route's changes, and a pass's write keeps a
    source that changed since the pass started, so the next pass sees the
    paste with its hints (soak finding #9).
  • The refusals of "Insert shared section…" come from one function
    (insertRefusalMessage); a section with a conflict says who can resolve it
    and how (LFCP-02-123 lifts the refusal itself).
  • A commit refused as INVALID_PREDECESSOR is planned again after the
    nearest earlier sibling the SDK may accept, or first, at most four times
    per pass (soak finding #12); other refusals are kept as before.
  • Review conflicts offers no placement under a deleted node.
  • A node active in the model but hidden, still shown in the note, counts
    as a divergence.
  • @openlfcp/* 0.2.0-beta.10: whether an edit was concurrent with a
    deletion is decided with vector clocks, the decoded history is reused
    between revisions, and the tree and snapshot are derived once per
    revision (a pass at 6,000 changes with 300 deleted tasks: 200 ms against
    746 ms, and the status read no longer derives the tree again).
  • @openlfcp/* 0.2.0-beta.9: an acknowledgement that arrives after a
    long pause is recorded as the server's confirmation; and a section's replica no longer keeps an old
    copy of the document per unchanged task (Automerge memory flat as the
    history grows: 10 MiB at 2,000 changes with 170 tasks, against 1.6 GiB).
  • New native spec section-remove-invite: remove someone, invite someone
    new, the newcomer loads (also with the plugin reloaded in between).
  • Unchanged: spec mvp-0.2-baseline.12, the reference server at
    138030a, 49 fixtures.