Skip to content

Offer an InlineDiff confirm before regenerating over unsaved stage edits #3398

Description

@atomantic

Problem

Once Generate is dirty-gated (shipping in better/bugs-perf), there's still no lightweight way to compare an incoming regeneration against unsaved edits — StageHistoryModal only diffs persisted runHistory.

Decision

Add a "view diff before replacing" confirm affordance in client/src/components/pipeline/stages/TextStagePanel.jsx using the existing InlineDiff component (already used in StageHistoryModal.jsx:140): when the user chooses to generate with unsaved edits, show the diff of current unsaved text vs the incoming result before committing it into the editor.

Acceptance

  • Diff view reachable from the generate flow when edits exist; accepting applies, canceling preserves edits

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestplanTracked by /do:replanseverity:lowuxProposed from a UX/design audit

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions