anomalyco / anomalyco/opencode

tui: /sessions no longer prioritizes sessions from the current cwd

Open
#38,326 2 comments 0 reactions 1 assignee View on GitHub

@kommander is already working on this.

Since Jul 22, 2026.

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

Description

Summary

The /sessions command no longer prioritizes sessions associated with the current working directory. Instead, sessions from all folders are shown without cwd-based prioritization, making it harder to find the sessions relevant to the active project.

Environment

  • opencode version: opencode2 v0.0.0-next-15853
  • OS: Linux omarchy 7.1.4-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat 18 Jul 2026 17:30:57 +0000 x86_64
  • Terminal: TERM=xterm-256color, COLORTERM=truecolor; terminal program unavailable
  • Shell: /usr/bin/bash
  • Install/channel: next
  • Active plugins: .opencode/plugins/graphify.js, /home/kkosu/.opencode/plugins/graphify.js

Reproduction

  1. Open OpenCode from a working directory that has existing sessions.
  2. Invoke /sessions.
  3. Observe the ordering of the listed sessions.

Expected Behavior

Sessions associated with the current working directory should be prioritized, as they were previously. Sessions from other folders may still be listed after the current cwd sessions.

Actual Behavior

Sessions from all folders are shown without prioritizing sessions from the current working directory.

Additional Context

This appears to be consistently reproducible. No workaround or related recent change has been identified.

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.