Repository navigation
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This adds a small opt-in server environment variable that trims and overrides only the existing environment label while preserving automatic detection for unset or blank values. The runtime change is isolated to startup label resolution and is covered by focused tests, with documentation added separately. Notes:
You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: pingdotgg/t3code/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe server now supports ChangesEnvironment label override
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Another use case for this, from a slightly different angle: multiple Claude Code accounts on a single server. I run two
Two things I would add: 1. Icon override too. 2. First-class Claude profiles. Today, getting two Claude accounts onto one machine means hand-rolling it in the terminal: a separate Concretely, it would be useful to:
The shared-backend-with-separate-credentials case is the interesting one. Plenty of people run more than one Claude account simply for more usage headroom, and in that situation you do not want two disconnected worlds — you want one set of projects and sessions, with the ability to switch which credential is doing the work. Happy to test this branch against a two-environment headless setup if that would help. |
Dismissing prior approval to re-evaluate 00a3f6a
|
Note Written by Hi! We are cleaning up open PRs, and this one does not say which model or harness was used to create it. If this change is really important, we recommend rebuilding the PR with a newer model and noting the model and harness in the PR description. |
What Changed
Adds an optional
T3CODE_ENVIRONMENT_LABELenvironment variable that overrides the environment name shown to connected clients.The value is trimmed before use. Missing, empty, or whitespace-only values preserve the existing automatic label detection.
This only changes startup-time server configuration.
Why
Multiple T3 environments running on the same machine can resolve to the same host-derived label, making them difficult to distinguish in connected clients.
This provides a small declarative override for environments where the server process is configured externally.
This is intentionally narrower than #7267, which tackles the broader interactive renaming experience across clients and persistence.
This PR only covers the declarative startup-time case. I hope it can be useful as a small complementary option for headless or externally managed environments.
Related: #5623
Verification
ServerEnvironmentLabel.test.ts: 10/10 passedgit diff --checkpassedT3CODE_ENVIRONMENT_LABEL="Development VM"and/.well-known/t3/environmentChecklist
Summary by CodeRabbit
New Features
Documentation