tui: /sessions hides the current-session indicator when the current session is running
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- frontend
Research direction
Read packages/tui/src/component/dialog-session-list.tsx and packages/tui/src/ui/dialog-select.tsx, then compare how the session status gutter and current-session marker are rendered. Check the related selection behavior in #63954 as context. Done means the current running session remains visibly identifiable in /sessions; verify the display for running and attention states.
Written by the indexing model from the issue text.
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: #63954 (
focusCurrent={false}indialog-session-list.tsxplaces the initial selection on row 0 instead of the current session).
- Dominant language
- TypeScript
- Stars
- 228k
- Forks
- 31k
- Avg merge
- 5h 19m
- Merged PRs (30d)
- 457
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from anomalyco/opencode
-
tui: Mermaid renderer displays <b>/<strong> tags literally and ignores \n line breaksPossibly taken @argszero claimed this today. Openarea/tui platform/wsl status/repro-simulated type/bug version/v2
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
anomalyco/opencode#66773 · 2 comments ·
Maintainers usually reply within 1 day
-
area/sdk-api platform/linux type/feature version/v2
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
anomalyco/opencode#66604 · 1 comment ·
Maintainers usually reply within 1 day
-
area/web inference/go reproduced type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
anomalyco/opencode#66475 · 1 comment ·
Maintainers usually reply within 1 day
-
[FEATURE]: More colorful built-in Dracula theme for the desktop appMay be free again A pull request for this issue was closed without being merged. Openarea/desktop type/feature version/v2
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
anomalyco/opencode#66446 · 1 comment ·
Maintainers usually reply within 1 day
-
scripts: path comparisons break on Windows (check-greys fails the pre-push hook, upgrade-opentui skips nothing)Possibly taken @deosiree claimed this 2 days ago. Openplatform/windows status/repro-plausible type/bug version/v2
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
anomalyco/opencode#66192 · 2 comments ·
Maintainers usually reply within 1 day
All issues in anomalyco/opencode
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
knaw-huc/textannoviz#742 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
cloudflare/realtimekit-ui#219 ·
Maintainers usually reply within 1 day
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
mermaid-js/mermaid-v13#1370 ·
Maintainers usually reply within 1 day
-
area:docs area:plugins bug documentation low-priority platform:windows
Difficulty 1/5 Under an hour Newbie friendliness 84/100
anthropics/claude-code#112676 ·