Repository navigation
Studio: use the browser's timezone for today's date in chat - #11852
Conversation
Review + UI evidencePinned head: Date the model is told on a chat turn, with Studio and the browser in different timezones. Real Studio in Chromium (1280×800). Before is the merge base
Review fix pushed
Tests: 380 related backend tests pass (chat-generation runs, supervisor, lease, account fences, current-date settings, chat history, tool approvals). CI: upstream 32 passed, 7 pending. Staged on fresh |
Codex review, via a mirrorCodex does not answer on this repository, so it ran against a copy of this pull request's commits at NilayYadav#58. The copy is based on main Round 1 looked at
Round 2 looked at The current head, |
|
Reviewed source head Executed verification:
Real UI evidence used separate exact-revision Studio installs, Chrome for Testing 153 via Playwright 1.63, and the real The mirror review converged on |
mahiatlinux
left a comment
There was a problem hiding this comment.
LGTM! Ready to merge, all manually checked.
…i#11852) * Studio: keep the browser timezone on durable chat runs * Studio: keep the browser timezone out of the chat run's retry identity * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>



Chat replies now run in the background so they survive a page reload. That background run lost the browser's timezone, so the date given to the model came from the server's timezone instead. On Docker, Colab or a remote machine, the model could be told the wrong day for several hours each day.
The browser's timezone is now saved with the run and used when the reply is generated, the same way Deep Research already does it. I tested it on a Studio set to UTC with a browser in Tokyo. The model was told 24 September before this change and 25 September after, which was the correct date in Tokyo.