Fix Marketplace install PATH for macOS GUI launches#151
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
ウォークスルーmacOS の Finder 起動 Electron アプリが限定された 変更点macOS GUI起動時のPATH解決
推定レビュー工数🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #151 +/- ##
==========================================
+ Coverage 51.64% 51.91% +0.27%
==========================================
Files 173 173
Lines 4202 4207 +5
Branches 892 892
==========================================
+ Hits 2170 2184 +14
+ Misses 1843 1831 -12
- Partials 189 192 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@e2e/spec/marketplace-install-regression.e2e.ts`:
- Line 99: The nullish coalescing expression assigned to variable store uses the
identical operands (window.__store__ ?? window.__store__), which is redundant
and likely a typo; update the assignment in the
marketplace-install-regression.e2e.ts file so that either you simply read
window.__store__ (const store = window.__store__) if only that property was
intended, or replace the second operand with the intended fallback (for example
window.__STORE__ or window.store) so the expression becomes window.__store__ ??
window.__STORE__ (or another correct fallback) to provide a meaningful fallback
path.
In `@src/main/services/skillsCliService.test.ts`:
- Around line 110-129: Update the test "adds common Node toolchain paths so
Finder-launched installs can find npx" to assert that the merged PATH contains
both the injected toolchain fallback (e.g. '/opt/homebrew/bin') and the original
PATH segments (use process.env.PATH or a canonical fragment like
'/usr/bin:/bin'), since buildCliPath merges the original PATH with fallbacks;
adjust the spawnMock expectation for skillsCliService.search (and the
SKILLS_CLI_VERSION usage) to check env.PATH includes both values (for example by
using expect.stringMatching(/\/opt\/homebrew\/bin.*\/usr\/bin/) or two
expect.stringContaining checks) so the test verifies both the fallback and
original PATH are preserved.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 883e2e36-eb7f-4d51-a0e4-0355e611235f
📒 Files selected for processing (3)
e2e/spec/marketplace-install-regression.e2e.tssrc/main/services/skillsCliService.test.tssrc/main/services/skillsCliService.ts
Summary
Verification
Summary by CodeRabbit
バグ修正