0.1.4: settings decide where a vault shares; leaving always finishes

- A folder found sharing somewhere other than its settings say is set back
  (every 30 s, under the vault's op lock). Two programs racing — the 0.1.1
  CLI upload against the 0.1.2 app's check-in — had left Brain's settings on
  the hub and its folder on Gitea, so it kept "syncing" to the wrong place.
- Leaving hands over to the vault's own hub, never to wherever the folder
  points. If the hub refuses the history (an older entry has a possible
  secret), the device hands over its current notes as one entry with those
  lines replaced, instead of retrying forever with the folder read-only.
- The app says "leaving" while that's in progress instead of "Synced".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 17:49:49 +07:00
parent 4ab9d580b8
commit fdcdecf0f1
9 changed files with 160 additions and 8 deletions

8
Cargo.lock generated
View File

@@ -2581,7 +2581,7 @@ checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
[[package]]
name = "lune-core"
version = "0.1.3"
version = "0.1.4"
dependencies = [
"anyhow",
"base64 0.23.1",
@@ -2601,7 +2601,7 @@ dependencies = [
[[package]]
name = "lune-desktop"
version = "0.1.3"
version = "0.1.4"
dependencies = [
"anyhow",
"chrono",
@@ -2621,7 +2621,7 @@ dependencies = [
[[package]]
name = "lunehub"
version = "0.1.3"
version = "0.1.4"
dependencies = [
"anyhow",
"axum",
@@ -2642,7 +2642,7 @@ dependencies = [
[[package]]
name = "lunesync"
version = "0.1.3"
version = "0.1.4"
dependencies = [
"anyhow",
"chrono",