Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Chiusa Adatta ai principianti
#17,013 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Una pull request collegata è già stata integrata.

  • #17359 di @ScottN-PV — integrata

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
desktop

Direzione di ricerca

Inizia dalla route delle impostazioni di Connections in apps/web e individua la sezione connections-environment, quindi segui il ramo che mostra il segnaposto «No environment selected» e l’interruttore dell’ambiente locale. Assicurati che l’interruttore resti raggiungibile quando l’ID dell’ambiente principale è null; il lavoro è completato quando disabilitare l’ambiente locale non nasconde più il controllo necessario per riattivarlo. Esegui i test pertinenti delle impostazioni di Connections, se presenti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
24.8k
Fork
6.4k
Merge medio
8h 58m
PR unite (30g)
278

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pingdotgg/t3code

Tutte le issue di pingdotgg/t3code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.