You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A refused new message in a shared conversation still leaves an author record #740
stampMessage (apps/server/src/j5/sharing/SharedConversation.ts) records a new message's author, note and stored prefix while admitting the command, before upstream dispatches it. If upstream refuses the message, the record stays with no message behind it. Because recordAuthor uses ON CONFLICT … DO NOTHING, a later attempt with the same message id keeps the old prefix and note, so its lines may not be stripped and its note may be wrong.
There is no visible symptom on its own today: lastTold ignores messages with no started run. Found in review of #739, which moved queued-message edits to record only after upstream accepts them.
What's wanted
A new message's record is written only once upstream accepts the message, the same way #739 does for edits, or a retry with the same id replaces it.
Activity
fix(j5): a refused new message in a shared conversation leaves no aut…