tui: /models drops provider grouping when the session location differs from the default location
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
- #62109 @andycostintoma による — マージされずにクローズ
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 65/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
まず packages/tui/src/component/use-connected.tsx を確認し、issue によると location.ref を渡すモデルおよびインテグレーションのダイアログと、位置情報の検索方法を比較します。LocationProvider がアクティブな位置情報をどのように同期するかを確認し、デフォルトとは異なるディレクトリにあるセッションで再現します。そのセッションの接続済みプロバイダーとそのグループが /models に表示されれば完了です。issue にはテストファイルの指定はありません。
索引モデルが issue の本文から書いたものです。
説明
Description
When the TUI opens a session whose directory is not the client's default location, /models shows one flat list without provider groups, Favorites or Recent, and its action reads "View all integrations" as if nothing were connected. The integrations dialog in the same session shows the providers as connected.
useConnected() in packages/tui/src/component/use-connected.tsx calls data.location.integration.list() without a location, so it reads the default location's store. LocationProvider only syncs the active location, so when the two differ that store stays empty and useConnected() returns false. The model dialog and the integrations dialog already pass the active location (location.ref); useConnected() doesn't.
I hit it with --server against a remote service: the client's cwd doesn't exist on the server, so the default location falls back to the server's cwd while the session lives in a project directory. The same happens locally with -s <session> for a session in another directory.
Plugins
None needed to reproduce.
OpenCode version
2.2.1 (still present on dev)
Steps to reproduce
- Connect any provider, e.g. Anthropic.
- Start the service from one directory (
cd ~ && opencode service start). - Create a session in a different directory via
POST /api/sessionwith{"location":{"directory":"/path/to/project"}}. - From a directory that isn't that project (or from another machine with
--server), runopencode -s <session-id>. - Open
/models: flat list, "View all integrations". Open the integrations dialog: providers show as connected.
Screenshot
Not attached; /models renders a single flat list with "View all integrations" as its action.
Operating System
Linux (NixOS / Ubuntu)
Terminal
Reproduces independent of terminal (state bug, not rendering).
- 主要言語
- TypeScript
- スター
- 224k
- フォーク
- 30k
- 平均マージ
- 5時間 25分
- マージ済み PR(30日)
- 494
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
anomalyco/opencode のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
anomalyco/opencode#62322 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
pending close
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
anomalyco/opencode#62305 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
docs: AgentEditor.update creates missing agents, but the plugin docs don't say so対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
anomalyco/opencode#62210 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
anomalyco/opencode#62046 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
anomalyco/opencode#61897 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
anomalyco/opencode の issue をすべて見る
似ている issue
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
lingdojo/kana-dojo#33701 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
rookslog/zlibrary-mcp#408 ·
メンテナーはふだん 1 日以内に返信
-
mp4box.js — 20-byte `sgpd` box with large `entry_count` causes unbounded loop and heap OOM abortオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
status: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
mastra-ai/mastra#29641 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信