Skip to content

fix(agent-runtime): replace removed Pi harness APIs - #1328

Merged
vastsa merged 1 commit into
mainfrom
codex/fix-pi-agent-core-compat
Oct 3, 2026
Merged

vastsa merged 1 commit into
mainfrom
codex/fix-pi-agent-core-compat

Conversation

@vastsa

@vastsa vastsa commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replace calls to removed experimental pi-agent-core harness helpers with runtime-owned adapters for context projection, message conversion, estimates, compaction, and prompt templates.
  • Keep pi-agent-core for its stable Agent loop and types, and preserve Rust host-core as the only durable session owner.
  • Document pi-coding-agent as a transitional dependency with a removal path, plus the separate pi-durable assessment.
  • Snapshot split sidecar bundles correctly in the offline hosted-search E2E harness.

Specs and scenarios

  • Updated runtime and architecture specs, ADRs, the decisions log, and Chinese locale mirrors.
  • Relevant scenarios: compaction coverage in context-compaction.test.mjs; offline hosted-search continuation and restore scenarios in pnpm test:e2e:hosted-search.
  • The full provider/UI context-compaction journey (E2E-164) remains Draft in the repository plan.

Validation

  • Agent Runtime typecheck/build and package bundle passed.
  • Targeted Agent Runtime tests: 13 files, 470 tests passed.
  • Desktop context-compaction contract: 13/13 passed.
  • Offline hosted-search sidecar E2E: 7/7 passed on this commit; no live provider used.
  • pnpm lint, pnpm docs:check, pnpm check:pr-base, and git diff --check passed.

Keep desktop context projection, message conversion, estimation, compaction, and prompt-template behavior inside the runtime instead of importing removed experimental core helpers. Preserve Rust host-core as the durable session owner and document pi-coding-agent as a transitional native-session and extension-compatibility dependency.

Snapshot complete split sidecar artifacts in hosted-search E2E so offline provider scenarios run against the production bundle.
@vastsa
vastsa merged commit afe0fe4 into main Oct 3, 2026
4 checks passed
@vastsa
vastsa deleted the codex/fix-pi-agent-core-compat branch October 3, 2026 00:38
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