Skip to content

[FEATURE]: v2 Separate New Sessions From Session Tabs #44681

Closed

Description

@mynameistito

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

In @opencode-ai/cli (v2), /new immediately opens the new session in another tab.

It would be nice to have an option for /new to create a new "session" in the current tab instead of making a new tab each time.

Ideally, this could be configurable so users can choose between the current behaviour and new sessions being created in a new tab.

I.E

{
  "tui": {
    "sessions": {
      "openNewSessionInTab": false
    }
  }
}

Environment

  • opencode version: 0.0.0-beta-18027
  • OS: Windows 11
  • Terminal: Microsoft Terminal Preview v1.25.1912.0
  • Shell: pwsh
  • Install/channel: @opencode-ai/cli
  • Active plugins: oc-usage-limits-plugin@next

Activity

  1. mo-waseem commented on Oct 5, 2026

    @mo-waseem

    Really needs this as well, the old sessions/tabs are useless once we say /new so no need to keep their tabs opened

    I think we can close the current tab and open a new one instead

    so that if we want to back and see the old sessions we can see them in the sessions and will not lost in such one big session

  2. neriousy commented on Oct 20, 2026

    @neriousy
    Member

    Thanks for the suggestion! Since 2.0.13, use /clear to start fresh without accumulating another session tab; /new still keeps the previous tab, and the old session remains accessible through /sessions. Update with opencode upgrade or npm i -g @opencode/cli@latest (desktop: update the app). Please comment or reopen if this does not cover your workflow on that version.

  3. mo-waseem commented on Oct 21, 2026

    @mo-waseem

    I'm using v2.1.2 desktop app version, but still I can't see /clear

    Image Image
  4. neriousy commented on Oct 21, 2026

    @neriousy
    Member

    As of now /clear is only in the TUI

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions