- Vendor the patched pi-devin@0.1.2 tree at apps/pi-devin/upstream/
(third-party archive -> upstream_fork); git history replaces the patch
layer as the change archive. Includes the devin-desktop identity fix
and normalized catalog variant mapping from the previous patch.
- build-pi-package.sh now verifies source.sha256 against
host-local-packages.json and npm-packs the vendored tree; drop the
npm fetch + patch stage.
- install-pi-package.sh strips the npm-pack package/ prefix to match
the playbook's unarchive behavior.
- Deployed to a100 via deploy_pi_devin_package (--limit a100, R2 then
R3); remote verified to carry the fork source.
`void resp.body?.cancel()` in streamChatEvents' finally floated a
rejected promise: an aborted fetch errors the body with the abort
reason, and cancel() on an errored stream rejects with it, escaping
as unhandledRejection -> uncaughtException and killing pi on Escape.
Await the cancel inside the existing try/catch so the rejection is
actually swallowed. Adds a regression test that aborts a mocked
in-flight stream and asserts no unhandled rejection is raised.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
pi 0.86.0 hands custom providers a TranscriptContext: `systemPrompt` and
`tools` are gone, and tool declarations live in the transcript's system
messages. Reading `context.tools` therefore sent zero tools to Devin, so
every Devin model answered that it cannot run commands, and the system
prompt was dropped with it.
Collapse the system messages first, then take the prompt and the current
tool set from the replayed transcript.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>