Repository navigation
fix(cli): open relative startup directories with leading spaces - #44442
juliusmarminge merged 3 commits into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Replace the subprocess test, which only showed command rejection was skipped, with a config test that checks the resolved project path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EvidenceRan the real built CLI on Linux with fresh synthetic state. From a parent directory, ran
|
…dotgg#44442) Co-authored-by: Julius Marminge <julius0216@outlook.com>


Problem
From a directory containing a folder named
project, runningt3 ' project'fails withUnknown command "project". The quotes preserve the leading space in the argument, but T3 trims it before checking whether the folder exists and again while resolving the startup directory.Change
Use the same startup argument normalization for the command check and server configuration. Preserve the leading space in relative directory names so startup can open the selected folder.
Scope
This is a small, separately reproducible CLI startup bug. It needs no separate issue. The change follows the relative-path handling introduced for project management commands in #44156.
Verification
Needs leading space. An ordinary directory bootstrapped successfully in both runs, and an unknown command still exited with an error.bin.tsentry point and confirms startup no longer drops the leading space.GPT-6 via Codex desktop.