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
Edit prompt on a turn opened by an answer alone opens an earlier turn's prompt #714
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
Edit prompt: red case, a turn opened by an answer alone resolves to t…
SSFSKIM commentedon Nov 20, 2026
[board] in-progress: batch 7, group A
Edit prompt: the newest human turn's own prompt, none for a turn an a…
Red cases: Edit prompt offered for a turn an answer opened alone (#714)…
Edit prompt: not offered, and never answered, for a turn an answer op…
Edit prompt: the dialog's cases read the recorded async ask, whose an…
Revert the WIP dialog: the fix stands (#714)
SSFSKIM commentedon Nov 20, 2026
[board] in-review: batch 7, PR #804