anomalyco / anomalyco/opencode

[FEATURE] Desktop app: option to start with a fresh session instead of resuming the last one

Open
#45,622 0 comments 1 reaction 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Aug 27, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

The OpenCode desktop app currently resumes the last session on launch by default. There is no setting to change this behaviour to start with a fresh session instead.

Current behaviour

When launching the desktop app, it restores the most recent session via the handoff entry stored in opencode.global.dat. There is no preference or config option to disable this.

Expected behaviour

A setting (either in the desktop app's preferences UI or in opencode.json/opencode.jsonc) to control launch behaviour:

  • Resume last session (current default)
  • Start fresh session (new blank chat on every launch)

The CLI/TUI already supports this distinction — opencode starts fresh by default and opencode -c resumes. The desktop app has no equivalent toggle.

Why this matters

Many users prefer starting clean each time and using the session list (/sessions) to resume specific conversations when needed. Auto-resuming the last session can be surprising when the previous session was a one-off task or a long context that shouldn't be carried forward.

Environment

  • OpenCode Desktop (Electron)
  • macOS 26.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.