Skip to content

[FEATURE]: Ability to delete sessions from the TUI #26056

@zhiqitao-intel

Description

@zhiqitao-intel

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Feature Request

Summary

Add the ability to delete sessions directly from the OpenCode TUI, similar to how /new creates a new session.

Current Behavior

There is no way to delete an existing session from the UI. The /sessions command allows listing and switching between sessions, but provides no delete option. The only workaround is manually deleting records from the underlying SQLite database.

Desired Behavior

Allow users to delete one or more sessions from within the TUI, for example:

  • A delete option when browsing sessions via /sessions
  • A /delete-session command

Why This Is Useful

  • Keeps the session list clean and manageable
  • Removes sensitive or irrelevant old conversations
  • Improves overall UX

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions