When an in-progress conversation is stopped (cancelled) and the prompt is edited to trigger a new "branch" in the conversation, all kinds of confusion occurs w.r.t. the conversation context. This confusion manifests in several ways:
- The new branch "knows" about context in the previous "sibling" branch when it shouldn't. (Most obvious when expanding thinking blocks and seeing references to a "previous" turn or the user "already" saying something in the sibling branch.)
- The new branch is actually a reply to a previous branch, not a new branch after all. (This may require a page refresh on desktop to see the "actual" state.)
- On mobile, the new branch is actually a reply to the "very first" branch in the entire conversation, regardless of the current branch depth. (This is difficult to notice on mobile UI unless you're looking out for it.)
It is possible these are all related to the same underlying root cause relating to how cancellation, edits, and conversation branches are implemented.
- Cancelling a conversation, editing the prompt, then (re)submitting the prompt should create a new branch that sees only the context of previous turns, not the context of any "sibling" branches.
- Cancelling a conversation or editing the prompt should keep the current context in the "current branch" without jumping around to any unrelated branches.