Skip to content

Edit prompt on a turn opened by an answer alone opens an earlier turn's prompt #714

Closed

Description

@SSFSKIM

Found while building ticket 704 (the envelope split). Read in code by the builder; not reproduced in a run.

What a person can meet. A turn can be opened by an answer envelope alone (the person answered an asynchronous question and typed nothing else). For such a turn, "Edit prompt" looks for the turn's opening prompt with initiatingPrompt (src/renderer/src/request-card/initiating-prompt.ts), finds none in that turn (the envelope is not the person's words), and takes an EARLIER turn's prompt. The person is offered an edit of a prompt that did not open this turn.

Fix. For a turn opened by an envelope alone, "Edit prompt" is not offered (or is offered only where the turn has a prompt of the person's own); it never reaches back to an earlier turn. Decide by the split's result (splitPersonsMessage), not by a parse of its own (the guard test src/shared/engine/envelope-readers.test.ts fails on a stray parser).

Tests first: a turn opened by an envelope alone after a turn with a prompt (from a recorded fixture of that shape under spikes/protocol-probe/fixtures/uxwave/), asserting what "Edit prompt" resolves to in each turn.

Acceptance: "Edit prompt" on a turn never opens another turn's prompt.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P3
    on Nov 16, 2026
  2. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 20, 2026
  3. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: batch 7, group A

  4. added
    status:in-review
    and removed
    status:in-progress
    on Nov 20, 2026
  5. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: batch 7, PR #804

  6. removed
    status:in-review
    on Nov 20, 2026
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

    bugpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions