---
title: "Comment by Mihai_LeanZero on \"I thought Session Replay recorded my browser agent. But it didn't\" | Hashnode"
description: "The Zod version detail is the one I'd want nailed down before trusting the fix. additionalProperties being required-and-false only matters once a provider's too"
url: "https://hashnode.com/posts/i-thought-session-replay-recorded-my-browser-agent-but-it-didn-t/6ab16566d768452f5ac8fe86/comment/6ab18cc0a4f8532081d8da1d"
---

[Discussion](https://hashnode.com/posts/i-thought-session-replay-recorded-my-browser-agent-but-it-didn-t/6ab16566d768452f5ac8fe86)

Comment [I thought Session Replay recorded my browser agent. But it didn't](https://hashnode.com/posts/i-thought-session-replay-recorded-my-browser-agent-but-it-didn-t/6ab16566d768452f5ac8fe86)

[Mihai\_LeanZero](https://hashnode.com/@mihaileanzero)

[Sep 21](https://hashnode.com/posts/i-thought-session-replay-recorded-my-browser-agent-but-it-didn-t/6ab16566d768452f5ac8fe86/comment/6ab18cc0a4f8532081d8da1d)

The Zod version detail is the one I'd want nailed down before trusting the fix. additionalProperties being required-and-false only matters once a provider's tool-schema strict mode enforces it, and Zod v4 changed how object schemas serialize compared to v3, so if Stagehand's schema generation assumed v3 semantics, pinning back to 3.25.76 is believable as the real fix rather than a side effect of the restart. Worth checking whether Stagehand documents a supported Zod range anywhere, because "downgrade one patch version and restart" is exactly the kind of fix that quietly breaks again on the next npm install. The Activity-vs-Session-Replay split deserves more than a footnote too, it's a real gotcha for anyone pointing an agent at PostHog and expecting the human-facing dashboard to just work.

[Sunkanmi Fafowora](https://hashnode.com/@SunkanmiFafowora)

[Sep 25](https://hashnode.com/posts/i-thought-session-replay-recorded-my-browser-agent-but-it-didn-t/6ab16566d768452f5ac8fe86/comment/6ab18cc0a4f8532081d8da1d#reply-6ab68b888d50d5d8ace629c2)

Hmmmm. Stagehand's internal schema gave that error.

It was rejected by OpenAI's structured and strict output format. The thing is, even though I pinned Stagehand's version to `v3.25.76`, `v3.7.3` works and supports both Zod 3 and 4.

See, the reinstall did change the dependency graph, but the pinned graph still contains the Zod 4 requirement; it gets confusing at a point as to why this is the case, but I'll treat my solution as a workaround rather than a confirmed long-term fix.

I also saw a [Stagehand](https://github.com/browserbase/stagehand/issues/1845) issue showing that Zod 3/4 can still break a schema conversion in Mastra builds.

All this seems like a solution is still being worked on, this is just a temporary workaround.
