gc's interrupt drops nothing; a prompt that !stop drops is closed #36
Loading…
Reference in a new issue
No description provided.
Delete branch "server-interrupt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The owner's decision on spec-bb1.11 (specs-18's amendment): gc's
interruptis not!stop. It ends the turn and drops nothing; the owner's waiting messages and gc's nudges run after it, the owner's first. And a prompt that!stopdrops gets a closing record, so that a room takes the ⏳ off from a record. One pull request for the three sides, since roomcity-5e's session takes no messages at the moment; the host's change is three lines and a test.Cancelhasbool keep_waiting = 1. False is the owner's!stop, as before.internal/host):cancel(ctx, keepWaiting)drops the owner's queued prompts only when it is false. Test: running / gc nudge / owner waits / gc nudge, interrupted: all four run, the owner's second.Registry.Interruptqueues the Cancel withKeepWaiting, with no re-queueing of what waits; the operationinterruptand the keys Escape and Ctrl-C use it.Registry.Cancel(!stop) closes the record of each owner's prompt that has been neither delivered nor dropped with aPrompt{State: Dropped, Of: <the Stored record's Seq>}; the host's queue and the server's are both covered, since the server knows every owner's prompt not yet reported delivered. A lateHandledreport for a dropped prompt changes nothing. Schema: a column,keep_waiting, under the unreleased version 1.For roomcity-ee: the closing record is
session.Prompt{Seq, Source: FromOwner, Text, State: Dropped, Of};Ofis whatService.Promptreturned for it.Assisted-By: Claude noreply@anthropic.com