Skip to content

build(deps): bump undici and @earendil-works/pi-coding-agent in /agent_host/pi_runtime - #324

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/agent_host/pi_runtime/multi-92500b30cc
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/agent_host/pi_runtime/multi-92500b30cc

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 28, 2026

Copy link
Copy Markdown
Contributor

Bumps undici to 8.12.4 and updates ancestor dependency @earendil-works/pi-coding-agent. These dependencies need to be updated together.

Updates undici from 8.10.2 to 8.12.4

Release notes

Sourced from undici's releases.

v8.12.4

⚠️ Security Fixes

This release fixes six vulnerabilities.

CVE-2026-116592 / GHSA-mqg3-3v4r-cm32 (high)

Undici 8.12.2 and 8.12.3 could cache the final response from a redirect chain under the original request key without applying the origin, cache policy, freshness, or Vary requirements of every intermediate hop. This could poison a cache or expose one user's response to another user. The fix validates every redirect hop, combines their Vary fields, limits freshness and stale serving to the most restrictive hop, and invalidates persistent SQLite entries written by vulnerable releases.

CVE-2026-120474 / GHSA-7xg3-fphp-28hg (medium)

A shared cache used with compose(redirect(), cache()) could store a credential-dependent response from a same-origin redirect under the original URL. A later authenticated or unauthenticated request could then receive another user's response. Redirected requests carrying Authorization, Cookie, or Proxy-Authorization are no longer stored under the original alias key.

CVE-2026-116630 / GHSA-5rm8-gv32-r954 (medium)

A cross-origin redirect during cache revalidation could let a 304 Not Modified response from the redirect target validate a cached response from the original origin. Undici now checks that the revalidation target matches the cached URL and that any returned validator matches the stored representation before replaying the cached body.

CVE-2026-120415 / GHSA-9v6h-8rgp-m69f (medium)

The redirect interceptor did not strip credentials correctly when request headers were supplied as an array of [name, value] pairs. With a header-normalizing interceptor outside redirect(), credentials could be sent to a cross-origin redirect target. Undici now handles both tuple arrays and flat header arrays when removing sensitive headers.

CVE-2026-120222 / GHSA-3g9m-rv3r-w5w2 (medium)

A downstream handler exception during cache replay could escape as an uncaught exception or unhandled promise rejection and terminate the process. This included dump size-limit failures, excessive Content-Encoding values in decompress, asynchronous cache-store failures, and cached-body replay after a 304. These failures are now reported as request errors.

CVE-2026-120423 / GHSA-r4pc-4jcp-7pqc (medium)

fetch() could skip Subresource Integrity verification when valid integrity metadata was separated or surrounded by ASCII whitespace other than a space, including a horizontal tab. Integrity metadata is now split on all ASCII whitespace before SHA-256, SHA-384, or SHA-512 verification.

What's Changed

... (truncated)

Commits
  • 779ee3e Bumped v8.12.4 (#6162)
  • 10fa822 docs: remove security release notes
  • 6228fc5 docs: add security release notes
  • 1dd2657 test(cache): align redirect caching with hop policy
  • 8ea1d61 fix(cache): detect an actual redirect, not a plain revalidation
  • 4257261 test(cache): cover credentialed revalidation refresh
  • aa7ccff fix(cache): treat proxy-authorization as a credential when caching redirects
  • 8cf5ce1 test(cache): cover proxy-authorization credential on same-origin redirect
  • 26c42c2 fix(cache): do not cache credential-bearing same-origin redirects under the a...
  • e958661 test: cover decompress too-many-content-encodings throw on async cache replay
  • Additional commits viewable in compare view

Updates @earendil-works/pi-coding-agent from 1.2.0 to 1.7.0

Release notes

Sourced from @​earendil-works/pi-coding-agent's releases.

v1.7.0

New Features

  • Terminal session resume: Compatible terminals can reopen the current pi session after a restart with its original profile, tool restrictions, and instructions.
  • Image generation in codemode: Generate images with Radius, or set the aspect ratio and size when using OpenRouter image models.
  • GitHub Copilot prompt caching: Changing the thinking level preserves the prompt cache on supported Claude 5.x and GPT-6 models. Supported Claude 5.x models also keep the cache when tools change, and Copilot Claude models support cache warming.

Breaking Changes

  • Removed telemetry reporting from pi for new installs and updates (/api/report-install), the enableInstallTelemetry setting (SettingsManager.getEnableInstallTelemetry() / setEnableInstallTelemetry()), and PI_TELEMETRY

Added

  • Added program resume through the Program Resume Protocol (OSC 7577): in terminals that set OSC7577_TOKEN, interactive mode reports pi --session <id> for the current session, so the terminal can bring it back after it restarts. Pi removes the token from the environment of every process it starts. See Terminal setup
  • Added optional { aspectRatio, size } as the third argument to codemode models.generateImages()
  • Added --agent-dir <dir>, the command-line form of PI_CODING_AGENT_DIR. The resume command pi prints on exit and reports through OSC 7577 now includes it when the config directory is not ~/.pi/agent. Without it, a session started with PI_CODING_AGENT_DIR came back with the default directory's settings and auth: a terminal resumes the command without the environment pi was started in. This is for setups that keep a separate pi profile per project, for example a shell function that sets PI_CODING_AGENT_DIR for one directory tree. Terminals that resume programs, such as Rex, need a rule that trusts the longer command; see Terminal setup
  • The OSC 7577 resume command now repeats the restriction and resource flags pi was started with (--tools, --no-extensions, -e, --skill, --system-prompt, and similar), as typed, so a terminal cannot resume a session with other tools or instructions, possibly more access, than it had. The command printed on exit is unchanged. A terminal rule must trust each flag combination; see Terminal setup
  • Added Radius image generation to codemode. Radius image and classifier models are now listed in the built-in catalog as well as through provider discovery

Changed

  • The default model for cloudflare-workers-ai and cloudflare-ai-gateway is now @cf/zai-org/glm-5.3, because Cloudflare deprecated Workers AI Kimi K2.6 and K2.7 Code
  • Changed the ant-ling default model from the retired Ring-2.6-1T to Ling-3.1-flash. Existing models.json files can keep thinkingFormat: "ant-ling" as a deprecated alias for "deepseek" (#11800 by @​lvisei)
  • Replaced the retired qwen4-max-preview with qwen4-max on Qwen Token Plan Individual
  • Preserved the GitHub Copilot prompt cache when changing thinking levels on supported Claude 5.x and GPT-6 models or changing tools on supported Claude 5.x models. Copilot Claude models now support cache warming, and GPT-5.3 Codex and MAI-Code receive mid-conversation system messages where they take effect (#12316)

Fixed

  • Fixed /llama "Download model" downloading the typed text instead of the highlighted result when the query looked like owner/repository and the user had moved the selection with the arrow keys (#12465)
  • Fixed key hints that named the wrong keybinding or a hardcoded key: the extension editor and session rename now name tui.input.submit, /hotkeys names tui.select.cancel for cancelling autocomplete, and the settings submenu, /config selector, session selector and fullscreen copy setting follow remapped keys
  • Fixed a console Ctrl+Break on Windows ending pi without restoring the terminal, which left the shell in the alternate screen with mouse reports typed into the prompt. A child process in the same console can send Ctrl+Break too. pi now shuts down normally on it (#12133)
  • Fixed print, JSON, and RPC modes not reporting an invalid models.json, so a typo such as "contextWindow": "32000" showed up only as Model "..." not found or No API key found. createAgentSessionServices() now returns the error as a warning in diagnostics, so every mode and SDK runtimes report it; interactive mode shows it as a warning instead of an error, as reported in #12522 (#12523 by @​acmerfight)
  • Fixed app.message.followUp (Alt+Enter) ignoring an open autocomplete menu and queuing the half-typed text. It now applies the selected suggestion like Enter: a completed command name is queued, and other completions are inserted without queuing
  • Fixed running ! commands showing the wrong cancel shortcut. The hint now names the configured app.interrupt key (#12518 by @​acmerfight)
  • Fixed !! commands counting toward the context estimate even though the model never sees them. Large outputs no longer trigger early compaction or crowd out recent history (#12513)
  • Fixed Kitty images disappearing in Konsole and regular mode clearing the screen and scrollback when an appended image extended past the bottom of the screen (#12548)
  • Fixed Amazon Bedrock Kimi K3.1 and GLM 5.3 ignoring the selected thinking level (#12462). Kimi K3 and K3.1 also no longer send earlier reasoning back to Bedrock, which could make later turns fail
  • Fixed GitHub Copilot models using openai-completions losing their reasoning state between turns (#12418)
  • Fixed codemode image generation reporting success for failed OpenRouter responses. Image and classifier usage now includes reasoning tokens when reported; image usage distinguishes image output tokens, and OpenRouter costs use the reported total or the model's image output rate when estimating

v1.6.1

New Features

  • Decision models in codemode: GitHub Copilot's gpt-6-luna-decisions and Radius decision models can be called from codemode models.classify(), and results include the provider's responseId. See Classify.
  • One setting per transcript notice: cache misses, cache warming, compaction costs, and reasoning drops each have their own setting under Notices in /settings. See Model and thinking.
  • Dialog status kind for extensions: ctx.ui.select(), ctx.ui.confirm(), and ctx.ui.input() accept blockedKind, so terminals with program status can show a dialog as a permission request, question, or login. See Program Status Kind.

Breaking Changes

  • Replaced the showCacheMissNotices setting with one setting per transcript notice: notices.cacheMisses, notices.cacheWarming, notices.compactionCosts, and notices.reasoningDrops, configured under Notices in /settings. An existing showCacheMissNotices value is migrated to all four. SettingsManager.getShowCacheMissNotices() and setShowCacheMissNotices() are removed; use getNotices() and setNotice() instead

... (truncated)

Changelog

Sourced from @​earendil-works/pi-coding-agent's changelog.

[1.7.0] - 2026-11-27

New Features

  • Terminal session resume: Compatible terminals can reopen the current pi session after a restart with its original profile, tool restrictions, and instructions.
  • Image generation in codemode: Generate images with Radius, or set the aspect ratio and size when using OpenRouter image models.
  • GitHub Copilot prompt caching: Changing the thinking level preserves the prompt cache on supported Claude 5.x and GPT-6 models. Supported Claude 5.x models also keep the cache when tools change, and Copilot Claude models support cache warming.

Breaking Changes

  • Removed telemetry reporting from pi for new installs and updates (/api/report-install), the enableInstallTelemetry setting (SettingsManager.getEnableInstallTelemetry() / setEnableInstallTelemetry()), and PI_TELEMETRY

Added

  • Added program resume through the Program Resume Protocol (OSC 7577): in terminals that set OSC7577_TOKEN, interactive mode reports pi --session <id> for the current session, so the terminal can bring it back after it restarts. Pi removes the token from the environment of every process it starts. See Terminal setup
  • Added optional { aspectRatio, size } as the third argument to codemode models.generateImages()
  • Added --agent-dir <dir>, the command-line form of PI_CODING_AGENT_DIR. The resume command pi prints on exit and reports through OSC 7577 now includes it when the config directory is not ~/.pi/agent. Without it, a session started with PI_CODING_AGENT_DIR came back with the default directory's settings and auth: a terminal resumes the command without the environment pi was started in. This is for setups that keep a separate pi profile per project, for example a shell function that sets PI_CODING_AGENT_DIR for one directory tree. Terminals that resume programs, such as Rex, need a rule that trusts the longer command; see Terminal setup
  • The OSC 7577 resume command now repeats the restriction and resource flags pi was started with (--tools, --no-extensions, -e, --skill, --system-prompt, and similar), as typed, so a terminal cannot resume a session with other tools or instructions, possibly more access, than it had. The command printed on exit is unchanged. A terminal rule must trust each flag combination; see Terminal setup
  • Added Radius image generation to codemode. Radius image and classifier models are now listed in the built-in catalog as well as through provider discovery

Changed

  • The default model for cloudflare-workers-ai and cloudflare-ai-gateway is now @cf/zai-org/glm-5.3, because Cloudflare deprecated Workers AI Kimi K2.6 and K2.7 Code
  • Changed the ant-ling default model from the retired Ring-2.6-1T to Ling-3.1-flash. Existing models.json files can keep thinkingFormat: "ant-ling" as a deprecated alias for "deepseek" (#11800 by @​lvisei)
  • Replaced the retired qwen4-max-preview with qwen4-max on Qwen Token Plan Individual
  • Preserved the GitHub Copilot prompt cache when changing thinking levels on supported Claude 5.x and GPT-6 models or changing tools on supported Claude 5.x models. Copilot Claude models now support cache warming, and GPT-5.3 Codex and MAI-Code receive mid-conversation system messages where they take effect (#12316)

Fixed

  • Fixed /llama "Download model" downloading the typed text instead of the highlighted result when the query looked like owner/repository and the user had moved the selection with the arrow keys (#12465)
  • Fixed key hints that named the wrong keybinding or a hardcoded key: the extension editor and session rename now name tui.input.submit, /hotkeys names tui.select.cancel for cancelling autocomplete, and the settings submenu, /config selector, session selector and fullscreen copy setting follow remapped keys
  • Fixed a console Ctrl+Break on Windows ending pi without restoring the terminal, which left the shell in the alternate screen with mouse reports typed into the prompt. A child process in the same console can send Ctrl+Break too. pi now shuts down normally on it (#12133)
  • Fixed print, JSON, and RPC modes not reporting an invalid models.json, so a typo such as "contextWindow": "32000" showed up only as Model "..." not found or No API key found. createAgentSessionServices() now returns the error as a warning in diagnostics, so every mode and SDK runtimes report it; interactive mode shows it as a warning instead of an error, as reported in #12522 (#12523 by @​acmerfight)
  • Fixed app.message.followUp (Alt+Enter) ignoring an open autocomplete menu and queuing the half-typed text. It now applies the selected suggestion like Enter: a completed command name is queued, and other completions are inserted without queuing
  • Fixed running ! commands showing the wrong cancel shortcut. The hint now names the configured app.interrupt key (#12518 by @​acmerfight)
  • Fixed !! commands counting toward the context estimate even though the model never sees them. Large outputs no longer trigger early compaction or crowd out recent history (#12513)
  • Fixed Kitty images disappearing in Konsole and regular mode clearing the screen and scrollback when an appended image extended past the bottom of the screen (#12548)
  • Fixed Amazon Bedrock Kimi K3.1 and GLM 5.3 ignoring the selected thinking level (#12462). Kimi K3 and K3.1 also no longer send earlier reasoning back to Bedrock, which could make later turns fail
  • Fixed GitHub Copilot models using openai-completions losing their reasoning state between turns (#12418)
  • Fixed codemode image generation reporting success for failed OpenRouter responses. Image and classifier usage now includes reasoning tokens when reported; image usage distinguishes image output tokens, and OpenRouter costs use the reported total or the model's image output rate when estimating

[1.6.1] - 2026-11-25

New Features

  • Decision models in codemode: GitHub Copilot's gpt-6-luna-decisions and Radius decision models can be called from codemode models.classify(), and results include the provider's responseId. See Classify.
  • One setting per transcript notice: cache misses, cache warming, compaction costs, and reasoning drops each have their own setting under Notices in /settings. See Model and thinking.
  • Dialog status kind for extensions: ctx.ui.select(), ctx.ui.confirm(), and ctx.ui.input() accept blockedKind, so terminals with program status can show a dialog as a permission request, question, or login. See Program Status Kind.

Breaking Changes

... (truncated)

Commits
  • fb0fe82 Release v1.7.0
  • bc74598 docs(coding-agent): highlight new features for 1.7.0
  • 1e7bc72 fix(ai): preserve the deprecated Ant Ling thinking format
  • ccda1f7 fix(ai): price image output tokens at the image rate
  • a512c3f feat(ai): report image output tokens in usage
  • e3c6326 fix(coding-agent): reword /bug hint
  • f7470d0 feat(ai): add image model support to Radius provider
  • 145785f feat(coding-agent): repeat restriction and resource flags in the OSC 7577 res...
  • dd71a6f feat(coding-agent): add --agent-dir and carry it in the resume command (#12595)
  • f69c3e1 docs(coding-agent): reset the terminal after Pi was killed (#12601)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [undici](https://github.com/nodejs/undici) to 8.12.4 and updates ancestor dependency [@earendil-works/pi-coding-agent](https://github.com/earendil-works/pi/tree/HEAD/packages/coding-agent). These dependencies need to be updated together.


Updates `undici` from 8.10.2 to 8.12.4
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](nodejs/undici@v8.10.2...v8.12.4)

Updates `@earendil-works/pi-coding-agent` from 1.2.0 to 1.7.0
- [Release notes](https://github.com/earendil-works/pi/releases)
- [Changelog](https://github.com/earendil-works/pi/blob/main/packages/coding-agent/CHANGELOG.md)
- [Commits](https://github.com/earendil-works/pi/commits/v1.7.0/packages/coding-agent)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 8.12.4
  dependency-type: indirect
- dependency-name: "@earendil-works/pi-coding-agent"
  dependency-version: 1.7.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from Lucas1479 as a code owner November 28, 2026 09:25
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants