Skip to content

A refused edit to a queued message in a shared conversation still records "edited by" #738

Closed

Description

@Jacksondr5

Problem

stampEdit (apps/server/src/j5/sharing/SharedConversation.ts) writes the new author record for a queued-run.edit (edited_by, stored_prefix, note) while admitting the command, before upstream dispatches it. If upstream then refuses the edit, because the queued run has already started (Orchestrator.ts, the queued-run edit decision), the record names an editor and a prefix that the stored message doesn't carry.

The source thread's timeline then shows "edited by Alice" on a message Alice never changed. Recall, search and the title also stop stripping the platform's lines from that message, because its stored prefix no longer matches its text.

Found in review of #731, which made forks ignore such records. The bug itself predates that PR.

What's wanted

The record changes only when upstream accepts the edit: either write it after the edit is accepted, or put it back when upstream refuses.

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