feat(pi): add Pi provider settings and runtime support #2800
main fromrefs/pull/2800/head·opened View on GitHubI understand this may not get merged. I'm getting this working on my own fork and hope others can benefit, so I'm breaking the work into digestible chunks and opening PRs for each if they get accepted
What Changed#
- Introduced
PiSettingsschema for configuration. - Added
Pidriver kind and associated metadata. - Updated server settings to include
Piprovider. - Implemented tests for
Pisettings and runtime event handling. - Enhanced UI components to support
Piprovider integration.
Why#
This is the initial groundwork to add support for the pi agent (see: #402)
This PR adds Pi as a recognized provider in T3 Code's contracts and web UI layer. It establishes the PiSettings schema, wires up the driver metadata and icon in the settings UI, adds the pi.rpc.* runtime event source template for future RPC streaming, and removes the old piAgent coming-soon placeholder now that Pi is becoming a real provider. No server-side runtime yet.
UI Changes#
No new visual components, no layout changes, no new pages.
It's purely "Pi now exists as a selectable option in the provider settings UI" with correct iconography. The provider won't actually appear in the model picker sidebar (PROVIDER_OPTIONS in session-logic.ts) until a later PR wires up the server-side availability reporting.
Before#
After#
Checklist#
- This PR is small and focused
- I explained what changed and why
- I included before/after screenshots for any UI changes
Note
Low Risk Schema and UI-only changes with Pi disabled by default; no auth, session, or server execution paths modified in this diff.
Overview
Adds Pi as a first-class provider in contracts and the web settings layer: PiSettings on legacy ServerSettings.providers (defaults disabled, binary pi), patch/encode paths, and display name wiring.
The settings UI treats Pi like other active drivers (Early Access badge, binary path only) and maps PiAgentIcon for provider icons. The add-instance dialog drops the old piAgent “coming soon” stub in favor of the real pi driver.
Runtime contracts accept pi.rpc.* raw event sources for future RPC streaming, with tests for decode defaults and event validation. No server runtime in this PR—model picker availability stays unchanged until a follow-up.
Note
Add Pi provider settings and runtime support#
- Adds a
PiSettingsschema to settings.ts withbinaryPath(default'pi'),enabled(defaultfalse), andcustomModelsfields; integrates intoServerSettingsandServerSettingsPatch. - Registers Pi as an active, configurable provider in the settings UI via providerDriverMeta.ts with an 'Early Access' badge, replacing its previous 'Coming soon' entry.
- Extends
RuntimeEventRawSourcein providerRuntime.ts to acceptpi.rpc.*raw event sources. - Adds
PI_DRIVER_KINDconstant and'Pi'display name to model.ts.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
Approvability#
Verdict: Needs human review
This PR introduces a new Pi provider integration, adding new user-facing capability across settings, runtime events, and UI components. New feature additions that enable new provider integrations warrant human review, especially from a first-time contributor.
You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).Closing as part of backlog cleanup: this PR is stale, currently conflicting with main, has no approval, and has not had active remediation for 30+ days. If the change is still relevant, please rebase onto current main and request reopening or submit a focused current diff. Thank you for the contribution.
juliusmarminge closed this
Sign in to join this conversation.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
1661a3cd-c5e7-4bcb-90d3-ad2d17ca5bfeYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ 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.
❤️ Share