Skip to content

fix(pi): load extension providers for source control generation - #20070

Merged
nwparker merged 1 commit into
mainfrom
nwparker/pi-provider-total-verification
Sep 11, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/pi-provider-total-verification

Conversation

@nwparker

@nwparker nwparker commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

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-extensions flag in the action's CLI arguments. Orca displays model-not-found; zero provider requests.

Baseline model-not-found error

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.

Fixed generated commit message

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.

@nwparker
nwparker marked this pull request as ready for review September 11, 2026 08:12
@pullfrog

pullfrog Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Pullfrog  | View workflow run | via Pullfrog | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@coderabbitai

coderabbitai Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

📝 Walkthrough

Walkthrough

The 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 0.84.2.

Priority: ⬇️ Low

Merge Risk: 🔵 Low · up to 71a1a

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)

Check name Status Explanation Resolution
Description check ⚠️ Warning 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, Wh… 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 o…
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the Pi source-control fix and the extension-provider loading behavior.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

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.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: e89f75a6-39a9-4c87-9874-42a5e910ea33

📥 Commits

Reviewing files that changed from the base of the PR and between fab78c7 and 71a1a57.

📒 Files selected for processing (4)
  • .github/workflows/pi-provider-runtime.yml
  • src/shared/commit-message-agent-specs-primary.ts
  • src/shared/commit-message-plan.test.ts
  • tests/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.

Comment on lines +4 to +7
paths:
- 'src/shared/commit-message-agent-specs-primary.ts'
- 'tests/tools/pi-provider-runtime-smoke.mjs'
- '.github/workflows/pi-provider-runtime.yml'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 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.

@nwparker
nwparker merged commit 22d1238 into main Sep 11, 2026
60 of 78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Pi crashes on commit message generation if model provider is extension because of --no-extensions argument

1 participant