anomalyco / anomalyco/opencode
tui: /sessions no longer prioritizes sessions from the current cwd
@kommander is already working on this.
Since Jul 22, 2026.
- 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
- Open OpenCode from a working directory that has existing sessions.
- Invoke
/sessions. - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.