Commit Graph

30442 Commits

Author SHA1 Message Date
Robbie
fac3adf0ae feat(cookieless): Change cookieless constants to assume up to 72 hour ingestion lag (#41489)
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-11-14 00:43:18 +00:00
Gustavo H. Strassburger
35cc7e06e5 fix(flags): evaluate disabled flags and add dependency warnings (#40351)
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-13 21:19:09 -03:00
Gustavo H. Strassburger
8425c2bf82 chore: improved cohorts calculation observability (#41465)
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-13 21:19:00 -03:00
Kim Svatos Dugan
f2a93583d4 fix(replay): allow sharing via url copy-paste (#41276)
## Problem

previosuly if you shared a video via copy/paste URL, if that same video wasnt loaded on the first page when you later tried to click that URL, it would show "no recording selected". 



## Changes

now, if theres a sessionId included in the params, fetch that in ADDITION to the first page of results. 

We briefly discussed tracking page number or cursor, however, i think this isnt a good idea as cursor values can change (ie, if sorting by clicks, the sort/ranking of videos with most clicks change over time which changes the first page) 


## How did you test this code?

Before (no video found)

[before_url_didnt_work.mov <span class="graphite__hidden">(uploaded via Graphite)</span> <img class="graphite__hidden" src="https://app.graphite.com/user-attachments/thumbnails/6592dcd9-be76-4e18-be5d-95189dd5b642.mov" />](https://app.graphite.com/user-attachments/video/6592dcd9-be76-4e18-be5d-95189dd5b642.mov)

After (hurray)

[loads_video_from_url.mov <span class="graphite__hidden">(uploaded via Graphite)</span> <img class="graphite__hidden" src="https://app.graphite.com/user-attachments/thumbnails/f7364532-588f-4946-bb2e-1f528efd7edd.mov" />](https://app.graphite.com/user-attachments/video/f7364532-588f-4946-bb2e-1f528efd7edd.mov)

👉 _Stay up-to-date with [PostHog coding conventions](https://posthog.com/docs/contribute/coding-conventions) for a smoother review._

## Changelog: (features only) Is this feature complete?

<!-- Yes if this is okay to go in the changelog. No if it's still hidden behind a feature flag, or part of a feature that's not complete yet, etc.  -->
<!-- Removing this section does not mean the changelog bot won't pick it up, because *some people* like to not use the template, so we can't rely on it existing. -->
2025-11-13 15:53:16 -08:00
Eric Duong
3083209094 feat(data-warehouse-scene): view tab (#41313)
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-13 15:11:37 -08:00
Tom Piccirello
6f9caee93c feat: Count the number of keys identified by GitHub secrets scanning (#41491) 2025-11-13 14:47:29 -08:00
Danilo Campos
ff979438d1 fix(MCP): Build errors? (#41490) 2025-11-13 21:16:30 +00:00
Danilo Campos
2e2bd0fc73 chore(MCP): bump version to trigger release (#41488) 2025-11-13 20:59:22 +00:00
Rafael Audibert
e2dcc48760 feat: Add clear indication that viewset is being enabled (#41477) 2025-11-13 17:36:43 -03:00
Danilo Campos
7c4f58e4e9 chore(MCP): Serve prompts and resources based on posthog/examples manifest 2025-11-13 20:35:07 +00:00
Paul D'Ambra
57a585232f chore: clearify some tests to help my brain (#41480)
clarify some tests with the holy fire of parameterization
2025-11-13 19:52:39 +00:00
Eli Reisman
b25775cc1a feat(capture): more instrumentation for capture timeout middleware (#41479) 2025-11-13 11:44:54 -08:00
Michael Matloka
80356b50b0 feat(ai): Show recordings filters from within session_summarization (#41466) 2025-11-13 19:31:31 +00:00
Matt Brooker
de43b1efa4 feat: add use case driven onboarding flow (#41147)
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rafael Audibert <32079912+rafaeelaudibert@users.noreply.github.com>
2025-11-13 14:31:11 -05:00
Michael Matloka
dfb78509e4 fix(ai): Resolve wonky layout in AI scene (#41419)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-11-13 19:13:26 +00:00
Vincent (Wen Yu) Ge
fa8f824b29 chore: Add validation for request path and query params. (#41237) 2025-11-13 14:02:29 -05:00
Dylan Martin
1a3a952123 feat(flags): create team metadata hypercache (#41123)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Phil Haack <haacked@gmail.com>
2025-11-13 18:58:03 +00:00
Lucas Ricoy
0623433fe2 feat(web-analytics): add posthog ai filter tool (#41235)
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-13 18:51:06 +00:00
Emanuele Capparelli
ff5f297df9 fix(ph-ai): tell agent to use sentence case (#41473)
## Problem
The writing style guidelines for headers in our agent modes are inconsistent with our general writing style rule of using sentence case.

## Changes
Added a specific guideline for headers to use sentence case rather than title case in the writing style section of the agent modes prompts.

## How did you test this code?
Didn't
2025-11-13 18:49:32 +00:00
Emanuele Capparelli
9163fd6f62 fix(ph-ai): run FF tool on experiments page (#41343)
## Problem
This PR makes it possible to use the FF tool directly on the experiments page, since we have removed navigation.

It also adds suggestion pills for FF and experiments.

## Changes
- Added suggestions for feature flags and experiments
- Added the feature flag creation tool to the experiments page so users can create flags without navigating away

## How did you test this code?
Tests + locally
2025-11-13 18:16:53 +00:00
Kim Svatos Dugan
d3d6ac0bd6 chore(replay): clean up filters redesign experiment (#41405)
## Problem

we shipped it, delete the dead code

## Changes

<!-- If there are frontend changes, please include screenshots. -->
<!-- If a reference design was involved, include a link to the relevant Figma frame! -->

## How did you test this code?

<!-- Briefly describe the steps you took. -->
<!-- Include automated tests if possible, otherwise describe the manual testing routine. -->

<!-- Docs reminder: If this change requires updated docs, please do that! Engineers are the primary people responsible for their documentation. 🙌 -->

👉 _Stay up-to-date with [PostHog coding conventions](https://posthog.com/docs/contribute/coding-conventions) for a smoother review._

## Changelog: (features only) Is this feature complete?

<!-- Yes if this is okay to go in the changelog. No if it's still hidden behind a feature flag, or part of a feature that's not complete yet, etc.  -->
<!-- Removing this section does not mean the changelog bot won't pick it up, because *some people* like to not use the template, so we can't rely on it existing. -->
2025-11-13 10:14:36 -08:00
Lucas Ricoy
ac15635b04 fix(web-analytics): exclude ui_fill_fraction and cross_sell from copy exports (#41411) 2025-11-13 15:12:17 -03:00
Michael Matloka
f0ebb10e7b feat(ai): Render recordings filters ui_payload (#40814)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-11-13 18:10:51 +00:00
Matt Brooker
452cb5794a chore: improve dev:reset and add ngrok to flox (#41463)
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-13 13:05:37 -05:00
Oliver Browne
95f9d56355 fix(flags): use shared person struct to read partitioned table (#41444)
Co-authored-by: Dylan Martin <dylan@posthog.com>
2025-11-13 19:34:42 +02:00
Oliver Browne
a09d30208a fix(arr): agents api is kill, rm "environment" (#41133)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Joshua Snyder <joshua@posthog.com>
2025-11-13 17:22:34 +00:00
Georgiy Tarasov
7058c80c10 chore(ph-ai): bump limits for an org (#41464) 2025-11-13 17:17:35 +00:00
Emanuele Capparelli
daa062b202 feat(ph-ai): create experiments max tool (#40753)
## Problem
This PR introduces a new `MaxTool` to create experiments. It builds on top of the `create_feature_flag` `MaxTool` with multivariate flag support.

## Changes
- Added a new `CreateExperimentTool` that allows creating experiments via PostHog AI

## How did you test this code?
New tests + evals

## Changelog: (features only) Is this feature complete?
Yes, this feature is complete and ready to be included in the changelog.
2025-11-13 16:59:58 +00:00
Jon McCallum
dfaf7b28d7 feat(logs): add orderBy parameter to logs query handling (#41264) 2025-11-13 16:58:57 +00:00
Frank Hamand
9032507735 feat(capture-logs): remove unused attributes from logs capture (#41379)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-13 16:54:51 +00:00
Oliver Browne
8895a68920 fix(err): use partitioned persons table (#41438) 2025-11-13 18:51:17 +02:00
Meikel Ratz
90b6f1d472 feat(workflows): import opt out from cio (#41259)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-11-13 08:45:33 -08:00
Georgiy Tarasov
d8fdf6bbfe fix(ph-ai): conversation compaction edge cases (#41443) 2025-11-13 16:44:28 +00:00
Georgiy Tarasov
da1a1fb6d9 chore(ph-ai): increase cache ttl (#41458) 2025-11-13 16:42:58 +00:00
Paweł Ledwoń
30cc93ca96 refactor: add person table cutover migration (#41415)
Co-authored-by: José Sequeira <jose@posthog.com>
2025-11-13 17:35:56 +01:00
Frank Hamand
9f4e8129d7 feat(logs): remove last 30 day filter, add last 5mins filter (#41461) 2025-11-13 16:23:38 +00:00
Frank Hamand
ef82c4b776 fix(logs): dont swallow query exceptions (#41456) 2025-11-13 16:16:15 +00:00
Haven
5edf651324 fix(workflows): make templated variable autocompletion contextual (#41150)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-13 08:13:38 -08:00
Emanuele Capparelli
ef116c6218 feat(ph-ai): create multivariate flags max tool (#40752)
## Problem
The feature flag `MaxTool` currently only supports simple boolean flags, but users need to create multivariate flags for A/B testing and experiments.

## Changes
- Added support for creating multivariate feature flags with multiple variants

## How did you test this code?
- Added unit tests and evals

## Changelog: (features only) Is this feature complete?
Yes, this feature is complete and ready to be included in the changelog.
2025-11-13 16:03:46 +00:00
Jon McCallum
a549fd70fe fix(logs): fixes wrong attribute operator appearing in the logs universal filter (#41452) 2025-11-13 15:54:57 +00:00
Kim Svatos Dugan
e778b63e33 fix(replay): too small a limit causes 0 results with sampled replays (#41398)
## Problem

https://posthog.slack.com/archives/C03PB072FMJ/p1762902442761889?thread_ts=1762194137.014209&cid=C03PB072FMJ

we had a client who, when using the UI to filter, saw no results of session recordings. However, when going into recordsings manually, saw the filtered-for event. 

turns out with a high rate of sampling or recent sessions WITHOUT recordings (it appears every session of this client's should have this event, they have ~80K sessions per day, replay was turned off 9 days ago) the 10000 LIMIT is very likely to select event sessions that do NOT have a corresponding replay, meaning when we do this join we confusingly get 0 results. 

## Changes

Increase the limit. 
I asked claude if this was risky for perf: 
```
  Real-world risk: LOW
  - The query is already constrained by date range and team_id
  - ClickHouse handles large IN clauses routinely
  - Worst case: slightly slower query (probably milliseconds)
```

## How did you test this code?

spoofed user, ran this query directly in SQL -- with 10K limit, no results, with 1M limit, saw results (session replays returend)

<!-- Docs reminder: If this change requires updated docs, please do that! Engineers are the primary people responsible for their documentation. 🙌 -->

👉 _Stay up-to-date with [PostHog coding conventions](https://posthog.com/docs/contribute/coding-conventions) for a smoother review._

## Changelog: (features only) Is this feature complete?

<!-- Yes if this is okay to go in the changelog. No if it's still hidden behind a feature flag, or part of a feature that's not complete yet, etc.  -->
<!-- Removing this section does not mean the changelog bot won't pick it up, because *some people* like to not use the template, so we can't rely on it existing. -->
2025-11-13 07:48:41 -08:00
Georgiy Tarasov
0de910862c chore(ph-ai): increase context window to 1M (#41445)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-13 15:27:55 +00:00
Emanuele Capparelli
001b04a34a fix(ph-ai): clarify prompt about person id join limitation (#41446)
## Problem

The current documentation for the `person_id_join_limitation` in HogQL AI generation is unclear and lacks comprehensive guidance on how to properly handle joins involving person_id fields. This leads to agents creating queries that result in ClickHouse errors due to forward references to override tables.

## Changes

Enhanced the `person_id_join_limitation` documentation in both `ee/hogai/graph/sql/prompts.py` and `posthog/hogql/ai.py` to:

## How did you test this code?

Hopefully it solves [https://us.posthog.com/project/2/error_tracking/0199e7eb-4ec0-73b1-8bc5-937a564aa75d?timestamp=2025-11-10T12%3A14%3A39.085000-08%3A00](error), will monitor
2025-11-13 15:14:22 +00:00
Aleksander Błaszkiewicz
d64e8edcfd fix: url to state filters (#41451) 2025-11-13 16:04:41 +01:00
Yasen
0cede9141b fix: Dispatch post_save for bulk-created activity logs (#41210) 2025-11-13 16:52:54 +02:00
Tom Owers
f4837a010a fix(data-warehouse): Actually load more logs (#41402) 2025-11-13 14:26:14 +00:00
Lucas Faria
2367b53af4 chore: add survey fields to Team admin interface (#41447) 2025-11-13 14:16:10 +00:00
Robbie
dab712a669 feat(sessions): Tune raw_sessions_table to use insert delays to avoid too many parts (#41374)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-13 14:10:40 +00:00
David Newell
8d6cbf2c69 feat: better description of stacktraceless issues (#41424) 2025-11-13 14:04:47 +00:00
Yasen
d451e64e7f feat: Add access control to activity logs (#40801)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-11-13 16:04:14 +02:00