Repository navigation
fix(pi): load extension providers for source control generation - #20070
Conversation
|
📝 WalkthroughWalkthroughThe Pi agent configuration no longer disables extensions. A unit test verifies extension-provided model arguments. A runtime smoke test compares disabled and enabled extension runs against a local SSE server. A new GitHub Actions workflow runs the smoke test on Ubuntu, macOS, and Windows with Pi runtime version Priority: ⬇️ Low Merge Risk: 🔵 Low · up to Changes to the production planner or process runner can bypass the new cross-platform Pi extension smoke test. Add both modules to the workflow path filter before relying on this check as regression coverage. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description explains the problem, implementation, validation, and scope, but it does not follow the required template. Several required sections and checklist items are missing, including ELI5, What Changed, Why, Visual Proof with an explicit N/A statement, Testing checkboxes, AI Disclosure, Review, Agent skill upstream boundary, Notes, and the final checklist. Resolution Rewrite the description using all required template headings. Add the required issue link under Linked Issue, state N/A with a reason under Visual Proof, complete the Testing and Agent skill upstream boundary checkboxes, add AI Disclosure or leave it blank only if applicable, and complete the Review, Notes, and Checklist sections.
✨ Finishing Touches📝 Generate docstrings
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: e89f75a6-39a9-4c87-9874-42a5e910ea33
📒 Files selected for processing (4)
.github/workflows/pi-provider-runtime.ymlsrc/shared/commit-message-agent-specs-primary.tssrc/shared/commit-message-plan.test.tstests/tools/pi-provider-runtime-smoke.mjs
💤 Files with no reviewable changes (1)
- src/shared/commit-message-agent-specs-primary.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review.
| paths: | ||
| - 'src/shared/commit-message-agent-specs-primary.ts' | ||
| - 'tests/tools/pi-provider-runtime-smoke.mjs' | ||
| - '.github/workflows/pi-provider-runtime.yml' |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Add the production modules to the pull-request path filter
The smoke test bundles src/shared/commit-message-plan.ts and src/shared/child-process/run-process.ts to invoke the pinned Pi CLI with an extension provider. Neither file is listed in .github/workflows/pi-provider-runtime.yml. Other checks do not provide an equivalent Pi extension runtime check, so changes to either file can merge without exercising this contract.
Add both files to on.pull_request.paths.

Pi Source Control AI always passed
--no-extensions, so an extension-provided model failed before its provider could load. Keep extensions enabled while retaining print mode and the existing no-session, no-tools, no-skills and no-context-files arguments. This isolates the Pi fix proposed in community PR #14838 by @kaluli123123 from that PR's unrelated changes.Fixes #14951.
Rendered before/after proof
Verified in a hidden Orca Electron build of this PR, identity-confirmed through CDP. Registered an isolated repository with a staged README change, configured a real Pi extension provider, and clicked Generate commit message with AI in the actual Source Control UI. The endpoint is a deterministic OpenAI-compatible streaming fixture; Pi itself, Orca's planner, subprocess launch, IPC and rendered result are real.
Baseline-equivalent invocation: explicitly reintroduced the old
--no-extensionsflag in the action's CLI arguments. Orca displays model-not-found; zero provider requests.Fixed production invocation: removed that baseline flag and clicked the same button. The commit textbox contains
Fix extension provider commit generation, the error disappears, and exactly one provider request is recorded.The command logs differ only by
--no-extensions. Screenshots are cropped from actual hidden-renderer captures; they are not mockups. No commit was created by the UI action.Validation
The one-line planner change is shared by local and remote execution. No remote wire or provider-specific network implementation changes. LM Studio itself was not installed; the reported failure is provider-extension loading, reproduced with a real registered extension and an equivalent API fixture. The separate forced-Copilot default is handled in #15649.