[PR #7880] feat(app): add two-step confirmation for archive session #12549

Open
opened 2026-02-16 18:17:27 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7880

State: open
Merged: No


What does this PR do?

Closes #7886

How did you verify your code works?

Add two-step confirmation when archiving sessions in WebUI sidebar to
prevent accidental data loss.

  • First click: button turns red (danger state), tooltip shows "Click to confirm"
  • Second click: executes archive action
  • Mouse leave: resets confirmation state
  • Keyboard shortcut (⌘⇧Backspace) also requires pressing twice

This prevents accidentally archiving sessions with a single misclick.

image
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7880 **State:** open **Merged:** No --- ### What does this PR do? Closes #7886 ### How did you verify your code works? Add two-step confirmation when archiving sessions in WebUI sidebar to prevent accidental data loss. - First click: button turns red (danger state), tooltip shows "Click to confirm" - Second click: executes archive action - Mouse leave: resets confirmation state - Keyboard shortcut (⌘⇧Backspace) also requires pressing twice This prevents accidentally archiving sessions with a single misclick. <img width="285" height="94" alt="image" src="https://github.com/user-attachments/assets/67d1c047-898c-45ba-b58d-721d13356fee" />
yindo added the pull-request label 2026-02-16 18:17:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12549