Show which branch of a conversation Continue will remember #79

Closed
opened 2026-10-02 22:01:28 +00:00 by jhgaylor · 1 comment
Owner

From: #72 (M33), S20 Q5.

An opened conversation shows its transcript in file order, every branch included (S20: walking parentUuid drops real exchanges). But resuming a session continues from the newest last-prompt.leafUuid, so when a transcript has branches (a rewind, an edited prompt, or two writers as in S20 Q5), the model after Continue doesn't know some turns the block shows above it.

Seen for real in M33's check: S20's scratch session showed the "vault code is 2468" exchange, and after Continue the model answered "UNKNOWN", because the resume followed the CLI's branch.

  • What: mark which entries are on the branch a resume will follow; dim or fold the others ("not in what it remembers"), and say so in the note before the first abandoned entry. The converter already tracks rewinds; it needs last-prompt.leafUuid and a walk back from it that bridges compactions (logicalParentUuid) and side lines (away_summary), keeping what S20 learned about the chain.
  • Done when: a fixture with a rewind and one with two writers show the abandoned branch marked, and the remembered branch matches what a resumed session answers (S20's scratch fixture: the vault code is marked as not remembered).
**From:** #72 (M33), S20 Q5. An opened conversation shows its transcript in **file order**, every branch included (S20: walking `parentUuid` drops real exchanges). But resuming a session continues from the newest `last-prompt.leafUuid`, so when a transcript has branches (a rewind, an edited prompt, or two writers as in S20 Q5), the model after *Continue* doesn't know some turns the block shows above it. Seen for real in M33's check: S20's scratch session showed the "vault code is 2468" exchange, and after *Continue* the model answered "UNKNOWN", because the resume followed the CLI's branch. - **What:** mark which entries are on the branch a resume will follow; dim or fold the others ("not in what it remembers"), and say so in the note before the first abandoned entry. The converter already tracks rewinds; it needs `last-prompt.leafUuid` and a walk back from it that bridges compactions (`logicalParentUuid`) and side lines (`away_summary`), keeping what S20 learned about the chain. - **Done when:** a fixture with a rewind and one with two writers show the abandoned branch marked, and the remembered branch matches what a resumed session answers (S20's scratch fixture: the vault code is marked as not remembered).
Author
Owner

Merged into main (e38b19b, from a68c6b9). An opened conversation marks what Continue won't remember: the web client folds and dims those entries under "Not in what it remembers", and the TUI dims them. The branch is worked out the way Claude Code 2.1.288 resumes, with compactions bridged through logicalParentUuid (conversations/branch.rs).

Checked against real resumes of copies, in a throwaway config dir:

  • the scratch session answered "UNKNOWN, teal", with the vault code marked;
  • the same session cut before the CLI's last last-prompt answered "2468, UNKNOWN", with the lighthouse turn marked;
  • Claude Code's own rewind answered "APPLE, blue", with red marked.

One change from the issue: away_summary lines aren't bridged, because Claude Code doesn't bridge them either. A resumed copy of a real session didn't know the prompt that an away summary cut off. On geek, 17 of 436 sessions have something marked. CI passed on both runners.

Merged into main (e38b19b, from a68c6b9). An opened conversation marks what Continue won't remember: the web client folds and dims those entries under "Not in what it remembers", and the TUI dims them. The branch is worked out the way Claude Code 2.1.288 resumes, with compactions bridged through `logicalParentUuid` (`conversations/branch.rs`). Checked against real resumes of copies, in a throwaway config dir: - the scratch session answered "UNKNOWN, teal", with the vault code marked; - the same session cut before the CLI's last `last-prompt` answered "2468, UNKNOWN", with the lighthouse turn marked; - Claude Code's own rewind answered "APPLE, blue", with red marked. One change from the issue: `away_summary` lines aren't bridged, because Claude Code doesn't bridge them either. A resumed copy of a real session didn't know the prompt that an away summary cut off. On geek, 17 of 436 sessions have something marked. CI passed on both runners.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jhgaylor/illogical#79
No description provided.