Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit cadd271. Configure here.
ApprovabilityVerdict: Skipped Macroscope did not run approvability analysis for this PR. Macroscope could not determine whether this PR modifies its approvability configuration, so the PR was not approved automatically. A PR that may change the rules that govern approval is never approved automatically. |
|
Note: GPT-6 on behalf of shivam (@shivamhwp). The shared probe covers the reported |
|
Note Written by Hi! We are cleaning up open PRs, and this one appears to have been created with an older model ( |
|
Note Written by Reopening, this was closed by mistake. Sorry for the noise! |

Problem
T3 Code appends
|| truewhen reading environment variables from a login shell. Nushell does not support that POSIX operator, so PATH hydration fails whennuis the user's login shell and GUI launches can inherit an incomplete environment.Fix
nuandnu.exelogin-shell executables.print/trymarker probe so captured values remain on stdout.Validation
vp test run packages/shared/src/shell.test.ts— 30 passedvp run --filter @t3tools/shared typecheckCloses #7846
Built with GPT-5.6 Codex in T3 Code.
Note
Low Risk
Narrow change to login-shell command string generation in shared shell utilities; POSIX behavior unchanged and no security or data-path impact.
Overview
Fixes login-shell environment probing when the user's shell is Nushell (
nu/nu.exe). The previous probe used POSIXprintfandprintenv … || true, which Nushell rejects, soPATH(and other vars) could fail to hydrate from GUI launches.buildEnvironmentCaptureCommandnow takes the shell path, detects Nushell viaisNushellExecutable, and emits Nushell-nativeprint/try { printenv … } catch { print '' }markers instead of|| true. POSIX shells keep the existing probe.readEnvironmentFromLoginShellpasses the shell into the builder.Adds a regression test that asserts the generated command shape and that
PATHis parsed correctly for anulogin shell.Reviewed by Cursor Bugbot for commit e913c17. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Fix
readEnvironmentFromLoginShellto support Nushell login shellsisNushellExecutablehelper in shell.ts to detect Nushell shells by checking fornuornu.exe.buildEnvironmentCaptureCommandto accept the shell path and generate a Nushell-compatible command usingprintandtry/catchinstead of|| true.readEnvironmentFromLoginShellto pass the shell path to the command builder.buildEnvironmentCaptureCommandnow requires a shell path argument, but existing non-Nushell shell command generation remains unchanged.Macroscope summarized e913c17.