Skip to content

Split regenerate and fork into separate buttons with working "don't how again" - #161

Open
rickintoplace wants to merge 1 commit into
gwdg:devfrom
rickintoplace:fix/regenerate-fork-confirmations
Open

Split regenerate and fork into separate buttons with working "don't how again"#161
rickintoplace wants to merge 1 commit into
gwdg:devfrom
rickintoplace:fix/regenerate-fork-confirmations

Conversation

@rickintoplace

@rickintoplace rickintoplace commented Jul 29, 2026

Copy link
Copy Markdown

Fixes #160

The regenerate confirmation offered two different operations in one dialog, so a persistent "don't show this again" would have locked the user into one of them. On top of that the checkbox never took effect: it wrote to localState.dontShow, which regenerate() then overwrote with its own stale copy of localState, and which is not persisted anywhere.

Regenerate and fork are now separate buttons on the user message, each with its own dialog explaining that single operation. The opt-out is stored per warning in interface_settings (redux-persist), so it survives reloads and other conversations.

The dialog itself is now a generic ConfirmActionModal, opened through confirmAction() from the modal context, which skips it when the user turned it off. The fork button on assistant messages uses the same dialog and icon.

…how again'

The regenerate confirmation offered two different operations in one dialog,
so a persistent 'don't show this again' would have locked the user into one
of them. On top of that the checkbox never took effect: it wrote to
localState.dontShow, which regenerate() then overwrote with its own stale
copy of localState, and which is not persisted anywhere.

Regenerate and fork are now separate buttons on the user message, each with
its own dialog explaining that single operation. The opt-out is stored per
warning in interface_settings (redux-persist), so it survives reloads and
other conversations.

The dialog itself is now a generic ConfirmActionModal, opened through
confirmAction() from the modal context, which skips it when the user turned
it off. The fork button on assistant messages uses the same dialog and icon,
and its toasts are no longer hardcoded German strings.

Fixes gwdg#160
@rickintoplace rickintoplace changed the title Split regenerate and fork into separate buttons with working "don't how again" (fixes #160) Split regenerate and fork into separate buttons with working "don't how again" Jul 29, 2026
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