fix: scope opencode server workdir to calycode workspace#190
fix: scope opencode server workdir to calycode workspace#190MihalyToth20 merged 1 commit intomainfrom
Conversation
🦋 Changeset detectedLatest commit: dab4103 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughA patch release updates the OpenCode command implementation to scope child processes to a dedicated CalyCode workspace directory. The changes introduce directory resolution logic with environment variable precedence and mode-dependent fallbacks, updating process spawning across multiple code paths. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 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 |
Summary
~/.calycode/opencode/workspaceinstead of inheriting arbitrary launcher directoriesoc runproxy behavior project-aware by preservingprocess.cwd()for normal terminal usage@calycode/clidocumenting the working-directory safety improvementValidation
pnpm --filter @calycode/cli buildpnpm --filter @calycode/cli testlsp_diagnosticsonpackages/cli/src/commands/opencode/implementation.tsSummary by CodeRabbit
Improvements
CALY_OPENCODE_WORKDIRenvironment variable~/.calycode/opencode/workspace