0
Fork 0
mirror of https://github.com/zeronsh/comet.git synced 2026-11-16 18:57:19 +00:00
Commit graph

315 commits

Author SHA1 Message Date
Wing
f29c197e2d Merge remote-tracking branch 'origin/main' into zeron/main-catches-up 2026-11-13 03:59:31 -07:00
Wing
3ef287e270 Tool images: engine only, one file per picture in a chat, the CLI's note exactly
Review follow-ups for #1103:
- crates/ui is back to main (the desktop is apps/zgx now), but for the
  `preview_paths: Vec::new()` its initializers need to compile. The engine
  still names stored copies on the tool part; zgx reads them (#1186).
- A stored picture is named `tool-<chat>-<sha256 of its bytes>`: the same
  picture again in a chat (another Read, another subagent) is one file
  rather than a copy per call, and a chat's pictures share a prefix for
  whatever clears a chat's away. Uploads keep them as before.
- Only the CLI's own image note is bookkeeping: one line, `[Image: source:
  <path>]` or `[Image: original WxH, displayed at WxH…]`. A steer that just
  starts with `[Image: ` and ends with `]` reaches the subagent.
- `is_meta` and `tool_use_result` also read as the live stream spells them.
- docs/image-preview.md says what the engine does and who reads it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 23:06:13 -07:00
Daniel Katulevskiy
4e1efa5393
Merge remote-tracking branch 'upstream/main' into pr1103-fix 2026-11-12 20:37:23 -08:00
Wing
5ac4775867 Relay layer: engines run it against every edge, ZERON_RELAY_LAYER=0 turns it off
relay_layer_on no longer looks at the edge: on unless ZERON_RELAY_LAYER is
set to anything but 1. Whether a chat relays is still the room's call, so
an edge that doesn't offer the layer (production's today, an old
self-hosted one, a local dev edge) keeps every chat on stored rows.

A new test proves that against a room shaped like production's: the host
stays on generation 2, its commits go up as stored rows, no relay frame
reaches the room, and no heal is owed. The relay task no longer encodes a
version to announce when no room has offered the layer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
2026-11-10 12:57:04 -07:00
Wing
09b2c76b98 engine: the relay layer runs against staging only, until asked
Production's edge may not serve the relay layer yet (#1299 deploys it),
so an engine runs the layer only against the staging edge
(ZERON_EDGE_URL=https://staging.zeron.sh) or when ZERON_RELAY_LAYER=1.
Against production's edge, the default, or any other, it stays on stored
rows exactly as before; ZERON_RELAY_LAYER set to anything but 1 is still
the kill switch, staging included. One place: relay_layer_on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
2026-11-10 01:03:14 -07:00
Wing
40e1bde977 Merge #1322 (Cloud, relay and GitHub work) into zeron/zgx
Conflicts:
- locales (en, zh-Hans): both new groups kept, zgx's dictation strings
  and #1322's Cloud machine notices and turn states.
- plugins/init.luau: both sides fixed a plugin's own Open on GitHub going
  back into its tab. Kept #1322's (plugin_links.unclaimed around the app's
  opener), which also keeps a comment's link out of the tab; and its test,
  which covers zgx's test's case and checks a chat's link still opens the tab.
- v2's .base.json: re-recorded after the merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
2026-11-10 00:54:33 -07:00
Wing
47300ada2e Merge commit 'refs/pull/1223/head' of github-winglee:zeronsh/zeron into zeron/laurent-chips
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>

# Conflicts:
#	apps/zgx/Cargo.lock
#	apps/zgx/ui/ds/composer.luau
#	apps/zgx/ui/locales/en.json
#	apps/zgx/ui/locales/zh-Hans.json
#	apps/zgx/ui/templates/zeron-v2/.base.json
2026-11-09 23:57:57 -07:00
Wing
51b0e1dc43 Merge zeron/zgx into the Cloud, relay and GitHub work
Conflicts resolved:
- Engine checkpoints: zgx's upload in parts now carries the relay layer's
  atFloor/heal flags and hands the edge's refusal back to the relay state.
  The engine's own size cap follows the room's (256 MB in parts), so a long
  chat's checkpoint isn't held back before it's sent.
- Attachments: zgx's local copies of another device's uploads, rewritten with
  the app-capture attribute escaping.
- zgx app: zgx's composer, mention sections, link chips and remote harness
  retries, with the Cloud machine notices, held messages and turn states on
  top; v2 template base re-recorded.
- Linux packaging: zgx's beta packaging, keeping the fat-LTO engine build.
- apps/zgx Cargo pins: zgx's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 23:21:27 -07:00
Wing
63774eef24 zgx: dictation as a feature of the app, with Settings → Voice
Dictation was a built-in plugin in name only: its model, microphone and
protected insert all lived in the app, and the plugin needed a new engine
permission. Make it what it is:

- src/dictation.rs talks to zeron_voice directly. No plugin lease, backend
  trait or catalog, and no engine, MCP or plugin-system changes.
- ds.Composer takes one `dictation` prop instead of twelve, and sends on its
  own, so lane_tab's send no longer has to move.
- Settings → Voice: turning dictation on downloads the model, then the
  microphone, shortcut and Remove, as the shipping app's page has them.
- The shortcut is in Settings → Shortcuts' table.

Fixes along the way: Send while transcribing never sent (retiring the words
ran the effect again, which stopped its timer); the waveform stayed flat (its
level was never passed), so it breathes from time again and nothing publishes
a level every 40 ms; and an unknown data folder panicked the window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 03:36:57 -07:00
Wing
aec924c131 Relay: old clients no longer hold a chat or an account back
One old app anywhere on an account kept every chat on stored rows, and a rollout
had to wait out a 14-day window to see them all. A chat now goes to generation 3
whatever else is on the account. Old clients read that as a chat2 room as they
always have, and when one opens a chat the room tells its host, which stores for
as long as it's there. So storage is paid per chat, only while an old client has
that chat open.

With nothing left to gate, the rollout has one control: CHAT_RELAY_LAYER on the
edge, for everyone or a list of user ids. Engines run the layer by default and
follow the room's answer, with ZERON_RELAY_LAYER=0 as a kill switch. Gone: the
registry's list of old clients, the account-wide rule, and CLOUD_RELAY_LAYER.

The smoke test proves it against shipped v0.2.138, v0.2.137 and v0.2.116.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 00:46:21 -07:00
Wing
f90362e4ba Merge zeron/relay-layer (343d1938) 2026-11-07 19:47:08 -07:00
Wing
343d1938be Cloud: CLOUD_RELAY_LAYER passes the engine's relay flag to new machines
Nothing turned ZERON_RELAY_LAYER on in a Cloud machine's engine, so the
rollout's engine step couldn't reach Cloud. With CLOUD_RELAY_LAYER=1 on the
edge, machines provisioned from then on get it in their unit's environment;
the value is validated like the rest (empty or 1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 19:41:05 -07:00
Wing
70e86950b1 Merge zeron/github-multi-account
# Conflicts:
#	edge/src/cloud/cloud-account.ts
#	edge/test/workerd/cloud-delegates.workerd.test.ts
2026-11-07 19:38:06 -07:00
Wing
960a21734b Merge zeron/cloud-attachments-r2
# Conflicts:
#	crates/client/src/live/mod.rs
#	crates/client/src/session/mod.rs
#	crates/client/tests/support/mock_edge.rs
#	crates/sync/src/store.rs
#	crates/ui/src/state.rs
2026-11-07 19:37:42 -07:00
Wing
d0c49fc2c6 Merge zeron/cloud-update-wake-speed 2026-11-07 19:36:35 -07:00
Wing
a21e2add2c Merge zeron/cloud-fast-wake 2026-11-07 19:36:35 -07:00
Wing
9a651772d6 Merge zeron/credit-rate 2026-11-07 19:36:35 -07:00
Wing
acfdd9a440 Merge zeron/cloud-durable 2026-11-07 19:36:35 -07:00
Wing
cf27cfc23a Merge zeron/relay-mobile-ios 2026-11-07 19:36:11 -07:00
Wing
8bd78290f4 Merge zeron/relay-layer
# Conflicts:
#	crates/engine/src/sessions.rs
#	edge/src/env.ts
2026-11-07 19:36:10 -07:00
Wing
9f6312c48c Merge zeron/registry-fewer-writes
# Conflicts:
#	edge/src/env.ts
2026-11-07 19:35:50 -07:00
Wing
5be004e327 Merge zeron/relay-layer: the second review's fixes 2026-11-07 00:41:56 -07:00
Wing
fe911e0fc4 Two-engine smoke: a whale chat, a rejected push; design doc for the review fixes
With the layer on, a chat over the relay limit (64 KiB in this debug run) stays on
stored rows after its first save and after its host restarts. With it off, a
message too big to store reaches the other device by checkpoint, and so do the
turns after it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 00:41:27 -07:00
Wing
5b3f50b3ce Offer Remove on the desktop, and fail a queued row whose file is gone
The desktop transcript now shows Remove beside Retry on a failed send, and
beside "Sending..." while a send's files upload. It calls RemoveHeldSend and
takes the message out of view at once.

The lifecycle rule for stored files goes to 30 days, so a queued message on a
machine asleep for weeks still finds its files. If one has aged out anyway, a
Cloud machine past the 15-minute cap now takes the row out of its queue and
leaves it as its sender's failed message, with a retry that uploads the files
again. Before, the row waited for them forever.

A phone keeps each file it sent through the store until that message is in the
transcript, for queued rows as well as runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 00:15:43 -07:00
Wing
451822be9d Cloud wakes copy back only what a machine needs
A Cloud machine's disk is copied back in on every wake while the engine
starts. Two more things came back every time without being needed:

- the release's zeron-engine (78 MB), the desktop app's background engine.
  The unit runs `zeron headless`, which links the engine, so the installer
  and the updater now leave it out on Cloud, and the tidy and the pre-sleep
  cleanup remove it from versions installed before;
- Codex's own downloads in the managed CODEX_HOME: its plugin catalog
  (about 60 MB) and the account's plugin bundles (about 30 MB). The
  pre-sleep cleanup clears them every sleep; Codex fetches them again in
  the background once it runs. Its login, sessions, databases and settings
  are never touched.

On staging, a machine on one version went from a median of 17.5 s to
14.2 s send to first output (n=8 each), and its wake downloaded 225 MB,
205 of them the engine it runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 00:06:11 -07:00
Wing
6e8b4c8a99 Keep every send until its person removes it
A failed send nobody retried was deleted after a week, and a send that couldn't
upload for a week stopped trying. Now the outbox never gives up on its own: it
backs off to every 15 minutes after a week, and a failed send stays until it's
retried or removed.

RemoveHeldSend {chatId, id} takes a send out of the outbox, failed or still
uploading. It never goes out after that, even mid-upload, and its stored copies
are deleted. On mobile, PendingSend.removable marks those rows and
SessionHandle::remove_send does the same.

Every try uploads all of a send's files again, so none ages out at the edge
while it's alive. A phone now keeps its copy until the message has run, so a
retry after expiry uploads it again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 23:36:10 -07:00
Wing
a3f6c35262 Engine: check session heartbeats every 5 s so restamps stay 30 s apart
With the 15 s liveness tick a stamp left by the last streamed event could
wait for the second tick past 25 s: the live test saw a live row go 39.9 s
without a restamp, too close to shipped readers' 45 s gate. The tick now
only checks every 5 s, and the activity projection checks on the same
cadence, so a due row is stored within 30 s of the last.

The live test reports rows moved instead of the room's in-memory counters,
which reset whenever the idle object is evicted, and holds the live-row gap
under 33 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 23:29:28 -07:00
Wing
538fd2b05f Cloud wakes stay fast after updates: remove old engine versions
Every release a machine took stayed in ~/.zeron/app (about 270 MB each),
and a resumed Cloud disk is copied back in whole while the engine starts,
so each one kept was read in beside the version starting. On staging, two
machines three updates in answered in about 39 s instead of 18.

Once an update settles, and on every start after, the versions older than
current go, with the one an update gave up on. A Cloud machine keeps none
of them; other Linux installs keep the newest older one to go back to by
hand. Never current, the running executable's folder, or a newer version
(an update being staged). Downloads a stop cut off are cleared too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 23:25:10 -07:00
Wing
f295d210fb Engine: store session heartbeats only while a row can expire, and skip repeated host stamps
Measured on wrangler dev, a 60 s streaming turn pushed 14 registry rows and
the session it parked pushed 8 more every 2 minutes, for 30 minutes.

- A liveness touch restamps a session row only while it says something
  readers expire (a live status, subagents, background work, a wait), and
  at most every 25 s (quiet rows every 30 s, on the second 15 s tick).
  Shipped readers drop such a row after 45 s with no other signal, so this
  is as slow as they allow. A session parked idle is not touched at all.
- Terminal activity leases refresh on the same cadence.
- Harness session, source context (observedAt aside), branch, checkout,
  cwd and roomGen stamps push only fields whose value changed.

The live test now also streams half its turn and stays quiet for the
rest, and fails if a live session row ever goes 45 s without a restamp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 23:16:14 -07:00
Wing
022da49f95 Merge zeron/relay-layer (bee81e89): a host joining restarts a stalled sync
A phone back from a long background asked a host that wasn't in the room for
the frames it missed, and the room forwards only to who's there. The round
then waited out its 60 s stall: on a real iPhone the rest of a reply landed
61.5 s after foreground. Now a sync round asked of a peer that joins with
nothing back restarts at once. No conflicts. zeron-sync lib tests pass (108).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 22:50:19 -07:00
Wing
8fbbe858a4 Relay layer design: measured relay latency, and the limits found
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 22:08:04 -07:00
Wing
6bd35c92b1 Cap a user's waiting attachments, and give Cloud messages a week
The edge now limits what one user has stored and not yet collected by a Cloud
machine: 1 GiB and 500 files by default, set with ATTACHMENT_QUOTA_BYTES and
ATTACHMENT_QUOTA_OBJECTS. An upload past either gets 507, and the message shows
as failed in its chat with a retry. Collected, deleted and expired files free
their space.

A message to a Cloud-hosted chat now expires after 7 days instead of 1, so it
still runs once its machine comes back from days asleep. Other chats keep their
day. The outbox retries for the same week, and the lifecycle rule for stored
files becomes 14 days.

WatchWaitingMessages lists a chat's messages not yet taken by its agent, with
when each was sent and when it expires, so the composer can say an old one is
about to send.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 21:17:50 -07:00
Wing
051be288fb Vault: disconnecting a GitHub login revokes its tokens
A token already on a machine no longer lives out its hour. Disconnecting a login
revokes its user token and every installation token minted for its sessions with
GitHub, at once. Installation tokens are now kept with the login they were minted
for and never shared between logins, so one login's revocation never reaches
another's sessions.

The disconnect succeeds whether or not GitHub answers: what it didn't revoke is
retried on the object's alarm until GitHub answers or the token would have expired
anyway. A token minted while its login was being disconnected is revoked and never
handed out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 21:04:29 -07:00
Wing
ab4cd7cb66 Merge zeron/relay-layer (6e473538): the relay alone, direct links parked
Brings the split: run_link, the link inputs and events, CHAT_LINK_PREFIX,
the link stats and the room's skip are gone, and the host no longer serves
chatlink/. The direct-link code is parked on zeron/relay-direct-link.

Conflicts: the engine's ChatLinkService and relay-layer.md's direct-link
design section, both taken from relay-layer as the split has them. The phone
side already dropped its link in 93da4b726.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
2026-11-06 20:53:36 -07:00
Wing
6e473538d9 Relay layer: ship the relay alone, direct links are parked
Chat links over WebRTC move to the branch zeron/relay-direct-link, whole, so they
can come back. Here a chat's frames take the room and nothing else: no path waits
on a link or prefers one, the room no longer takes a skip list, and a device no
longer serves chatlink/ streams.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 20:50:04 -07:00
Wing
93da4b726c A phone follows a relayed chat through its room only
The owner parked peer-to-peer. A phone no longer opens a direct link to a
chat's host: the room carries every frame, catch-up and send. The link task,
LinkWanted and its idle clock are gone from crates/client, so nothing on a
phone pairs, holds a WebRTC connection, or sends STUN keepalives for a chat.
Terminals keep their own direct path, as on main.

The parked link and its pacing are on zeron/relay-mobile-direct-link.
relay-mobile.md says so up top and its behaviour tables describe the room
path. The room test keeps its route checks, minus the link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
2026-11-06 20:49:08 -07:00
Wing
1a63ab2f3d Merge zeron/relay-layer (cee503f5) into zeron/relay-mobile-ios
Brings the direct-link fixes in crates/preview to the phone: signaling
reconnects keep open connections, `gone` keeps the pairing pace, and private
LAN candidates are skipped when the public addresses differ.

relay.rs: both sides changed the PR-status watch. Kept the presence gate from
this branch and the 2-minute cap and next_watch_retry from relay-layer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
2026-11-06 20:42:55 -07:00
Wing
f0181381bf Relay layer: record what real networks measured
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 18:38:33 -07:00
Wing
f2197ca0ee Relay on phones: a phone with the layer works on an edge without it
A release ships ahead of any edge flag. This runs the real client against a real edge
with the flag off, or from before the layer: a send is a stored row, as ever.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 18:25:20 -07:00
Wing
75ea729f03 Relay on phones: what's been run, and where
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 18:10:06 -07:00
Wing
25ece15a47 Relay layer: tests for the shared checkpoint read, and where the docs say mobile stands
The first versions of these passed with the behaviour broken: the phone-level test didn't
force the bootstrap pull and the socket to overlap, and a second path hid the parked row.
Each now fails when its behaviour is taken out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 18:10:06 -07:00
Wing
ba79b4dfd0 A chat link refused over a connection that's up asks again soon
An idle host may still be opening the chat its wake asked for. A few quick retries get
the link up in seconds, where waiting out the pairing curve took 15 s or more.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 18:10:05 -07:00
Wing
830042791e iOS follows relayed chats, and says where a chat is
The app runs the relay layer, and an empty transcript says why it's empty, with the
desktop's strings. A send waiting on a path or a host no longer ages into "Not
delivered". Debug arguments let a rig play an old phone, a phone with no network, and
a send from outside.

relay_rig drives a headless engine while a phone is tested against it, and
docs/design/relay-mobile.md is the handoff for Android.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 18:06:35 -07:00
Wing
84f24f36ab Cloud: a credit is a minute of a small machine, from a cutover day
A credit is meant to be a minute of a small machine, which the provider
bills at 0.5×: 30 billable seconds. The code charged 60.

Balances are worked out from raw usage seconds at the current rate, so
just changing it would re-price all past usage too. The rate now goes by
the UTC day the usage fell on: days before CLOUD_CREDIT_RATE_FROM stay at
60 seconds a credit, and from that day on it's CLOUD_CREDIT_SECONDS. That
covers the balance, plan periods, usage per day and a running machine's
live estimate, which is split at midnight. Provider seconds and dollars
don't change.

Without a real day in CLOUD_CREDIT_RATE_FROM every day stays at 60, even
with CLOUD_CREDIT_SECONDS set. wrangler.jsonc carries the new rate and a
placeholder day, so merging changes nothing until a deployer picks one.

The apps say "a small machine" now, and the "about N hours" line, which
was about the default machine, says small-machine hours.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 17:35:29 -07:00
Wing
c9b082176d A Cloud machine updates before it answers
A machine that sleeps most of the time would otherwise answer on whatever it last
had. Its engine now holds work from assembly, turns a dying machine left to resume
included, and looks for a release. Newer, it installs it, restarts into it and only
answers once the update trial commits. With nothing newer the check costs only what
it outlasts the rest of the boot by.

The message always gets answered. A check that hangs or fails, a failed or slow
download, a refused restart and a restart that never comes all lift the hold on the
version already running, and the background updater tries again later. It can't
loop: a release it went back from or couldn't install isn't tried from a boot again,
and one that failed to download waits 6 hours. A bad new version gives way to the
old one, which finds the rollback and answers; one that hangs gives way after 5
minutes.

This replaces the 2-minute hold on engine updates. What it protected stays: an
update can't restart the engine under a live run or open terminal and, on Cloud,
while a message is waiting. Off Cloud nothing changes. The agent CLI check keeps its
own delay.

A longer wake reads as updating: CloudSession.stage says so, the desktop's waiting
word follows it, the answer's setup steps name the version, and the timeline records
the check, the install, the restart and which version answered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 17:22:36 -07:00
Wing
d4f6be26d1 ChatRoom: ask the registry each time a queue row is confirmed
A cached answer kept a device that had just stopped hosting able to confirm rows for
the length of the cache. A real two-device run lost a message to the new host that way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 17:05:45 -07:00
Wing
430212e664 Merge branch 'wip/fix-durable' into wip/fix-fastwake 2026-11-06 16:25:01 -07:00
Wing
e45dbbf25e Say what an older Cloud engine does about updates
Seen on a real machine: it logs that one is available and stays where it is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 16:24:58 -07:00
Wing
dc8ae9dcff Taking a queued row waits for whoever is still writing one
A row goes in one write at a time, and a drain on another thread could take it
between them: it left with its id and none of the rest, and the next write failed
on a deleted container. The send failed, or the row vanished. It showed as a queue
test failing about one run in eight.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 16:24:56 -07:00
Wing
adb3a9edb9 Relay layer: say when a chat's host is away, and wake it for clients with no hint
A chat this device has never loaded reads as empty once it has caught up with a room
that stores nothing. That looks like a chat with no messages. Now, while it has
messages and an empty copy here, it waits on its host and says so if the host is away.

A client that sends no host hint gets the host from the registry, so an old reader
arriving at a relayed chat still brings the host back to store for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 14:45:33 -07:00