Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Closed Beginner friendly
#17,013 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

A pull request for this has already been merged.

  • #17359 by @ScottN-PV — merged

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
desktop

Research direction

Start in the apps/web Connections settings route and find the connections-environment section, then trace the branch that renders the “No environment selected” placeholder and the local-environment toggle. Ensure the toggle remains reachable when the primary environment ID is null; done when disabling the local environment no longer hides the control needed to turn it back on. Run the relevant Connections settings tests, if present.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
24.8k
Forks
6.4k
Avg merge
10h 41m
Merged PRs (30d)
352

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pingdotgg/t3code

All issues in pingdotgg/t3code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.