Fix Fix/Feature button to use CLI path from settings#326
Conversation
🔍 PR #326 Review — Multi-Model Consensus (5 models, 2+ agreement filter)PR: Fix Fix/Feature button to use CLI path from settings 🔴 CRITICAL —
|
🔍 PR Review Squad — Round 2 Re-reviewNew commit reviewed: Previous Findings Status
Finding #2 Detail
Suggested fix (either approach works):
New Commit Analysis
CI Status:
|
The LaunchCopilotInTerminal method hardcoded 'copilot' as the executable, which fails when copilot is not installed globally. Now resolves the CLI path via CopilotService.ResolveCopilotCliPath using the user's configured CliSource setting, matching the pattern already used by OpenInCopilotConsole. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
CreateWorktreeAsync and the fallback branch in LaunchFixIt both run git fetch which fails fatally on transient network issues. Wrap fetches in try/catch so worktree creation proceeds from cached refs when offline or when the network blips. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Instead of silently returning (which shows a false success message), throw InvalidOperationException so the caller's catch block displays the error to the user. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dc30d59 to
95102f1
Compare
🔍 PR Review Squad — Round 3 Re-review (post-fix)Fix commit: Previous Findings Status
Fix Verification
Verdict: ✅ ApproveAll findings from Rounds 1-3 are resolved. Ship it. 🚢 |
The Fix / Feature button's \LaunchCopilotInTerminal\ method hardcoded \copilot\ as the executable name, which fails when copilot isn't installed globally on the system PATH.
Fix: Resolve the CLI path via \CopilotService.ResolveCopilotCliPath(settings.CliSource)\ using the user's configured setting, matching the pattern already used by \OpenInCopilotConsole\ in \SessionListItem.razor. On Windows the path is PS-escaped; on macOS/Linux it uses \PlatformHelper.ShellEscape().