tui: /sessions hides the current-session indicator when the current session is running
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
packages/tui/src/component/dialog-session-list.tsx と packages/tui/src/ui/dialog-select.tsx を読み、セッションのステータス欄と現在のセッションのマーカーがどのように表示されるかを比較してください。関連する選択動作を、背景情報として #63954 で確認してください。完了条件は、現在実行中のセッションが /sessions で見た目に識別できる状態を保つことです。実行中と要対応の状態の表示を確認してください。
索引モデルが issue の本文から書いたものです。
説明
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).
- 主要言語
- TypeScript
- スター
- 228k
- フォーク
- 31k
- 平均マージ
- 5時間 19分
- マージ済み PR(30日)
- 457
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
anomalyco/opencode のほかの issue
-
tui: Mermaid renderer displays <b>/<strong> tags literally and ignores \n line breaks対応中かも @argszero が今日担当しました。 オープンarea/tui platform/wsl status/repro-simulated type/bug version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
anomalyco/opencode#66773 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
area/sdk-api platform/linux type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
anomalyco/opencode#66604 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/web inference/go reproduced type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
anomalyco/opencode#66475 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[FEATURE]: More colorful built-in Dracula theme for the desktop app再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンarea/desktop type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
anomalyco/opencode#66446 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
scripts: path comparisons break on Windows (check-greys fails the pre-push hook, upgrade-opentui skips nothing)対応中かも @deosiree が 2 日前に担当しました。 オープンplatform/windows status/repro-plausible type/bug version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
anomalyco/opencode#66192 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
anomalyco/opencode の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
knaw-huc/textannoviz#742 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
cloudflare/realtimekit-ui#219 ·
メンテナーはふだん 1 日以内に返信
-
ui
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
mermaid-js/mermaid-v13#1370 ·
メンテナーはふだん 1 日以内に返信
-
area:docs area:plugins bug documentation low-priority platform:windows
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
anthropics/claude-code#112676 ·