Skip to content

[FEATURE]: Session management features (archive, pin, hide, change order, treeview) #61746

Open

Description

@mahdix

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

Codex has a nice feature where:

  1. Sessions are all grouped under their own project like a tree so you can open/close projects or re-order them.
  2. When you right click on a project, it gives you option to "archive" all sessions.
  3. (most useful) under each project you see at most 5 sessions and the rest is hidden by default. with a link to
    "show more" which when clicked shows all sessions.
  4. Ability to "pin" a specific session so it appears on top.
    These features are pretty useful for cases when user has multiple projects and sessions and tries to organise them.

#60581 is related but this one covers much more.

Activity

  1. opencodejr commented on Nov 4, 2026

    @opencodejr

    Thanks for the suggestion! You're asking for a Codex-style session sidebar: sessions grouped in collapsible projects that you can reorder, a right-click action that archives all of a project's sessions, at most 5 sessions per project with a "show more" link, and pinned sessions at the top. Maintainers will consider it.

    Several parts of this are already tracked, if you'd like to follow or upvote them:

  2. ngPati commented on Nov 5, 2026

    @ngPati

    +1, this is the part that hurts once you have more than two or three projects. Until a grouped sidebar lands, a workaround that gets you most of the way from the CLI: opencode session list --format json includes each session's directory, so you can group by project and keep the newest 5 per project:

    opencode session list --format json -n 200 | jq -r '
      group_by(.directory)[] | sort_by(-.updated)
      | "\(.[0].directory) (\(length))", (.[:5][] | "  \(.id)  \(.title)")'

    Then opencode -s <id> (or --fork) reopens the one you want, and opencode session delete <id> clears the old ones by hand. Not as nice as archive or pin in the UI, but it makes "which session was that, in which repo" a one-liner.

    Disclosure: I build VibeiDE, which keeps a task list per project for Claude Code, Codex and OpenCode, so I'm biased toward the grouping you describe.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions