Skip to content

Add bb thread undelete so an accidental delete can be rescued #3598

Description

@yusuf8834

The workflow

Deleted a thread by mistake and wanted it back. BB has no undo, and the CLI has no undelete or restore.

What happens today

bb thread delete removes the thread row and its events outright. The threads table already has a deleted_at column, but nothing uses it. The provider session (Codex rollout, Claude Code JSONL) survives on disk, so recovery is possible, just not through BB. I got mine back by matching the thread-storage folder mtime to a Codex rollout and seeding a new thread with the transcript.

What you would expect

bb thread delete <id>        # soft delete: set deleted_at, hide everywhere
bb thread list --deleted     # show soft-deleted threads
bb thread undelete <id>      # bring it back with its events
bb thread purge <id>         # today's hard delete

Optional: auto-purge after a retention window, and a Restore button in the UI.

Context and alternatives

Related: #1984, #1710. bb 0.43.2-nightly, macOS.

Checks

  • I searched open and closed issues for the same request.
  • If an agent wrote this, the body ends with > AGENT GENERATED.

AGENT GENERATED

Activity

  1. added
    threads
    cli
    on Sep 12, 2026
  2. bb-slop-cop commented on Sep 12, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied Type: Feature, Priority: Medium, Effort: High, labels: threads, cli. All fields were missing; no existing values were replaced.

    Deletion is explicitly permanent in the trusted source. Recovery adds new behavior involving stored data and thread lifecycle. No report or PR: this is a feature request, outside the bug-fix path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clithreads

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions