Skip to content

0.9.10: opens at once, earlier messages on request, a notification brings its message at once - #47

Merged
Ege-BULUT merged 1 commit into
mainfrom
local-cache
Nov 5, 2026
Merged

Ege-BULUT merged 1 commit into
mainfrom
local-cache

Conversation

@Ege-BULUT

Copy link
Copy Markdown
Owner
  • Opens at once. Each device keeps its chats' newest 20 messages, its people and groups, and the head they were read up to (oc.shown.<repo>.<id>). Opening shows them right away. Watcher.start(from, kept) then reads no tree, and the first tick brings only what came since: GraphQL history plus the files, with no recursive tree and no 60 messages per chat. When nothing was kept, the start is the same as before.
  • History that was not kept is not news. Each chat has a floor, the oldest message kept of it. Tree scans (the safety net, and the compare fallback for 300 or more files) leave anything older alone. A path listed as changed is always read, even when its id sorts below the floor, as a message sent in the same millisecond can.
  • A kept head the branch no longer has. If compare returns 404, the first tick finds what is new in the tree instead.
  • Earlier messages at the top of a chat loads 50 more, and the view stays where it was.
  • A notification brings its message at once. The open app listens to its own ntfy topic over SSE and polls at once when a notification arrives, then polls a few times a second apart.
  • This device's own file is read again whenever the devices are, because a kept start begins from the kept copy.
  • Signing out of a chat removes what was kept of it.
  • Version bump. Also brings the light/dark switch (Light and dark theme switch in the app's header #46) to the Android and desktop apps.

Tests: unit 93/93 (new: a kept start reads no tree, and a kept head that is gone), CLI 47/47, MCP 18/18, browser 111/111 (new cache section; the news test no longer names a fixed version).

…request, a notification brings its message at once

Each device keeps its chats' newest 20 messages, people and groups with the
head they were read up to. Opening shows them at once, and Watcher.start with
kept reads no tree: the first tick brings only what came since. A chat's
history older than what was kept counts as seen for scans of the tree only.

The open app listens to its own ntfy topic and polls at once when a
notification arrives. Earlier messages at the top of a chat loads 50 more.
Signing out of a chat removes what was kept of it.
@Ege-BULUT
Ege-BULUT merged commit 07a0943 into main Nov 5, 2026
1 check passed
@Ege-BULUT
Ege-BULUT deleted the local-cache branch November 5, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant