Skip to content

feat(session): continue from safe assistant and tool boundaries - #116

Open
danielkov wants to merge 1 commit into
feat/transcript-prompt-branchesfrom
feat/transcript-continuation
Open

feat(session): continue from safe assistant and tool boundaries#116
danielkov wants to merge 1 commit into
feat/transcript-prompt-branchesfrom
feat/transcript-continuation

Conversation

@danielkov

Copy link
Copy Markdown
Contributor

Summary

Extend /branch to continue after committed assistant messages and tool-result boundaries, in addition to editing earlier user prompts. Assistant and tool checkpoints retain the selected item and open an empty draft for the next user message.

Motivation

Builds on #115 toward message-level transcript navigation without discarding alternate futures.

Impact

Only a result that closes its complete tool-call batch is eligible; partial batches, orphan or duplicate results, and invalid ordering are rejected. Before-user checkout and its original-prompt prefill remain unchanged.

Technical details

Exact continuation prefixes

An ordered validator checks call/result structure without repairing, reordering, or borrowing later context. The existing historical address, provisional checkout, durable completion, and retry pipeline is reused without changing persistent lineage metadata.

Role-aware selection

The chooser labels User, Assistant, and Tool checkpoints and supports role filters. Roles are additive on the private response shape, with missing legacy values interpreted as User; preview text remains separate from the editable draft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant