Skip to content

fix(web): show remote environment for non-Git projects - #5555

Merged
t3dotgg merged 1 commit into
mainfrom
t3code/fix-desktop-mini-status-bar
Aug 7, 2026
Merged

fix(web): show remote environment for non-Git projects#5555
t3dotgg merged 1 commit into
mainfrom
t3code/fix-desktop-mini-status-bar

Conversation

@t3dotgg

@t3dotgg t3dotgg commented Aug 6, 2026

Copy link
Copy Markdown
Member

Non-Git projects hid the entire composer context strip, so a thread running on a remote machine gave no indication which machine it was using.

Keep the strip visible whenever the environment indicator is relevant, while hiding only the workspace and branch controls that require Git. This preserves the existing compact behavior for single local environments.

Tests: vp test run apps/web/src/components/BranchToolbar.logic.test.ts; vp run --filter ./apps/web typecheck; targeted vp lint.

Made with GPT-5.6-Sol in the Codex harness.


Note

Low Risk
Targeted composer toolbar visibility logic with unit tests; no auth, data, or API changes.

Overview
Non-Git projects no longer hide the whole composer context strip when a thread runs on a remote machine. Visibility is driven by shouldShowComposerContextStrip: the strip appears when there is an active project and either the repo is Git or the environment indicator should show (e.g. sole remote / multi-environment).

ChatView wires that helper with shouldShowEnvironmentIndicator on the active thread’s environment, and passes showGitControls={isGitRepo} into BranchToolbar. Workspace mode, branch picker, and the mobile combined Git menu render only when Git controls apply; environment-only layouts keep the environment selector without the vertical separator or Git chrome.

Reviewed by Cursor Bugbot for commit 9b23b02. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Show remote environment indicator in composer toolbar for non-Git projects

  • Adds shouldShowComposerContextStrip in BranchToolbar.logic.ts that returns true when an active project exists and either the repo is Git or an environment indicator should be shown.
  • Updates ChatView.tsx to derive showComposerEnvironmentIndicator from the active thread's environment and passes showGitControls={isGitRepo} to BranchToolbar.
  • Adds a showGitControls prop to BranchToolbar.tsx that gates rendering of the branch selector, env mode selector, and mobile run context selector.
  • Behavioral Change: non-Git projects now render the composer context strip when an environment indicator is present, where previously they did not.

Macroscope summarized 9b23b02.

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

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: 29ae32e1-1e51-4e30-b9f0-fd82bcc83e87

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

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.

@github-actions github-actions Bot added size:M 30-99 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Aug 6, 2026
@macroscopeapp

macroscopeapp Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved 9b23b02

This is a straightforward UI visibility fix allowing non-Git projects to show environment indicators in the toolbar. The changes are limited to simple display logic with comprehensive unit tests, and don't affect security or significant runtime behavior.

You can customize Macroscope's approvability policy. Learn more.

@t3dotgg
t3dotgg merged commit 64a991a into main Aug 7, 2026
17 checks passed
@t3dotgg
t3dotgg deleted the t3code/fix-desktop-mini-status-bar branch August 7, 2026 00:55
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Aug 7, 2026
## What's Changed
* fix(server): skip origin fetch when creating worktrees in repos without an origin remote by @t3dotgg in pingdotgg/t3code#5556
* fix(web): update tooltip no longer dismisses when scrolling release notes by @t3dotgg in pingdotgg/t3code#5547
* fix(server): stop showing commit/push/PR notices as errors in the work log by @t3dotgg in pingdotgg/t3code#5559
* fix(web): show remote environment for non-Git projects by @t3dotgg in pingdotgg/t3code#5555
* fix(server): stopping a Claude thread no longer shows an ede_diagnostic error by @t3dotgg in pingdotgg/t3code#5557
* fix(web): show one toast when snoozing threads in bulk by @t3dotgg in pingdotgg/t3code#5560


**Full Changelog**: pingdotgg/t3code@v0.0.32-nightly.20260806.1018...v0.0.32-nightly.20260807.1019

Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.32-nightly.20260807.1019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant