chat: !reset starts the session afresh #71

Merged
mikluko merged 1 commit from reset-command into main 2026-11-16 09:42:01 +00:00
Owner

!reset in 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 calls Service.Reset (the registry's, #64, which marks the open start reset and asks gc with gc 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. !help lists 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.

`!reset` in 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 calls `Service.Reset` (the registry's, #64, which marks the open start `reset` and asks gc with `gc 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. `!help` lists 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.
chat: !reset starts the session afresh
All checks were successful
test / changelog (pull_request) Successful in 6s
image / image (pull_request) Successful in 17s
test / go (pull_request) Successful in 1m2s
6ffc0b3463
Assisted-By: Claude <noreply@anthropic.com>
Author
Owner

Read at 6ffc0b3: the chat tests pass here under -race. Nothing to change in the code. A holder's !reset goes 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.

Read at 6ffc0b3: the chat tests pass here under `-race`. Nothing to change in the code. A holder's `!reset` goes 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.
mikluko force-pushed reset-command from 6ffc0b3463
All checks were successful
test / changelog (pull_request) Successful in 6s
image / image (pull_request) Successful in 17s
test / go (pull_request) Successful in 1m2s
to 2b006ebb46
All checks were successful
test / changelog (pull_request) Successful in 6s
image / image (pull_request) Successful in 19s
test / go (pull_request) Successful in 49s
2026-11-16 09:37:38 +00:00
Compare
mikluko force-pushed reset-command from 2b006ebb46
All checks were successful
test / changelog (pull_request) Successful in 6s
image / image (pull_request) Successful in 19s
test / go (pull_request) Successful in 49s
to 2ed993e911
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 16s
test / go (pull_request) Successful in 45s
2026-11-16 09:39:49 +00:00
Compare
mikluko deleted branch reset-command 2026-11-16 09:42:01 +00:00
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/roomcity!71
No description provided.