:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(cli): release v0.16.2
releaser-posthog-cli[bot]e7e3b9ed4f05
diff --git a/cli/.sampo/changesets/sourcemap-process-shared-pairs.md b/cli/.sampo/changesets/sourcemap-process-shared-pairs.mddeleted file mode 100644index b7a10085b42d..000000000000--- a/cli/.sampo/changesets/sourcemap-process-shared-pairs.md+++ /dev/null@@ -1,5 +0,0 @@-----cargo/posthog-cli: patch------Fix a race in `sourcemap process`: the source pairs are now read from disk once, injected, and the same in-memory pairs are uploaded. Previously inject and upload each re-walked the directory roots, so a bundler writing into the scanned directory mid-run (e.g. Turbopack's background filesystem-cache flush on Next.js 16.3+) could hand the upload pass chunks the inject pass never stamped, aborting the whole run with "Chunk ID not found". That error now names the offending file and says how to recover. `--delete-after` cleanup no longer fails the build when a file vanished or was replaced after upload: such pairs are skipped with a warning, and a replaced file's artifacts are left untouched instead of being stripped or deleted. Overlapping selection roots now process each file once instead of stamping it repeatedly. The "injecting selection" log line is bounded instead of printing every selected path, since a large stdin-provided selection used to produce a log line big enough to kill the CLI when stderr was a non-blocking pipe (e.g. spawned from Node.js).diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.mdindex def0eeb124a5..ae6febf12b1d 100644--- a/cli/CHANGELOG.md+++ b/cli/CHANGELOG.md@@ -1,5 +1,11 @@# posthog-cli+## 0.16.2 — 2026-09-01++### Patch changes++- [13dc107a02b](https://github.com/PostHog/posthog/commit/13dc107a02b4e14da3fcdb521c21317c9e87266f) Fix a race in `sourcemap process`: the source pairs are now read from disk once, injected, and the same in-memory pairs are uploaded. Previously inject and upload each re-walked the directory roots, so a bundler writing into the scanned directory mid-run (e.g. Turbopack's background filesystem-cache flush on Next.js 16.3+) could hand the upload pass chunks the inject pass never stamped, aborting the whole run with "Chunk ID not found". That error now names the offending file and says how to recover. `--delete-after` cleanup no longer fails the build when a file vanished or was replaced after upload: such pairs are skipped with a warning, and a replaced file's artifacts are left untouched instead of being stripped or deleted. Overlapping selection roots now process each file once instead of stamping it repeatedly. The "injecting selection" log line is bounded instead of printing every selected path, since a large stdin-provided selection used to produce a log line big enough to kill the CLI when stderr was a non-blocking pipe (e.g. spawned from Node.js). — Thanks @cat-ph!+## 0.16.1 — 2026-09-01### Patch changesdiff --git a/cli/Cargo.lock b/cli/Cargo.lockindex 7674272aed8c..1c98dd33fea8 100644--- a/cli/Cargo.lock+++ b/cli/Cargo.lock@@ -2097,7 +2097,7 @@ dependencies = [[[package]]name = "posthog-cli"-version = "0.16.1"+version = "0.16.2"dependencies = ["anyhow","chrono",diff --git a/cli/Cargo.toml b/cli/Cargo.tomlindex 8293c2ff916f..02146962fc5b 100644--- a/cli/Cargo.toml+++ b/cli/Cargo.toml@@ -4,7 +4,7 @@ resolver = "2"[package]name = "posthog-cli"-version = "0.16.1"+version = "0.16.2"authors = ["David <[email protected]>","Olly <[email protected]>",