Repository navigation
Done
Labels
area/tuiTerminal interfaceplatform/linuxLinuxtype/featureNew behaviour or an improvementversion/v2OpenCode 2.x
Description
Summary
When opening the TUI session switcher (/sessions / Ctrl+X L) while the current session is running, the current-session indicator (▪, the blue rectangle) disappears completely, leaving no visual indication of which session you were on. Combined with /sessions opening with the selection highlight on the top row rather than the current session (#63954), switching sessions while work is running is confusing and disorienting.
Environment
- opencode version: 2.4.2
- Client: TUI
- Model and provider: Not relevant
- OS: Linux 7.0.0-44-generic (x86_64)
- Terminal: TERM_PROGRAM=tmux, TERM=tmux-256color, COLORTERM=truecolor
- Shell: /bin/bash
- Install/channel: latest
- Active plugins:
~/.config/opencode/plugins/alice-and-bot/index.js(no terminal plugins incli.json)
Reproduction
- Open OpenCode TUI (
v2.4.2, defaultnew-designsenabled) with multiple sessions in the session list. - Send a prompt in the current session so it enters the
runningstate (or has a running child session). - While it is still running, open the session switcher with
/sessionsorCtrl+X L. - Observe the row for the session you were just viewing and which row is initially highlighted/marked.
Expected Behavior
- The current session should remain clearly marked (e.g., showing the current-session indicator
▪alongside or distinct from the running spinner, and/or distinct styling) even while it is running or awaiting attention. - The active/current-session marker and focus should clearly identify the session you are currently in, rather than leaving focus on another row at the top of the list with no current-session indicator visible.
Actual Behavior
- While the current session is running, the running spinner replaces the gutter and suppresses the current-session
▪indicator completely. - Because
new-designsalso does not tint the title text forprops.current, the current running session is visually indistinguishable from any other running session in the list. - Because
/sessionsalso passesfocusCurrent={false}, the selection bar (┃/ row highlight) sits on the top session in the list instead of the current session, making it easy to lose track of where you were.
Additional Context
- Reproducible consistently on
v2.4.2. - Code pointers (
v2.4.2):packages/tui/src/ui/dialog-select.tsx:DialogSelectRowrenders the▪current indicator only whenprops.current && !props.gutter, and only colors title text forprops.currentwhen!newDesigns().packages/tui/src/component/dialog-session-list.tsx:sessionStatusGutter(...)returns a<Spinner />(or!/?attention icon) asgutter, which makesprops.guttertruthy and hides the current-session indicator. The samesessionStatusGutterpattern is used inpackages/tui/src/component/dialog-open.tsx.- Related: tui: /sessions no longer focuses the current session #63954 (
focusCurrent={false}indialog-session-list.tsxplaces the initial selection on row 0 instead of the current session).
Metadata
Metadata
Assignees
Labels
area/tuiTerminal interfaceplatform/linuxLinuxtype/featureNew behaviour or an improvementversion/v2OpenCode 2.x
Activity
opencodejr commentedon Nov 26, 2026
Thanks for the detailed report and the code pointers.
You're asking for the session switcher (
/sessions/Ctrl+X L) to keep the current session clearly marked even while it is running or waiting on you, so you can still find it among other running sessions.I'm labelling this as a feature request rather than a bug, because the dialog does what it was built to do. Each row has a single gutter cell. The current-session marker is drawn only when the row has no gutter (
props.current && !props.gutterinpackages/tui/src/ui/dialog-select.tsx), and a running session gets the spinner as its gutter (sessionStatusGutterinpackages/tui/src/component/dialog-session-list.tsx). The current row's title colour is applied only when new designs are off, so with new designs on, nothing else marks that row. Showing both pieces of information needs a design change, and maintainers will consider it. I can't promise what they will decide.Related:
focusCurrent={false}change and is tracked there as a feature request, so I'm keeping this issue focused on the missing indicator.