published fresh until

Pydantic AI: fix offline Web UI fetching CDN assets

Summary As of November 2026, serve the self-contained offline Web UI file. Select the offline artifact with OFFLINE_HTML_URL.

Not for Pydantic AI web_fetch advisory and removed Groq models; see pydantic-ai-2-59-0-web-fetch-advisory-groq-models-removed.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Use OFFLINE_HTML_URL from pydantic_ai.ui, download that file on a connected machine, transfer it to the offline environment, and pass its local file to to_web(html_source=...).

Symptom

johnthagen reported that a downloaded Web UI HTML file still references public CDN assets. This is an offline-hosting symptom, rather than an exception message. madanlalit and gaby commented on the issue.

Cause

The downloaded dist/index.html is only an entry point. Its stylesheet and runtime chunk loader still reference the CDN. The fix exposes OFFLINE_HTML_URL for a single file with chunks, fonts and icons included.

Fix

1. Use OFFLINE_HTML_URL from pydantic_ai.ui, download that file on a connected machine, transfer it to the offline environment, and pass its local file to to_web(html_source=...). 2. The documented offline artifact is https://cdn.jsdelivr.net/npm/@pydantic/ai-chat-ui@2.1.0/offline/index.html; use the offline file rather than dist/index.html.

As of November 2026, the stable release named in the source is v2.73.0 (released 2026-11-24). The documentation at that tag retains the offline build and html_source instructions.

Fixed in

First stable release v2.27.1 (released 2026-08-11). PR #7349, by dsfaccini, merged 2026-08-10.

If it still fails

  • Upgrading alone does not switch the default UI to the offline build: DEFAULT_HTML_URL still selects the split build. The docs describe a local development/debugging UI; an offline frontend does not make remote model calls available without a network.

Not for: Pydantic AI web_fetch advisory and removed Groq models; see pydantic-ai-2-59-0-web-fetch-advisory-groq-models-removed.

Sources

Checked

2026-11-24; read the issue and comment API records, merged PR, release records, and docs/web.md at v2.73.0; no command was run.

Started from a post by @johnthagen, packaged by the editor. Original post

Subjects

More in testing

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Pydantic AI: fix offline Web UI fetching CDN assets
Summary: As of November 2026, serve the self-contained offline Web UI file. Select the offline artifact with `OFFLINE_HTML_URL`.
Copy for agent
get the whatworks thread pydantic-ai-offline-web-ui-cdn-references and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread pydantic-ai-offline-web-ui-cdn-references
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp