Skip to content

chore: sync main into v1 (7.67.1–7.68.0) - #1051

Open
eli-r-ph wants to merge 8 commits into
v1-ai-require-capture-aifrom
v1-sync-main-7.68
Open

eli-r-ph wants to merge 8 commits into
v1-ai-require-capture-aifrom
v1-sync-main-7.68

Conversation

@eli-r-ph

@eli-r-ph eli-r-ph commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

💡 Motivation and Context

Stacked on #1048. Part of the 8.0 series (checklist in #1016). Brings what landed on main since #1044 into the 8.0 series, so 8.0 doesn't drop it:

Each upstream commit is cherry-picked with -x, in main order, and changes exactly the same lines as its original. All applied without conflicts.

One commit is v1-only: #1040's new test_context_only_enriches_events_without_redirecting_the_client patched _enqueue to read the event. On v1, context properties are filled inside _enqueue, before before_send, so the test saw the event before the fill. It now records the event in before_send. The assertions are unchanged.

v1 review of the new code: neither PR adds an event builder, writes a legacy $ option property, or sets $lib. $mcp_interface is a plain property. #1040's exception capture reuses the existing metadata path that 8.0 already adapted.

💚 How did you test it?

  • Each pick's changed lines are identical to its upstream commit (compared without context lines).
  • ruff format --check, ruff check, mypy (baseline filter), make public_api_check, uv lock --check and python -W error -c "import posthog" pass locally.
  • Full pytest: 4656 passed. Before the test adaptation, the 2 cases of the adapted test failed.
  • The adapted test fails when the Django middleware stops tagging the request, and passes again once restored.

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

🤖 Agent context

Autonomy: Human-driven (agent-assisted)

Claude Code cut this sync and checked every new call site against the 8.0 capture rules. The picked release commits consume their changesets, so the only net release change is posthog/version.py (7.67.0 to 7.68.0), as in #1044.

🤖 Generated with Claude Code

gesh and others added 8 commits October 12, 2026 10:34
feat(mcp): add interface property to server events

Generated-By: PostHog Desktop
Task-Id: 651bf7d9-01f4-4d75-8583-868e29fdd314
(cherry picked from commit a3bd254)
(cherry picked from commit 4ae3d26)
(cherry picked from commit 492d71b)
* Align ASGI and Flask integration defaults

* feat(integrations): align request middleware configuration

(cherry picked from commit 2f0d67d)
(cherry picked from commit ad553de)
(cherry picked from commit 90f8d69)
…1042)

Bumps the uv group with 1 update in the /examples/example-ai-llamaindex directory: [banks](https://github.com/masci/banks).
Bumps the uv group with 2 updates in the /examples/example-ai-pydantic-ai directory: [pydantic-ai](https://github.com/pydantic/pydantic-ai) and [pydantic-ai-slim](https://github.com/pydantic/pydantic-ai).

Updates `banks` from 2.4.5 to 2.5.1
- [Release notes](https://github.com/masci/banks/releases)
- [Commits](masci/banks@v2.4.5...v2.5.1)

Updates `pydantic-ai` from 1.102.0 to 1.107.7
- [Release notes](https://github.com/pydantic/pydantic-ai/releases)
- [Changelog](https://github.com/pydantic/pydantic-ai/blob/main/docs/changelog.md)
- [Commits](pydantic/pydantic-ai@v1.102.0...v1.107.7)

Updates `pydantic-ai-slim` from 1.102.0 to 1.107.7
- [Release notes](https://github.com/pydantic/pydantic-ai/releases)
- [Changelog](https://github.com/pydantic/pydantic-ai/blob/main/docs/changelog.md)
- [Commits](pydantic/pydantic-ai@v1.102.0...v1.107.7)

---
updated-dependencies:
- dependency-name: banks
  dependency-version: 2.5.1
  dependency-type: indirect
  dependency-group: uv
- dependency-name: pydantic-ai
  dependency-version: 1.107.7
  dependency-type: direct:production
  dependency-group: uv
- dependency-name: pydantic-ai-slim
  dependency-version: 1.107.7
  dependency-type: indirect
  dependency-group: uv
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit ee686ff)
… fill

On v1, context properties are filled inside _enqueue, before before_send.
The test patched _enqueue itself, so it saw the event before the fill and
lost $request_path and role. It now records the event in before_send.
The assertions are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@eli-r-ph eli-r-ph self-assigned this Oct 12, 2026
@eli-r-ph
eli-r-ph marked this pull request as ready for review October 12, 2026 18:41
@eli-r-ph
eli-r-ph requested a review from a team as a code owner October 12, 2026 18:41

This branch has not been deployed

No deployments
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.

3 participants