mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3823] [GUI] Let users choose between in-place edit/resend and branching when rewinding a message #1619
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1619
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xvcezrqpbxtpzblrt on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3823
Area
[GUI] (the desktop app)
What do you want to do?
Problem. In the desktop chat, a sent message has a refresh icon labeled “Rewind to here” (
回退到此处). Clicking it does not rewind the open conversation. It immediately creates a new session, switches to it, and puts the old prompt in that new chat's composer. The original chat remains in the sidebar, but the action's label and its result disagree. The app appears to open a new conversation; in the code this is a route change to a new session ID, not a native window.The first-message case is the most confusing: the new chat has no messages, and after the next send its title is replaced by the new prompt, so the visible
(branch)suffix disappears and it is indistinguishable from a brand-new chat.This is a missing choice, not a request to remove branching. The branch behavior was a deliberate safety fix: the older in-place
rewindTotruncated the current transcript, and that was tracked as CHAT-05 / P0 in design-improvements-2026-10-05.md. The replacement preserves the original and opens a branch (annotation 32). That safety property should remain.Why the current control is misleading.
rewindTo()callsbranchFrom()and navigates to a new session (store.ts L1499-1509, L1447-1477); it never edits the current transcript.(branch)in the title (types.ts L434-465). A first-message rewind leaves zero messages, so the next send replaces that title (store.ts L1691).rewindTo()restores only the message text. Photos attached to the selected message are not returned to the composer.Proposal: ask at action time, before creating anything.
Replace the implicit “Rewind to here” action with a small menu (or dialog) anchored to the message action:
Labels should say what happens; do not use “Rewind” alone for either path.
Safe in-place behavior.
Branch behavior and edge cases.
(branch)chat.chat-folders.jsontoday.(branch)marker with the new prompt on the first send.Implementation notes.
rewindTo/branchFrom: store.ts L1499-1509, L1447-1477; first-send title replacement: L1691.Duplicate search. I searched open and closed issues and PRs for
rewind,branch,edit message,resend,回退,分支and编辑消息. No existing desktop-app report for this choice was found. PR #2615 is the Python web chat's edit/retry/rewind, not the desktop app. PR #734 and #2843 are engine cache work for rewritten history. Issue #271 asked for message deletion. The existing branch design is documented, not reported as a defect.What do you do today instead?
Users can click “Branch from here” (or “Rewind to here”, which currently does the same) and then find the original chat in the sidebar, or manually start a new chat and retype the prompt. That preserves the original but provides no in-place edit, and the extra branch remains if they change their mind.
Environment and reproduction status. Strata 0.2.3 (
5c8dd322528cc84f68f461ad54a506b9da8fa8d4), Windows 11 desktop, installed build. The behavior is reported from the installed app; the code path above was confirmed by source inspection of the same commit. I did not run a separate GUI reproduction. Currentorigin/mainis still5c8dd32.@Niko1221 commented on GitHub (Oct 27, 2026):
Thank you, the label and the result did disagree. Fixed in 0.2.7: "Rewind to here" now asks what you want, edit and send again here (with an Undo bar) or branch into a new saved chat, and a branch is titled "Branch of ..." so the first message does not rename it. One-level undo stays in memory only; a persistent snapshot is not done.
Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7