Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug]: Local environment can't be turned back on once disabled (toggle hidden behind "No environment selected")

クローズ 初心者向け
#17,013 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

関連するプルリクエストがすでにマージされています。

  • #17359 @ScottN-PV による — マージ済み

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
desktop

調査の方向性

apps/web の Connections 設定ルートから始めて、connections-environment セクションを見つけ、続いて「No environment selected」プレースホルダーとローカル環境の切り替えを描画する分岐をたどってください。プライマリ環境の ID が null の場合も切り替えを操作できるようにしてください。ローカル環境を無効にしても、再び有効にするためのコントロールが隠れなくなれば完了です。該当する Connections 設定テストがあれば実行してください。

索引モデルが issue の本文から書いたものです。

説明

bug via-triage
Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/web

Steps to reproduce
  1. In the desktop app, have at least one remote environment connected.
  2. Open Settings → Connections and turn off Local environment in the "This machine" card, then confirm.
  3. After the restart, go back to Settings → Connections to turn it back on.
Expected behavior

The "This machine" card still shows the Local environment switch, so the local environment can be turned back on.

Actual behavior

The "This machine" card shows only "No environment selected — Connect an environment to view its settings and access." The switch isn't rendered anywhere. Selecting or using a connected remote environment doesn't bring it back, and searching settings for "Local environment" opens the same empty card.

The chat empty state says "turn the local environment back on in Connections", but the UI gives no way to do that.

Cause (from the shipped client bundle): in the Connections settings route, the connections-environment section branches on the primary environment id. When it's null (which it always is while the local environment is disabled), it renders the "No environment selected" placeholder. The local environment toggle component (the one that calls window.desktopBridge.setLocalEnvironmentEnabled) is only rendered in the other branch, so it can't be reached once local is off.

Suggested fix: render the local environment toggle in the "No environment selected" branch too (or whenever desktopBridge.getLocalEnvironmentEnabled?.() === false).

Impact

Major degradation or frequent failure

Version or commit

0.0.46-nightly.20261007.2787

Environment

Desktop app (nightly), connected to one remote environment over Tailscale.

Workaround

Open DevTools in the desktop app and run:

await window.desktopBridge.setLocalEnvironmentEnabled(true)

The local backend restarts and the "This machine" card (with the switch) comes back.

主要言語
TypeScript
スター
24.8k
フォーク
6.4k
平均マージ
2時間 31分
マージ済み PR(30日)
475

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pingdotgg/t3code のほかの issue

pingdotgg/t3code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。