Keep Remote connected when returning to the desktop

This commit is contained in:
ak47 committed 2026-11-04 17:19:33 -05:00
1 parent a8ca2f9cfe
commit 2af73dd764
9 files changed
+157 -25

No files matched your search

+11 -2
View File
@@ -25,8 +25,8 @@ library supplies no proof that a submission came from that form or a local key.
Pending approval has a context that ends on replacement, matching revocation,
consumption, disconnect or SDK loss. A replacement cancels setup and inspection.
The reader remains authoritative for action expiry at `remote.open`; the
protocol currently supplies no event for expiry of an unopened action. Merely
The reader remains authoritative for action expiry at `remote.open`; it also
notifies the coordinator when an unopened action expires or is revoked. Merely
keeping a form open does not extend approval. An expired action cannot connect.
The workflow's `done` barrier includes its inspection worker. Cancelling it
@@ -34,6 +34,15 @@ initiates coordinator cleanup; wait separately on the coordinator's Disconnect
barrier before disposing the SDK session/store. Cleanup is scoped to the original
epoch: closing an old form cannot retire a newer approval or connection.
Status offers **Return to desktop and keep this connection**. After reader lease
open it returns a terminal `remote_background` result with that lease/epoch;
the reader verifies ownership and releases the interaction without cancellation.
The workflow and heartbeat remain under their original lease/policy lifetime.
The Remote shortcut reopens status/Disconnect. Before open succeeds this action
keeps status open with a refresh/disconnect notice. Ordinary Escape, Cancel and
Disconnect and close continue to end the workflow; this is an explicit exception
for desktop return, not a change to generic form cancellation.
## Explicit actions
- **Connect relay** validates the entered key, or uses a key previously loaded