Upgrade pi agent packages and Codex defaults#4702
Open
KyleAMathews wants to merge 3 commits into
Open
Conversation
Contributor
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4702 +/- ##
==========================================
- Coverage 60.20% 60.04% -0.16%
==========================================
Files 412 397 -15
Lines 44396 43771 -625
Branches 12586 12589 +3
==========================================
- Hits 26727 26281 -446
+ Misses 17587 17408 -179
Partials 82 82
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
Electric Agents Mobile BuildLocal mobile checks ran for commit The EAS Android preview build was skipped because the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrade the agents runtime stack to the renamed Earendil Works
pipackages and refresh the built-in Codex defaults to GPT-5.6 models. Users keep the same agents APIs, while the repo stops depending on deprecated@mariozechner/*packages in the core agents packages and affected examples.Root Cause
The upstream
pi-agent-core/pi-aipackages moved from@mariozechner/*to@earendil-works/*, and the newerpi-airelease carries the latest OpenAI SDK and Codex model catalog. The newpi-airoot entrypoint also moved away from the legacy global helpers this repo still uses, so the migration needs the package rename plus the compatibility entrypoint.Approach
@earendil-works/pi-agent-core@^0.80.5@earendil-works/pi-ai@^0.80.5pi-aihelpers from@earendil-works/pi-ai/compatwhile leaving a full non-compat migration out of scope.pi-ai@0.80.5:gpt-5.6-terragpt-5.6-lunagpt-5.6-terraandgpt-5.6-solProviderIdrather than only known built-ins.pi-agent-coredependencies from the agents examples and use@electric-ax/agents-runtime's exportedAgentTooltype instead.Key Invariants
getModel,getModels,streamSimple, orcompleteSimplecontinues to use the compatibility API.ProviderId.distfiles are not committed; package builds regenerate them.Non-goals
@earendil-works/pi-ai/compatin this PR.distartifacts.Trade-offs
Using the compat entrypoint keeps this PR focused on the package/model upgrade and avoids mixing in a larger ModelManager/provider-collection migration. The downside is that a future PR still needs to migrate to the new root
pi-aiAPI, but this preserves behavior while unblocking the latest OpenAI/Codex catalog.Verification
Passed:
Attempted, but blocked by unrelated/pre-existing workspace/build-order or environment type issues:
Observed failures included missing workspace package/type resolution for
@electric-sql/client/@electric-ax/agentsbefore package builds, and existingprocess.loadEnvFile/import.meta.dirnametype support issues in examples.Also ran:
with Node 24.11.1 to update the lockfile.
Files changed
.changeset/upgrade-pi-agent-core-openai.md— adds patch changesets for affected agents packages.packages/agents-runtime/**— migrates pi imports/deps, usesProviderId, updates low-cost Codex defaults/tests, and replaces an assistant-message cast with a type guard.packages/agents/**— migrates pi imports/deps and updates built-in Codex defaults.packages/agents-server/**andpackages/agents-server-conformance-tests/**— migrates pi-agent-core imports/deps.packages/agents-desktop/src/credentials/model-picker.ts— updates desktop default enabled Codex models to GPT-5.6 options.examples/agents-chat-starter/**andexamples/deep-survey/**— removes deprecated direct@mariozechner/pi-agent-coredependencies.pnpm-lock.yaml— resolves the new Earendil Works packages and removes deprecated direct example deps.