codexmate icon indicating copy to clipboard operation
codexmate copied to clipboard

session deletion should support trash / undo instead of permanent delete

Open awsldev opened this issue 8 months ago • 1 comments

Summary

Right now session deletion looks like a permanent delete with no trash, soft-delete, or undo path.

I think this is worth revisiting.

Why this feels rough

Codex Mate generally gives a pretty safe/local-first impression: config changes are managed carefully, files are written locally, and the product overall feels like it wants to avoid surprising destructive behavior.

Session deletion stands out a bit against that. In normal use, the session list is exactly the place where people do quick cleanup, bulk delete old items, or remove things while skimming. That makes accidental deletion much more likely than it looks on paper.

If a provider config gets overwritten, people can usually rebuild it. If a useful session gets deleted by mistake, that history may be gone for good.

Suggested direction

Any of these would already be a big improvement:

  • move deleted sessions into a local trash directory instead of removing them immediately
  • add an "undo last delete" action in the Web UI
  • support soft delete vs permanent delete
  • add a recovery buffer for bulk deletion flows

It does not need to be a huge feature at first — even a minimal recovery path would make session cleanup feel much safer.

Expected benefit

This would make the session management side feel more consistent with the rest of the product: local-first, practical, and a bit harder to destroy useful history by accident.

awsldev avatar Mar 28 '26 08:03 awsldev

#55

ymkiux avatar Mar 30 '26 07:03 ymkiux