mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-09-28 15:07:21 -04:00
The uploads sessions command builds a posix driver with async file uploads enabled, which makes it join the "dcfs" JetStream queue group. Clean/restart/resume events published by the command itself can then be routed to the CLI's own short-lived consumer; the nats client auto-acks them and they are lost when the process exits, leaving stale upload sessions behind. Disable asyncfileuploads for the CLI driver instance so it only lists sessions and publishes events. Also emit [] instead of null when the session list is empty so the JSON output stays parseable.