Skip to content
Source
Sign inSign up
pingdotgg/t3code

Separate client and environment settings #4567

Closedcolonelpanic8(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/4567/headopened View on GitHub

What Changed

  • Group the settings navigation by Client and Environment ownership.
  • Split the mixed General page into client settings at /settings/general and environment settings at /settings/environment.
  • Scope Restore defaults to the settings owned by the current page.

Why

Settings that follow the graphical client and settings that configure the connected execution environment currently appear together, obscuring where changes apply. Making ownership explicit supports first-class remote environments and complements #4559 and #4564.

UI Changes

Before: one flat settings navigation and a General page mixing client preferences with environment configuration.

After: labeled Client and Environment navigation groups with separate General pages. The affected flows were verified in an authenticated web client; the preview screenshot/recording endpoint failed during capture, so no reliable artifact is attached.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes (capture tooling failed; DOM-level integrated verification passed)
  • A video is not applicable; this change adds no animation or interaction behavior

Verification

  • vp test run src/components/settings/SettingsSidebarNav.test.ts --project unit
  • Targeted vp lint on the six affected files
  • vp build in apps/web
  • Authenticated integrated web verification of both settings pages and their visible controls
  • Web typecheck was attempted and remains blocked by existing errors in unrelated files on origin/main

Note

Low Risk Mostly UI routing and conditional rendering; no auth or persistence model changes beyond which keys restore-defaults touches per page.

Overview Settings navigation is now grouped under Client and Environment, and the old mixed General page is split into two routes.

Client (/settings/general) keeps UI and app preferences (theme, glass opacity, sidebar, confirmations, etc.) plus About. Environment (/settings/environment) holds execution-related options (streaming, provider checks, new-thread defaults, text generation model) and moves Diagnostics off the client General page.

useSettingsRestore takes an ownership argument so Restore defaults only lists and resets settings for the active panel, on both General pages. A unit test locks in the nav group → route mapping.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 433b42a3eef5c64fa1059ee7cd6ad5cb003f2c49. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Separate client and environment settings into distinct panels in the settings sidebar

  • Adds a new /settings/environment route that renders an EnvironmentSettingsPanel, splitting settings that belong to the environment (streaming, provider checks, git, model selection) away from client settings (theme, UI, confirmations).
  • Replaces the flat SETTINGS_NAV_ITEMS with SETTINGS_NAV_GROUPS in SettingsSidebarNav.tsx, grouping nav items under labeled "Client" and "Environment" sections.
  • Updates useSettingsRestore to accept an ownership argument so the "Restore Defaults" button resets only the settings belonging to the current panel's scope.
  • Behavioral Change: the "Restore Defaults" button now only appears on the Client and Environment settings pages, and its effect is scoped to that panel's owned settings.
Macroscope summarized 433b42a.
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: f97465ed-251d-4c11-996a-303fb1fd4ad4

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved

      This PR reorganizes existing settings into 'client' and 'environment' categories with no new functionality or runtime behavior changes - purely UI restructuring with conditional rendering and navigation grouping.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Note

      🤖 GPT-5.6 Sol responding on behalf of Theo

      We're closing this PR as we clean up the T3 Code backlog. Thank you for taking the time to put this together.

      This branch changes the same environment-targeted Settings flow as #4559. We are keeping that PR as the active implementation instead of reviewing a second version.

      If you believe we closed this in error, please reopen the PR and leave a comment explaining what we missed.

Sign in to join this conversation.