Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(pi): add Pi provider settings and runtime support #2800

Closedzulrang(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/2800/headopened View on GitHub

I 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 PiSettings schema for configuration.
  • Added Pi driver kind and associated metadata.
  • Updated server settings to include Pi provider.
  • Implemented tests for Pi settings and runtime event handling.
  • Enhanced UI components to support Pi provider 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

Screenshot 2026-05-25 092954

After

image Screenshot 2026-05-25 092625

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.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit ef3d6625bce2021b9209daa5c933fbf92019295d. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Add Pi provider settings and runtime support

  • Adds a PiSettings schema to settings.ts with binaryPath (default 'pi'), enabled (default false), and customModels fields; integrates into ServerSettings and ServerSettingsPatch.
  • 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 RuntimeEventRawSource in providerRuntime.ts to accept pi.rpc.* raw event sources.
  • Adds PI_DRIVER_KIND constant and 'Pi' display name to model.ts.
Macroscope summarized ef3d662.
    1. Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro

      Run ID: 1661a3cd-c5e7-4bcb-90d3-ad2d17ca5bfe

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests

      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 and usage tips.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. 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).
    4. 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.

    5. juliusmarminge closed this

Sign in to join this conversation.