chat: !reset starts the session afresh #71
Loading…
Reference in a new issue
No description provided.
Delete branch "reset-command"
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?
!resetin a room, from a holder of the owner's role, as decided on spec-bb1.10 (the second of the owner's two amendments): the chat side callsService.Reset(the registry's, #64, which marks the open startresetand asks gc withgc session reset <id>), and answers in the room that it asked; a reset that cannot be asked (a session that is not running, no gc id recorded for the start, no resetter) is answered with the registry's reason.!helplists the command. The command never reaches the agent, and a stranger's is ignored like every command of one.When gc has stopped and started the session, the room gets its notice that the session began anew (the existing one), and, with #69, the journal links the transcript of the start that closed with
how = reset.Tested against the chattest fake: an owner's reset is made once and a stranger's not at all; the failure case answers with the error.
Read at
6ffc0b3: the chat tests pass here under-race. Nothing to change in the code. A holder's!resetgoes to the registry's Reset, a stranger's is ignored, what gc or the registry refuses is said in the room, and the driver runs each event's handler in a goroutine of its own, so the seconds gc takes hold nothing else up.On the coordinator's two cases. With a permission request open: the stop that gc makes ends the turn in the renderer, which says the request was withdrawn, and a reaction on it afterwards is told it is no longer open. With no gc id: the room gets the registry's sentence, which says what the server lacks and that the session can be reset once it has been started again.
It conflicts with main since #70; rebase it and it goes in.
6ffc0b34632b006ebb462b006ebb462ed993e911