Skip to content

Fix Pi Codex subscription sessions - #1883

Open
tobowers wants to merge 15 commits into
rivet-dev:mainfrom
tobowers:fix/pi-codex-subscription
Open

Fix Pi Codex subscription sessions#1883
tobowers wants to merge 15 commits into
rivet-dev:mainfrom
tobowers:fix/pi-codex-subscription

Conversation

@tobowers

@tobowers tobowers commented Jul 31, 2026

Copy link
Copy Markdown

Summary

  • update packaged Pi to 0.83.0 without patching Pi or pi-acp
  • run stock Pi RPC through its public SDK from an AgentOS-owned launcher
  • stream Codex requests through optional agentos-codex-auth start/read/cancel host bindings, while retaining explicitly opted-in static environment support
  • keep the raw bearer token outside the guest VM and force the extension-owned Codex stream through SSE
  • normalize only unusable native Pi sessions to ACP resource-not-found so AgentOS can preserve durable history through adapter cutovers
  • preserve the ACP request working directory, isolate Pi version probes, and cleanly terminate adapter wrappers in the AgentOS guest runtime

Verification

  • no patch files or patchedDependencies in the PR diff
  • pnpm --filter @agentos-software/pi check-types
  • packaged Pi tests: 7 passed, including credential-free streaming host brokering, ACP error normalization, guest-safe version probing, and ACP session/new
  • live seven-layer Aggy smoke passed with all provider environment variables blank
  • durable owner-v8/main completed history-preserving fallback, resumed after an engine restart, and passed the secure streaming host-binding broker
  • live concurrent ingestion test advanced the durable cursor through event 3

tobowers and others added 15 commits July 31, 2026 09:26
…port

The host-side streaming Codex proxy (custom baseUrl in models.json + OAuth
credential in auth.json) makes the in-guest auth broker unnecessary. Stock Pi
resolves the subscription through its normal openai-codex-responses provider,
so remove the codex-auth extension, its launcher wiring, packaging, dependency,
and tests. The Pi 0.83 packaging and durability wrappers (cwd preservation,
guest-safe version probe, ACP session recovery) are retained.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant