Repository navigation
Fixed
- A store now has at most one relay connection, also while
hkcli syncstarts, reconnects or
stops. Whichever process has the connection open holds the newrelay.lockin the store; other
commands send through a running sync, or wait for the lock and then connect on their own. In
0.4.0 a command could still open a second connection next to a sync that was reconnecting,
starting, or slow to stop. - While sync waits to reconnect, commands send on a short-lived connection of their own instead
of waiting for it. hkcli syncalso stops gracefully on SIGTERM (systemd, launchd,kill): it finishes the sends
it took on and removessync-control.json. A second SIGTERM changes nothing; a second Ctrl+C
still stops it at once. Closing a connection takes at most about 30 seconds.- Commands send nothing to the address in
sync-control.jsonuntil it proves it belongs to the
running sync, so a leftover file whose port another program took over learns nothing. syncstops with an error when it cannot open the local endpoint other commands send through.- OpenClaw channel: the sync is asked to stop only once. A second stop request made hkcli quit
before it finished the replies it took on.
Added
sendandchats mark-readreport in their--jsonoutput how the message went out:viais
sync(through the running sync) orown(on a connection of its own).- Error code
relay_unavailable: hkcli could not get the store's relay connection (another hkcli
process kept it busy, or Hike's relay could not be reached). Nothing was sent, so trying again
is safe; the OpenClaw channel treats it that way. A send that cannot connect to Hike's relay
used to fail withrelay_error, which says the message may have gone out. - The
syncevent countslatemessages: messages sent while the connection was listening that
arrived only through the catch-up after it reconnected, a sign that Hike had stopped delivering
to it. The OpenClaw channel logs a warning for them.
Changed
- OpenClaw channel 0.2.0 needs hkcli 0.4.1 or newer (the 0.4.0 notes said 0.4.0).
- After upgrading hkcli, restart any running
hkcli sync(for OpenClaw, restart the Gateway or
the Hike channel). hkcli 0.4.0 and older do not userelay.lock.
Full changelog: https://github.com/vinaycodeaxe/hkcli/blob/main/CHANGELOG.md