Skip to content

feat: support runtime path configuration - #47

Merged
dsfaccini merged 1 commit into
pydantic:mainfrom
dsfaccini:codex/runtime-base-path
Aug 19, 2026
Merged

feat: support runtime path configuration#47
dsfaccini merged 1 commit into
pydantic:mainfrom
dsfaccini:codex/runtime-base-path

Conversation

@dsfaccini

Copy link
Copy Markdown
Contributor

This pull request was posted by Codex Desktop using gpt-5.6-sol on behalf of David.

Summary

  • add one runtime window.PYDANTIC_AI_CHAT_CONFIG object with normalized, same-origin basePath and apiPath directories
  • route conversation navigation through basePath and configure/chat requests through the independent apiPath
  • preserve the existing normalized Vite-base and /api/ defaults
  • document runtime injection for prefixed and single-file offline deployments

Validation

  • pnpm run test:headless
  • pnpm run test:e2e
  • pnpm run test:e2e:offline
  • pnpm run typecheck
  • pnpm run typecheck:test
  • pnpm run lint
  • pnpm run build

The offline Playwright coverage serves the unchanged single-file artifact at /demo/, exercises /demo/api/{configure,chat}, navigates and reloads a persisted conversation below /demo/, and separately verifies that /demo/ navigation can retain root /api/ endpoints.

Fixes #46

@dsfaccini
dsfaccini marked this pull request as ready for review August 19, 2026 22:15
@dsfaccini
dsfaccini merged commit 52f67c1 into pydantic:main Aug 19, 2026
3 checks passed
github-actions Bot pushed a commit that referenced this pull request Aug 19, 2026
# [2.3.0](v2.2.0...v2.3.0) (2026-08-19)

### Features

* support runtime path configuration ([#47](#47)) ([52f67c1](52f67c1))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configurable runtime base path for reverse-proxy deployments

1 participant