Archived
fix(sessions): void the open ask_user form when a chat message arrives
An ordinary chat message answers the session's open ask in the user's own words, so keeping the form open would invite answers to questions the conversation has already moved past. The form now closes as cancelled, browsers clear the live card, and the model is told without being woken so the notice rides into the turn the message itself starts. Ignored duplicate queued messages skip the void on purpose: they must not void an ask posted after the queued original.
This commit is contained in:
@@ -831,6 +831,10 @@
|
||||
and its unanswered questions to the model, and turns the earlier card into a read-only transcript record.
|
||||
Submitted and cancelled asks likewise remain readable in the transcript.
|
||||
</p>
|
||||
<p>
|
||||
Sending an ordinary chat message while a form is open voids the form: the card closes as cancelled and
|
||||
the model is told its questions went unanswered as part of the turn the message itself starts.
|
||||
</p>
|
||||
<div class="callout warning">
|
||||
<strong>Restart required:</strong> restart the session daemon after changing <code>askUser</code> or after
|
||||
upgrading PI WEB to a version that introduces this tool. For the systemd user service, run
|
||||
|
||||
Reference in New Issue
Block a user