Merge upstream: feat(cli) allow optional positional cwd argument (#1727)#46
Conversation
Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Julius Marminge <juliusmarminge@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe pull request adds CLI support for an optional custom working directory argument. The server configuration now accepts a Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
What
Cherry-picks upstream commit
27c2b145(PR #1727) onto the fork.Upstream changes
Adds an optional positional
cwdargument to the CLI, allowingt3code /path/to/projectto set the working directory. The server config resolution creates the directory if needed and resolves it to an absolute path.Conflict resolution
None -- clean cherry-pick with no conflicts (2 files changed, +22/-3).
Verification
bun typecheckpasses (all 7 packages)cli-config.test.tspasses (6 tests)Summary by CodeRabbit
New Features
cwdCLI argument to specify a custom server working directory. When provided, the server uses the designated directory (creating it if necessary). Defaults to the current process working directory when omitted.Tests
cwdresolution behavior for both default and custom values.