Skip to content

A refused new message in a shared conversation still leaves an author record #740

Closed

Description

@Jacksondr5

Problem

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

  1. added a commit that references this issue on Nov 2, 2026
    e47ddd6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions